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

Annotation of /trunk/pygtk/plot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 176 - (hide annotations) (download) (as text)
Tue Jan 10 06:22:23 2006 UTC (14 years ago) by johnpye
Original Path: trunk/pygtk/interface/plot.h
File MIME type: text/x-chdr
File size: 1146 byte(s)
Completed PyGTK plotting using matplotlib
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 176 #include "curve.h"
9 johnpye 175
10     #define PLOT_TITLE "title"
11     #define PLOT_XLABEL "XLabel"
12 johnpye 176 #define PLOT_YLABEL "YLabel"
13 johnpye 175 #define PLOT_XLOG "Xlog"
14     #define PLOT_YLOG "Ylog"
15     #define PLOT_XLO "Xlow"
16     #define PLOT_XHI "Xhigh"
17     #define PLOT_YLO "Ylow"
18     #define PLOT_YHI "Yhigh"
19     #define PLOT_CURVE "curve"
20     #define PLOT_LEGEND "legend"
21     #define PLOT_POINT "pnt"
22     #define PLOT_XPOINT "x"
23     #define PLOT_YPOINT "y"
24    
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 johnpye 176
33     private:
34     friend class Instanc;
35     Plot(const Instanc &);
36 johnpye 175
37     public:
38    
39     const std::string getTitle() const;
40     const std::string getXLabel() const;
41     const std::string getYLabel() const;
42     const bool isXLog() const;
43     const bool isYLog() const;
44     const double getXLow() const;
45     const double getXHigh() const;
46     const double getYLow() const;
47     const double getYHigh() const;
48    
49     std::vector<Curve> curves;
50     };
51    
52     #endif

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