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

Contents of /trunk/pygtk/plot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1230 - (show annotations) (download) (as text)
Thu Jan 25 07:34:27 2007 UTC (13 years, 4 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1236 byte(s)
Removed operator= for Plot and Curve (C++)
Fixed #include for child.h
1 #ifndef ASCXX_PLOT_H
2 #define ASCXX_PLOT_H
3
4 #include <vector>
5 #include <string>
6
7 #include "instance.h"
8
9 #ifndef ASCXX_CURVE_H
10 #include "curve.h"
11 #else
12 class Curve;
13 #endif
14
15 #define PLOT_TITLE "title"
16 #define PLOT_XLABEL "XLabel"
17 #define PLOT_YLABEL "YLabel"
18 #define PLOT_XLOG "Xlog"
19 #define PLOT_YLOG "Ylog"
20 #define PLOT_XLO "Xlow"
21 #define PLOT_XHI "Xhigh"
22 #define PLOT_YLO "Ylow"
23 #define PLOT_YHI "Yhigh"
24 #define PLOT_CURVE "curve"
25 #define PLOT_LEGEND "legend"
26 #define PLOT_POINT "pnt"
27 #define PLOT_XPOINT "x"
28 #define PLOT_YPOINT "y"
29
30
31 /**
32 This is interface for accessing plottable data from ASCEND. It's needed in order
33 to cleanly access the MatPlotLib commands via Python, but it could also be used to
34 abstract the xgraph plotting code somewhat as well.
35 */
36 class Plot : public Instanc{
37
38 private:
39 friend class Instanc;
40 explicit Plot(const Instanc &);
41 Plot();
42 public:
43 Plot(const Plot &plot);
44
45 const std::string getTitle() const;
46 const std::string getXLabel() const;
47 const std::string getYLabel() const;
48 const bool isXLog() const;
49 const bool isYLog() const;
50 const double getXLow() const;
51 const double getXHigh() const;
52 const double getYLow() const;
53 const double getYHigh() const;
54
55 std::vector<Curve> curves;
56 };
57
58 #endif

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