00001 #ifndef __vplot_h__ 00002 #define __vplot_h__ 00003 00004 #include "strl.hpp" 00005 #include "graph.h" 00006 00007 void gr_plot1D( int x1, int y1, int x2, int y2, 00008 double vec[], int n, const KVStrList & opts=KVStrList("") ); 00009 void gr_plot1D( int x1, int y1, int x2, int y2, 00010 float vec[], int n, const KVStrList & opts=KVStrList("") ); 00011 void gr_plot1D( int x1, int y1, int x2, int y2, 00012 int vec[], int n, const KVStrList & opts=KVStrList("") ); 00013 void gr_plot1D( int x1, int y1, int x2, int y2, 00014 short vec[], int n, const KVStrList & opts=KVStrList("") ); 00015 void gr_plot1D( int x1, int y1, int x2, int y2, 00016 long vec[], int n, const KVStrList & opts=KVStrList("") ); 00017 00018 inline void gr_nplot1D( float x1, float y1, float x2, float y2, 00019 double vec[], int n, const KVStrList & opts=KVStrList("") ) 00020 { gr_plot1D(gr_nx2x(x1),gr_ny2y(y1),gr_nx2x(x2),gr_ny2y(y2),vec,n,opts); } 00021 inline void gr_nplot1D( float x1, float y1, float x2, float y2, 00022 float vec[], int n, const KVStrList & opts=KVStrList("") ) 00023 { gr_plot1D(gr_nx2x(x1),gr_ny2y(y1),gr_nx2x(x2),gr_ny2y(y2),vec,n,opts); } 00024 inline void gr_nplot1D( float x1, float y1, float x2, float y2, 00025 int vec[], int n, const KVStrList & opts=KVStrList("") ) 00026 { gr_plot1D(gr_nx2x(x1),gr_ny2y(y1),gr_nx2x(x2),gr_ny2y(y2),vec,n,opts); } 00027 inline void gr_nplot1D( float x1, float y1, float x2, float y2, 00028 short vec[], int n, const KVStrList & opts=KVStrList("") ) 00029 { gr_plot1D(gr_nx2x(x1),gr_ny2y(y1),gr_nx2x(x2),gr_ny2y(y2),vec,n,opts); } 00030 inline void gr_nplot1D( float x1, float y1, float x2, float y2, 00031 long vec[], int n, const KVStrList & opts=KVStrList("") ) 00032 { gr_plot1D(gr_nx2x(x1),gr_ny2y(y1),gr_nx2x(x2),gr_ny2y(y2),vec,n,opts); } 00033 00034 00035 00036 inline void gr_wplot1D( float x1, float y1, float x2, float y2, 00037 double vec[], int n, const KVStrList & opts=KVStrList("") ) 00038 { gr_plot1D(gr_wx2x(x1),gr_wy2y(y2),gr_wx2x(x2),gr_wy2y(y1),vec,n,opts); } 00039 inline void gr_wplot1D( float x1, float y1, float x2, float y2, 00040 float vec[], int n, const KVStrList & opts=KVStrList("") ) 00041 { gr_plot1D(gr_wx2x(x1),gr_wy2y(y2),gr_wx2x(x2),gr_wy2y(y1),vec,n,opts); } 00042 inline void gr_wplot1D( float x1, float y1, float x2, float y2, 00043 int vec[], int n, const KVStrList & opts=KVStrList("") ) 00044 { gr_plot1D(gr_wx2x(x1),gr_wy2y(y2),gr_wx2x(x2),gr_wy2y(y1),vec,n,opts); } 00045 inline void gr_wplot1D( float x1, float y1, float x2, float y2, 00046 short vec[], int n, const KVStrList & opts=KVStrList("") ) 00047 { gr_plot1D(gr_wx2x(x1),gr_wy2y(y2),gr_wx2x(x2),gr_wy2y(y1),vec,n,opts); } 00048 inline void gr_wplot1D( float x1, float y1, float x2, float y2, 00049 long vec[], int n, const KVStrList & opts=KVStrList("") ) 00050 { gr_plot1D(gr_wx2x(x1),gr_wy2y(y2),gr_wx2x(x2),gr_wy2y(y1),vec,n,opts); } 00051 00052 00053 void gr_plot1D( int x1, int y1, int x2, int y2, 00054 double func(double), double xi, double xf, int n, const KVStrList & opts=KVStrList("") ); 00055 inline void gr_nplot1D( float x1, float y1, float x2, float y2, 00056 double func(double), double xi, double xf, int n, const KVStrList & opts=KVStrList("") ) 00057 { gr_plot1D(gr_nx2x(x1),gr_ny2y(y1),gr_nx2x(x2),gr_ny2y(y2),func,xi,xf,n,opts); } 00058 inline void gr_wplot1D( float x1, float y1, float x2, float y2, 00059 double func(double), double xi, double xf, int n, const KVStrList & opts=KVStrList("") ) 00060 { gr_plot1D(gr_wx2x(x1),gr_wy2y(y2),gr_wx2x(x2),gr_wy2y(y1),func,xi,xf,n,opts); } 00061 00062 00063 00064 00065 00066 00067 #endif 00068