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

Annotation of /trunk/pygtk/plot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (14 years, 3 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1195 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
1 johnpye 175 #ifndef ASCXX_PLOT_H
2     #define ASCXX_PLOT_H
3    
4     #include <vector>
5     #include <string>
6    
7     #include "instance.h"
8 johnpye 181
9     #ifndef ASCXX_CURVE_H
10 johnpye 176 #include "curve.h"
11 johnpye 181 #else
12     class Curve;
13     #endif
14 johnpye 175
15     #define PLOT_TITLE "title"
16     #define PLOT_XLABEL "XLabel"
17 johnpye 176 #define PLOT_YLABEL "YLabel"
18 johnpye 175 #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 johnpye 176
38     private:
39     friend class Instanc;
40     Plot(const Instanc &);
41 johnpye 175
42     public:
43    
44     const std::string getTitle() const;
45     const std::string getXLabel() const;
46     const std::string getYLabel() const;
47     const bool isXLog() const;
48     const bool isYLog() const;
49     const double getXLow() const;
50     const double getXHigh() const;
51     const double getYLow() const;
52     const double getYHigh() const;
53    
54     std::vector<Curve> curves;
55     };
56    
57     #endif

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