51 static std::map< std::string, hippodraw::Symbol::Type >
s_symbols;
54 static std::map< std::string, hippodraw::Line::Style >
s_lineStyles;
80 const std::vector< std::string > & bindings );
87 const std::vector< std::string > & bindings );
97 static const std::vector < std::string > &
names ();
111 const std::string &label );
117 void setWeight (
const std::string &label );
120 const std::string &
name ()
const;
127 double getMean (
const std::string & axis );
131 double getRMS (
const std::string & axis );
141 void applyCuts (
const std::vector < QtCut * > & cuts );
145 const std::vector < std::string > &
colorNames ();
155 void setColor (
const std::string & color );
169 const std::vector<double> &
194 void setSymbol(
const std::string &symbolName,
float size=2.);
211 void setBinWidth (
const std::string & axis,
double width );
218 #endif // PyDataRep_H static void makeSymbolMap()
Create the plotting symbols map.
Type
Enumeration of the type of symbols supported by this class.
NTuple * getNTupleWithCuts() const
Return the current NTuple but with the present set of cuts applied.
Style
Line style constants.
void init()
Used in the constructors.
void setAxisBindings(const std::vector< std::string > &bindings)
Set the axis bindings for all axes at once.
Qt Displays wraps a derived class of Cut1DPlotter.
double numberOfEntries() const
Return the number of entries in the rep.
void setPointRep(RepBase *pointRep)
Set the point representation.
hippodraw::DataRep * m_datarep
The actual DataRep object.
PyArray_TYPES type(numeric::array arr)
void setColor(const std::string &color)
Set the color used for plotting, selecting from a predefined palette of "black", "red", "green", "blue", "yellow", "cyan", "magenta".
static void makeColorMap()
Create the color map.
PyDataRep()
The default constructor.
static std::map< std::string, hippodraw::Line::Style > s_lineStyles
A map of line styles, keyed by name.
void setCutRange(double low, double high)
Sets the range of the region cut.
void setLineStyle(const std::string &lineStyle)
Set the plotting line style.
const std::string & name() const
Return the display name used to create this data rep.
void setErrorDisplay(const std::string &axis, bool flag)
Turn on the error bars.
Value
A few common colors.
double getMean(const std::string &axis)
Returns the mean value along axis axis.
NTuple * createNTupleUnderRegion() const
Returns a new NTuple from the bound DataSource by selecting rows that satisfy the region cut...
The base class for data representations.
void addCut()
Adds a new region cut.
double getRMS(const std::string &axis)
Returns the RMS of the mean value along axis axis.
double getBinWidth(const std::string &axis)
Get the bin width for the specified axis.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
const std::vector< std::string > & colorNames()
Returns the names of the available colors.
void applyCut(QtCut *cut)
Apply a cut.
static void makeLineStyleMap()
Create the line style map.
column
The column indices for 2 dimension data point tuple.
A DataSource class implemented with std::vector<double> to store the column data. ...
std::vector< double > m_columnData
Vector of values returned by const reference for getColumnWithCuts method.
const std::vector< double > & getColumnWithCuts(const std::string &column)
Return the named column with the present set of cuts applied.
void applyCuts(const std::vector< QtCut * > &cuts)
Apply a sequence of cuts to the DataRep.
static std::map< std::string, hippodraw::Symbol::Type > s_symbols
A map of symbol types, keyed by name.
void normalizeTo(const PyDataRep *target)
Normalizes the receiving object to the target one.
static const std::vector< std::string > & names()
Returns the names of the types of DataRep objects available.
void setBinWidth(const std::string &axis, double width)
Sets the bin width, if binned, on axis to width.
intp size(numeric::array arr)
hippodraw::DataRep * getDataRep()
The get method.
const NTuple * createNTuple() const
Create an NTuple for the displayed data.
void setSymbol(const std::string &symbolName, float size=2.)
Set the plotting symbol and size.
void setSize(double value)
Sets the size of the point representation.
void setAxisBinding(const std::string &axis, const std::string &label)
Set the axis bindings for a single axis.
The base class for the point representation hierarchy.
void setWeight(const std::string &label)
Set the weight for DyHistogram (or Color Plot or Contour plots).
This class is the public interface the what the user sees as the DataRep object from Python...
static bool s_have_static_members
A flag to indicate that we have the static data members.
Base class for DataSource.