Feel++ 0.91.0
|
Exporter to GNUPLOT format. More...
#include <exportergnuplot.hpp>
Public Types | |
enum | PlottingProperties { GRID_ON = 1, PNG_OUTPUT = 2 } |
Typedefs | |
typedef MeshType | mesh_type |
typedef Exporter< MeshType > | super |
typedef mesh_type::value_type | value_type |
typedef super::timeset_type | timeset_type |
typedef super::timeset_ptrtype | timeset_ptrtype |
typedef super::timeset_iterator | timeset_iterator |
typedef super::timeset_const_iterator | timeset_const_iterator |
typedef matrix_node < value_type >::type | matrix_node_type |
Public Member Functions | |
Constructors, destructor | |
ExporterGnuplot (std::string const &__p="default", int freq=1, int properties=0) | |
ExporterGnuplot (po::variables_map const &vm, std::string const &exp_prefix="", int properties=0) | |
ExporterGnuplot (ExporterGnuplot const &__ex) | |
~ExporterGnuplot () | |
Mutators | |
void | setTitle (std::string const &title) |
void | useGrid (bool grid) |
void | setPngOutput (bool png_output) |
Exporter< MeshType > * | setOptions (po::variables_map const &vm, std::string const &exp_prefix="") |
Methods | |
void | save () const |
void | visit (mesh_type *mesh) |
Exporter to GNUPLOT format.
This class implements exporting meshes and functions using GNUplot in 1D
enum Feel::ExporterGnuplot::PlottingProperties |
Define enumerations to set plotting properties on construction
Feel::ExporterGnuplot< MeshType >::ExporterGnuplot | ( | std::string const & | __p = "default" , |
int | freq = 1 , |
||
int | properties = 0 |
||
) |
Constructor. To set the properties, we input a bitwise OR of the ExporterGnuplot::PlottingProperties enumerations, e.g. ExporterGnuplot::GRID_ON | ExporterGnuplot::PNG_OUTPUT
void Feel::ExporterGnuplot< MeshType >::save | ( | ) | const [virtual] |
save the timeset
Implements Feel::Exporter< MeshType >.
Exporter<MeshType>* Feel::ExporterGnuplot< MeshType >::setOptions | ( | po::variables_map const & | vm, |
std::string const & | exp_prefix = "" |
||
) | [inline, virtual] |
set the options from the variables_map
vm
as well as the prefix exp_prefix
Reimplemented from Feel::Exporter< MeshType >.
References Feel::Exporter< MeshType >::setOptions().
void Feel::ExporterGnuplot< MeshType >::setPngOutput | ( | bool | png_output | ) | [inline] |
Write output to a .png file useing gnuplot
void Feel::ExporterGnuplot< MeshType >::setTitle | ( | std::string const & | title | ) | [inline] |
Set title of plot
void Feel::ExporterGnuplot< MeshType >::useGrid | ( | bool | grid | ) | [inline] |
Turn grid on or off.
void Feel::ExporterGnuplot< MeshType >::visit | ( | mesh_type * | mesh | ) | [virtual] |
export mesh
Implements Feel::Visitor< MeshType >.