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

Contents of /trunk/pygtk/interface/plot.h

Parent Directory Parent Directory | Revision Log Revision Log


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

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