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