TicsSpecsMajor.hpp
64 auto at(const std::vector<double>& values, const std::vector<std::string>& labels) -> TicsSpecsMajor&;
70 auto add(const std::vector<double>& values, const std::vector<std::string>& labels) -> TicsSpecsMajor&;
135 inline auto TicsSpecsMajor::interval(double start, double increment, double end) -> TicsSpecsMajor&
137 if (increment <= 0.0) throw std::runtime_error("The `increment` argument in method TicsSpecsMajor::interval must be positive.");
138 if (end <= start) throw std::runtime_error("The `end` argument in method TicsSpecsMajor::interval must be greater than `start`.");
156 inline auto TicsSpecsMajor::at(const std::vector<double>& values, const std::vector<std::string>& labels) -> TicsSpecsMajor&
178 inline auto TicsSpecsMajor::add(const std::vector<double>& values, const std::vector<std::string>& labels) -> TicsSpecsMajor&
197 throw std::runtime_error("You have called method TicsSpecsMajor::start but not TicsSpecsMajor::increment.");
199 throw std::runtime_error("You have called method TicsSpecsMajor::end but not TicsSpecsMajor::increment.");
TicsSpecsMajor(std::string axis)
Construct a default TicsSpecsMajor instance.
Definition: TicsSpecsMajor.hpp:95
auto increment(double value) -> TicsSpecsMajor &
Set the increment for the tics (start and end values determined automatically).
Definition: TicsSpecsMajor.hpp:121
auto interval(double start, double increment, double end) -> TicsSpecsMajor &
Set the start, increment and end values of the tics.
Definition: TicsSpecsMajor.hpp:135
auto automatic() -> TicsSpecsMajor &
Set the values of the tics to be identified automatically.
Definition: TicsSpecsMajor.hpp:104
auto start(double value) -> TicsSpecsMajor &
Set the start value for the tics (you must also call method increment).
Definition: TicsSpecsMajor.hpp:114
The class used to specify options for major tics of a specific axis.
Definition: TicsSpecsMajor.hpp:40
The class used to attach common tic options to a type that also specifies tic options.
Definition: TicsSpecsBaseOf.hpp:41
auto repr() const -> std::string
Convert this TicsSpecsBaseOf object into a gnuplot formatted string.
Definition: TicsSpecsBaseOf.hpp:209
auto isHidden() const -> bool
Return true if the underlying plot element is hidden.
Definition: ShowSpecsOf.hpp:81
auto end(double value) -> TicsSpecsMajor &
Set the end value for the tics (you must also call methods start and increment).
Definition: TicsSpecsMajor.hpp:128
auto add(const std::vector< double > &values) -> TicsSpecsMajor &
Add more tics to be displayed with given tic values.
Definition: TicsSpecsMajor.hpp:167
auto at(const std::vector< double > &values) -> TicsSpecsMajor &
Set the values of the tics that should be displayed.
Definition: TicsSpecsMajor.hpp:145
auto repr() const -> std::string
Convert this TicsSpecsMajor object into a gnuplot formatted string.
Definition: TicsSpecsMajor.hpp:189