sciplot  0.3.1
A modern C++ plotting library powered by gnuplot
AxisLabelSpecs Class Reference

The specifications for an axis label (e.g., xlabel, ylabel, etc.) More...

#include <AxisLabelSpecs.hpp>

Inheritance diagram for AxisLabelSpecs:
[legend]
Collaboration diagram for AxisLabelSpecs:
[legend]

Public Member Functions

 AxisLabelSpecs (std::string axis)
 Construct a default AxisLabelSpecs instance.
 
auto text (std::string text) -> AxisLabelSpecs &
 Set the text of the axis label.
 
auto rotateBy (int degrees) -> AxisLabelSpecs &
 Specify that the axis label should be rotated by a given angle in degrees.
 
auto rotateAxisParallel () -> AxisLabelSpecs &
 Specify that the axis label should be rotated to be in parallel to the corresponding axis (for 3D plots).
 
auto rotateNone () -> AxisLabelSpecs &
 Specify that the axis label should not be rotated.
 
auto repr () const -> std::string
 Convert this AxisLabelSpecs object into a gnuplot formatted string.
 
- Public Member Functions inherited from TextSpecsOf< AxisLabelSpecs >
 TextSpecsOf ()
 Construct a default TextSpecsOf instance.
 
auto textColor (std::string color) -> AxisLabelSpecs &
 Set the color of the text (e.g., "blue", "#404040")
 
auto enhanced (bool value=true) -> AxisLabelSpecs &
 Set the enhanced mode of the text. More...
 
auto repr () const -> std::string
 Convert this TextSpecsOf object into a gnuplot formatted string.
 
- Public Member Functions inherited from FontSpecsOf< AxisLabelSpecs >
 FontSpecsOf ()
 Construct a default FontSpecsOf instance.
 
auto fontName (std::string name) -> AxisLabelSpecs &
 Set the name of the font (e.g., Helvetica, Georgia, Times).
 
auto fontSize (std::size_t size) -> AxisLabelSpecs &
 Set the point size of the font (e.g., 10, 12, 16).
 
- Public Member Functions inherited from Specs< AxisLabelSpecs >
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 () -> AxisLabelSpecs &
 Return a reference to the specs object of class derived from this.
 
auto derived () const -> const AxisLabelSpecs &
 Return a const reference to the specs object of class derived from this.
 

Detailed Description

The specifications for an axis label (e.g., xlabel, ylabel, etc.)


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