ESTER
Evolution STEllaire en Rotation
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
graphics.h
Go to the documentation of this file.
1 #ifndef _GRAPHICS_H
2 #define _GRAPHICS_H
3 
4 #include "ester-config.h"
5 #include "matrix.h"
6 
7 class figure {
8  int id;
9  char dev[32];
12  double x0,x1,y0,y1,z0,z1;
13  int xlog,ylog;
14  int just;
17 public:
18  explicit figure(const char *device="/NULL");
19  ~figure();
20  void plot(const matrix &x,const matrix &y,const char *line="");
21  void plot(const matrix &y,const char *line="");
22  void axis(double sx0,double sx1,double sy0,double sy1,int sjust=0);
23  void caxis(double sz0,double sz1);
24  void hold(int state);
25  void draw(int state);
26  void subplot(int nr,int nc);
27  void next();
28  void clear();
29  void semilogx(const matrix &x,const matrix &y,const char *line="");
30  void semilogx(const matrix &y,const char *line="");
31  void semilogy(const matrix &x,const matrix &y,const char *line="");
32  void semilogy(const matrix &y,const char *line="");
33  void loglog(const matrix &x,const matrix &y,const char *line="");
34  void loglog(const matrix &y,const char *line="");
35  void label(const char *xlabel,const char *ylabel,const char *title);
36  void pcolor(const matrix &z);
37  void pcolor(const matrix &x,const matrix &y,const matrix &z);
38  void colorbar(int set=1);
39  void contour(const matrix &x,const matrix &y,const matrix &z,int ncontours,const char *line="");
40  void contour(const matrix &z,int ncontours,const char *line="");
41  void contour(const matrix &x,const matrix &y,const matrix &z,const matrix &contours,const char *line="");
42  void contour(const matrix &z,const matrix &contours,const char *line="");
43  void contour(const matrix &x,const matrix &y,const matrix &z,const char *line="");
44  void contour(const matrix &z,const char *line="");
45 };
46 
47 #endif
void contour(const matrix &x, const matrix &y, const matrix &z, int ncontours, const char *line="")
Definition: graphics.cpp:505
int axis_set
Definition: graphics.h:11
int draw_state
Definition: graphics.h:15
void draw(int state)
Definition: graphics.cpp:491
void semilogx(const matrix &x, const matrix &y, const char *line="")
Definition: graphics.cpp:495
void clear()
Definition: graphics.cpp:494
void loglog(const matrix &x, const matrix &y, const char *line="")
Definition: graphics.cpp:499
void semilogy(const matrix &x, const matrix &y, const char *line="")
Definition: graphics.cpp:497
double x1
Definition: graphics.h:12
void pcolor(const matrix &z)
Definition: graphics.cpp:502
The matrix class is used to facilitate the work with regular dense matrices.
Definition: matrix.h:9
double y1
Definition: graphics.h:12
~figure()
Definition: graphics.cpp:485
void label(const char *xlabel, const char *ylabel, const char *title)
Definition: graphics.cpp:501
int hold_state
Definition: graphics.h:10
int xlog
Definition: graphics.h:13
void plot(const matrix &x, const matrix &y, const char *line="")
Definition: graphics.cpp:486
double y0
Definition: graphics.h:12
void axis(double sx0, double sx1, double sy0, double sy1, int sjust=0)
Definition: graphics.cpp:488
double z0
Definition: graphics.h:12
int draw_colorbar
Definition: graphics.h:16
void hold(int state)
Definition: graphics.cpp:490
char dev[32]
Definition: graphics.h:9
void caxis(double sz0, double sz1)
Definition: graphics.cpp:489
Definition: graphics.h:7
int just
Definition: graphics.h:14
int caxis_set
Definition: graphics.h:11
void next()
Definition: graphics.cpp:493
double z1
Definition: graphics.h:12
int ylog
Definition: graphics.h:13
void subplot(int nr, int nc)
Definition: graphics.cpp:492
figure(const char *device="/NULL")
Definition: graphics.cpp:484
void colorbar(int set=1)
Definition: graphics.cpp:504
int id
Definition: graphics.h:8
double x0
Definition: graphics.h:12