|
| Gnuplot (const std::string &style="points") |
| set a style during construction
|
|
| Gnuplot (const std::vector< double > &x, const std::string &title="", const std::string &style="points", const std::string &labelx="x", const std::string &labely="y") |
| plot a single std::vector at one go
|
|
| Gnuplot (const std::vector< double > &x, const std::vector< double > &y, const std::string &title="", const std::string &style="points", const std::string &labelx="x", const std::string &labely="y") |
| plot pairs std::vector at one go
|
|
| Gnuplot (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::string &title="", const std::string &style="points", const std::string &labelx="x", const std::string &labely="y", const std::string &labelz="z") |
| plot triples std::vector at one go
|
|
| ~Gnuplot () |
| destructor: needed to delete temporary files
|
|
Gnuplot & | cmd (const std::string &cmdstr) |
| send a command to gnuplot
|
|
Gnuplot & | operator<< (const std::string &cmdstr) |
| Sends a command to an active gnuplot session, identical to cmd() send a command to gnuplot using the << operator. Plus de détails...
|
|
Gnuplot & | showonscreen () |
| sets terminal type to terminal_std
|
|
Gnuplot & | savetops (const std::string &filename="gnuplot_output") |
| saves a gnuplot session to a postscript file, filename without extension
|
|
Gnuplot & | set_style (const std::string &stylestr="points") |
|
Gnuplot & | set_smooth (const std::string &stylestr="csplines") |
|
Gnuplot & | unset_smooth () |
| unset smooth attention: smooth is not set by default Plus de détails...
|
|
Gnuplot & | set_pointsize (const double pointsize=1.0) |
| scales the size of the points used in plots
|
|
Gnuplot & | set_grid () |
| turns grid on/off
|
|
Gnuplot & | unset_grid () |
| grid is not set by default
|
|
Gnuplot & | set_multiplot () |
|
Gnuplot & | unset_multiplot () |
|
Gnuplot & | set_samples (const int samples=100) |
| set sampling rate of functions, or for interpolating data
|
|
Gnuplot & | set_isosamples (const int isolines=10) |
| set isoline density (grid) for plotting functions as surfaces (for 3d plots)
|
|
Gnuplot & | set_hidden3d () |
|
Gnuplot & | unset_hidden3d () |
|
Gnuplot & | set_contour (const std::string &position="base") |
|
Gnuplot & | unset_contour () |
|
Gnuplot & | set_surface () |
|
Gnuplot & | unset_surface () |
|
Gnuplot & | set_legend (const std::string &position="default") |
|
Gnuplot & | unset_legend () |
| Switches legend off attention:legend is set by default. Plus de détails...
|
|
Gnuplot & | set_title (const std::string &title="") |
| sets and clears the title of a gnuplot session Plus de détails...
|
|
Gnuplot & | unset_title () |
| Clears the title of a gnuplot session The title is not set by default. Plus de détails...
|
|
Gnuplot & | set_ylabel (const std::string &label="x") |
| set x axis label
|
|
Gnuplot & | set_xlabel (const std::string &label="y") |
| set y axis label
|
|
Gnuplot & | set_zlabel (const std::string &label="z") |
| set z axis label
|
|
Gnuplot & | set_xrange (const double iFrom, const double iTo) |
| set axis - ranges
|
|
Gnuplot & | set_yrange (const double iFrom, const double iTo) |
| set y-axis - ranges
|
|
Gnuplot & | set_zrange (const double iFrom, const double iTo) |
| set z-axis - ranges
|
|
Gnuplot & | set_xautoscale () |
|
Gnuplot & | set_yautoscale () |
|
Gnuplot & | set_zautoscale () |
|
Gnuplot & | set_xlogscale (const double base=10) |
| turns on/off log scaling for the specified xaxis (logscale is not set by default)
|
|
Gnuplot & | set_ylogscale (const double base=10) |
| turns on/off log scaling for the specified yaxis (logscale is not set by default)
|
|
Gnuplot & | set_zlogscale (const double base=10) |
| turns on/off log scaling for the specified zaxis (logscale is not set by default)
|
|
Gnuplot & | unset_xlogscale () |
|
Gnuplot & | unset_ylogscale () |
|
Gnuplot & | unset_zlogscale () |
|
Gnuplot & | set_cbrange (const double iFrom, const double iTo) |
| set palette range (autoscale by default)
|
|
Gnuplot & | plotfile_x (const std::string &filename, const unsigned int column=1, const std::string &title="") |
|
template<typename X > |
Gnuplot & | plot_x (const X &x, const std::string &title="") |
| from std::vector Plus de détails...
|
|
Gnuplot & | plotfile_xy (const std::string &filename, const unsigned int column_x=1, const unsigned int column_y=2, const std::string &title="") |
|
template<typename X , typename Y > |
Gnuplot & | plot_xy (const X &x, const Y &y, const std::string &title="") |
| from data Plus de détails...
|
|
Gnuplot & | plotfile_xy_err (const std::string &filename, const unsigned int column_x=1, const unsigned int column_y=2, const unsigned int column_dy=3, const std::string &title="") |
|
template<typename X , typename Y , typename E > |
Gnuplot & | plot_xy_err (const X &x, const Y &y, const E &dy, const std::string &title="") |
| from data Plus de détails...
|
|
Gnuplot & | plotfile_xyz (const std::string &filename, const unsigned int column_x=1, const unsigned int column_y=2, const unsigned int column_z=3, const std::string &title="") |
|
template<typename X , typename Y , typename Z > |
Gnuplot & | plot_xyz (const X &x, const Y &y, const Z &z, const std::string &title="") |
| from std::vector
|
|
Gnuplot & | plot_slope (const double a, const double b, const std::string &title="") |
| plot an equation of the form: y = ax + b, you supply a and b
|
|
Gnuplot & | plot_equation (const std::string &equation, const std::string &title="") |
|
Gnuplot & | plot_equation3d (const std::string &equation, const std::string &title="") |
|
Gnuplot & | plot_image (const unsigned char *ucPicBuf, const unsigned int iWidth, const unsigned int iHeight, const std::string &title="") |
| plot image Plus de détails...
|
|
Gnuplot & | replot (void) |
| replot repeats the last plot or splot command. this can be useful for viewing a plot with different set options, or when generating the same plot for several devices (showonscreen, savetops)
|
|
Gnuplot & | reset_plot () |
| resets a gnuplot session (next plot will erase previous ones)
|
|
Gnuplot & | reset_all () |
| resets a gnuplot session and sets all variables to default
|
|
void | remove_tmpfiles () |
| deletes temporary files
|
|
bool | is_valid () |
| Is the gnuplot session valid ?? Plus de détails...
|
|
The Gnuplot class, can receive parameters, then transmit them to Gnuplot via pipes Pipes are closed when class is destroyed.
Gnuplot & Gnuplot::plot_equation |
( |
const std::string & |
equation, |
|
|
const std::string & |
title = "" |
|
) |
| |
plot an equation supplied as a std::string y=f(x), write only the function f(x) not y= the independent variable has to be x binary operators: ** exponentiation, * multiply, / divide, + add, - substract, % modulo unary operators: - minus, ! factorial elementary functions: rand(x), abs(x), sgn(x), ceil(x), floor(x), int(x), imag(x), real(x), arg(x), sqrt(x), exp(x), log(x), log10(x), sin(x), cos(x), tan(x), asin(x), acos(x), atan(x), atan2(y,x), sinh(x), cosh(x), tanh(x), asinh(x), acosh(x), atanh(x) special functions: erf(x), erfc(x), inverf(x), gamma(x), igamma(a,x), lgamma(x), ibeta(p,q,x), besj0(x), besj1(x), besy0(x), besy1(x), lambertw(x) statistical fuctions: norm(x), invnorm(x)