Description
Class for lotting data with GNUplot.
This is a basic utility class, it just saves a temporary gpl file on disk and then calls the GNUplot utility from the system shell, so it does not require to link GNUplot libraries. If the GNUplot is not installed, simply nothing happens. NOTE: the GNUplot should be installed in your platform. Supported from release 4.6. NOTE: the GNUplot executable must be available in your PATH, i.e. if you type 'gnuplot' in the cmd window, it should be executed. If this does not happens, add the directory with the GNUplot binary to your PATH. In Linux platforms this should be already ok by default. NOTE: if no plot is displayed, open a cmd shell, type "gnuplot __tmp_gnuplot.gpl -persist" and see which error is displayed.
#include <ChGnuPlot.h>
Member Function Documentation
◆ OutputCustomTerminal()
◆ OutputEPS()
◆ OutputPNG()
◆ OutputWindow()
◆ SetCommand()
This is the main feature.
Use this function to add commands in the gnuplot script. It can be whatever gnuplot statement. Basically you would just need calls to SetCommand() followed by an Output() at the end, however to make things easier, there are some shortcut functions such as SetRangeX() ,SetGrid(), Plot etc. that populate the command file for you. It will be automatically null-terminated, so you may call it multiple times, each per line.
◆ SetPersist()
If false, the GNUplot will close soon after the plot.
For plotting in windows , it is better to leave it as true by default, but for plotting eps or png maybe you want it to close automatically.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_postprocess/ChGnuPlot.h