#include <CPyPlot.hpp>
Public Member Functions | |
CPyColorPlot (string xname="x", string yname="y", string binname="mass", int nx=10, int ny=10, int type=0, int igridmethod=1, QWidget *myparent=0) | |
void | calculate (Matrix< float > *thedata=0) |
Do the actual plotting. | |
bool | do_plotting () |
Do the actual plotting. | |
Matrix< float > * | getDataPtr () const |
PyObject * | getPyDataPtr () const |
string | getBinname () const |
int | getNx () const |
int | getNy () const |
void | setNxNy (int nx, int ny) |
Private Attributes | |
Matrix< float > * | data_ |
int | dims_ [2] |
PyObject * | pyData_ |
string | binname_ |
int | nx_ |
int | ny_ |
int | igridmethod_ |
extention of the CPyPlot class for 2D color plots (using python matplotlib)
CPyColorPlot::CPyColorPlot | ( | string | xname = "x" , |
|
string | yname = "y" , |
|||
string | binname = "mass" , |
|||
int | nx = 10 , |
|||
int | ny = 10 , |
|||
int | type = 0 , |
|||
int | igridmethod = 1 , |
|||
QWidget * | myparent = 0 | |||
) |
create a CPyColorPlot: make a 2D color plot. The calculated data is owned by the plot: when the plot is deleted so is the corresponding data.
int CPyColorPlot::dims_[2] [private] |
dimensions of the plot
int CPyColorPlot::igridmethod_ [private] |
determine type of gridding
PyObject* CPyColorPlot::pyData_ [private] |
python wrapper around the matrix data