![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::plot::Plot — a class describing a plot, consisting of a number of data sets
// In header: <alps/plot.h> template<typename C> class Plot { public: // construct/copy/destruct Plot(std::string = "", alps::Parameters const & = alps::Parameters(), bool = true); // public member functions Plot< C > & operator<<(const Set< C > &); Plot< C > & operator<<(const std::string &); const std::string & name() const; const std::string & xaxis() const; const std::string & yaxis() const; bool show_legend() const; void set_name(const std::string &); void set_labels(const std::string &, const std::string &); void show_legend(bool); int size() const; const Set< C > & operator[](int) const; Parameters const & parameters() const; };
Plot
public member functionsPlot< C > & operator<<(const Set< C > & s);add a set to the plot
Plot< C > & operator<<(const std::string & name);set the title
const std::string & name() const;get the title
const std::string & xaxis() const;get the x-axis label
const std::string & yaxis() const;get the y-axis label
bool show_legend() const;will the legend be shown?
void set_name(const std::string & name);set the name
void set_labels(const std::string & xaxis, const std::string & yaxis);set the x- and y-axis labels
void show_legend(bool show);set whether the legend should be shown
int size() const;get the number of sets
const Set< C > & operator[](int i) const;get the i-th set
Parameters const & parameters() const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo |