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

Annotation of /trunk/pygtk/plot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 181 - (hide annotations) (download) (as text)
Thu Jan 12 05:43:41 2006 UTC (14 years ago) by johnpye
Original Path: trunk/pygtk/interface/plot.h
File MIME type: text/x-chdr
File size: 1195 byte(s)
Fixed up the right-click context menu a bit
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