template<int D, class Grid = algebra::GridD<D, typename algebra::DenseGridStorageD<D, double>, double, typename algebra::DefaultEmbeddingD<D> >>
class IMP::statistics::HistogramD< D, Grid >
Dynamically build a histogram embedded in D-dimensional space.
template<int D, class Grid = algebra::GridD<D, typename algebra::DenseGridStorageD<D, double>, double, typename algebra::DefaultEmbeddingD<D> >>
| void show_histogram |
( |
HistogramD< D, Grid > |
h, |
|
|
std::string |
xscale = "linear", |
|
|
std::string |
yscale = "linear", |
|
|
Functions |
curves = Functions() |
|
) |
| |
|
related |
In python, you can use matplot lib, if installed, to show the contents of a histogram. At the moment, only 1D and 2D histograms are supported.
- Parameters:
-
| [in] | h | The histogram to show, the plot is sized to the histograms bounding box. |
| [in] | xscale | Whether the xscale is "linear" or "log" |
| [in] | yscale | Whether the yscale is "linear" or "log" |
| [in] | curves | A list of python functions to plot on the histogram as curves. The functions should take one float and return a float. |