sciplot  0.3.1
A modern C++ plotting library powered by gnuplot
TicsSpecsBaseOf< DerivedSpecs > Class Template Reference

The class used to attach common tic options to a type that also specifies tic options. More...

#include <TicsSpecsBaseOf.hpp>

Inheritance diagram for TicsSpecsBaseOf< DerivedSpecs >:
[legend]
Collaboration diagram for TicsSpecsBaseOf< DerivedSpecs >:
[legend]

Public Member Functions

 TicsSpecsBaseOf ()
 Construct a default TicsSpecsBaseOf instance.
 
auto alongAxis () -> DerivedSpecs &
 Set the tics to be displayed along the axis.
 
auto alongBorder () -> DerivedSpecs &
 Set the tics to be displayed along the border.
 
auto mirror (bool value=true) -> DerivedSpecs &
 Set the tics to be mirrored on the opposite border if true.
 
auto insideGraph () -> DerivedSpecs &
 Set the tics to be displayed inside the graph.
 
auto outsideGraph () -> DerivedSpecs &
 Set the tics to be displayed outside the graph.
 
auto rotate (bool value=true) -> DerivedSpecs &
 Set the tics to be rotated by 90 degrees if true.
 
auto rotateBy (double degrees) -> DerivedSpecs &
 Set the tics to be rotated by given degrees.
 
auto scaleBy (double value) -> DerivedSpecs &
 Set the scale for the major tics (identical to method scaleMajorBy).
 
auto scaleMajorBy (double value) -> DerivedSpecs &
 Set the scale for the major tics.
 
auto scaleMinorBy (double value) -> DerivedSpecs &
 Set the scale for the minor tics.
 
auto format (std::string fmt) -> DerivedSpecs &
 Set the format of the tics using a format expression ("%.2f")
 
auto logscale (int base=10) -> DerivedSpecs &
 Set logarithmic scale with base for an axis.
 
auto repr () const -> std::string
 Convert this TicsSpecsBaseOf object into a gnuplot formatted string.
 
auto repr (std::string axis) const -> std::string
 Convert this TicsSpecsBaseOf object into a gnuplot formatted string.
 
- Public Member Functions inherited from TextSpecsOf< DerivedSpecs >
 TextSpecsOf ()
 Construct a default TextSpecsOf instance.
 
auto textColor (std::string color) -> DerivedSpecs &
 Set the color of the text (e.g., "blue", "#404040")
 
auto enhanced (bool value=true) -> DerivedSpecs &
 Set the enhanced mode of the text. More...
 
- Public Member Functions inherited from FontSpecsOf< DerivedSpecs >
 FontSpecsOf ()
 Construct a default FontSpecsOf instance.
 
auto fontName (std::string name) -> DerivedSpecs &
 Set the name of the font (e.g., Helvetica, Georgia, Times).
 
auto fontSize (std::size_t size) -> DerivedSpecs &
 Set the point size of the font (e.g., 10, 12, 16).
 
- Public Member Functions inherited from Specs< DerivedSpecs >
virtual ~Specs ()=default
 Pure virtual destructor (this class is an abstract base class).
 
 operator std::string () const
 Return a string representation of this object of some class that derives from specs.
 
auto derived () -> DerivedSpecs &
 Return a reference to the specs object of class derived from this.
 
auto derived () const -> const DerivedSpecs &
 Return a const reference to the specs object of class derived from this.
 
- Public Member Functions inherited from OffsetSpecsOf< DerivedSpecs >
 OffsetSpecsOf ()
 Construct a default OffsetSpecsOf instance.
 
auto shiftAlongX (double chars) -> DerivedSpecs &
 Shift the underlying plot element along the x direction by given number of characters (can be fraction).
 
auto shiftAlongY (double chars) -> DerivedSpecs &
 Shift the underlying plot element along the y direction by given number of characters (can be fraction).
 
auto shiftAlongGraphX (double val) -> DerivedSpecs &
 Shift the underlying plot element along the x direction within the graph coordinate system.
 
auto shiftAlongGraphY (double val) -> DerivedSpecs &
 Shift the underlying plot element along the y direction within the graph coordinate system.
 
auto shiftAlongScreenX (double val) -> DerivedSpecs &
 Shift the underlying plot element along the x direction within the screen coordinate system.
 
auto shiftAlongScreenY (double val) -> DerivedSpecs &
 Shift the underlying plot element along the y direction within the screen coordinate system.
 
- Public Member Functions inherited from ShowSpecsOf< DerivedSpecs >
 ShowSpecsOf ()
 Construct a default ShowSpecsOf instance.
 
auto show (bool value=true) -> DerivedSpecs &
 Set the visibility status of the plot element.
 
auto hide () -> DerivedSpecs &
 Set the visibility status of the plot element as hidden.
 
auto isHidden () const -> bool
 Return true if the underlying plot element is hidden.
 

Detailed Description

template<typename DerivedSpecs>
class sciplot::TicsSpecsBaseOf< DerivedSpecs >

The class used to attach common tic options to a type that also specifies tic options.


The documentation for this class was generated from the following file: