/[ascend]/trunk/pygtk/curve.h
ViewVC logotype

Contents of /trunk/pygtk/curve.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2061 - (show annotations) (download) (as text)
Sat Jun 27 15:23:36 2009 UTC (14 years, 3 months ago) by jpye
File MIME type: text/x-chdr
File size: 637 byte(s)
Add legend_position parameter to plot models.
Add missing 'EXTERNAL' keyword to a4c.lang (for Andre Simon's "highlight")
1 #ifndef ASCXX_CURVE_H
2 #define ASCXX_CURVE_H
3
4 #include <vector>
5 #include <string>
6
7 #include "plot.h"
8 #include "instance.h"
9
10 class Curve : public Instanc{
11 friend class std::vector<Curve>;
12 private:
13 friend class Plot;
14 explicit Curve(const Instanc &);
15 Curve();
16 public:
17 Curve(const Curve &);
18 std::vector<double> x;
19 std::vector<double> y;
20 const std::string getLegend() const;
21
22 /**
23 Get the curve format string, as used by matplotlib.
24 Documented here:
25 http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.plot
26
27 (This value is not used by the Tcl/Tk GUI.)
28 */
29 const std::string getFormat() const;
30 };
31
32 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22