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