29 #include <sciplot/Default.hpp>
30 #include <sciplot/specs/Specs.hpp>
31 #include <sciplot/Utils.hpp>
36 template <
typename DerivedSpecs>
50 auto repr() const -> std::
string;
54 std::
string m_pointtype;
57 std::
string m_pointsize;
63 template <
typename DerivedSpecs>
68 template <
typename DerivedSpecs>
71 m_pointtype =
"pointtype " + internal::str(value);
72 return static_cast<DerivedSpecs&
>(*this);
75 template <
typename DerivedSpecs>
78 m_pointsize =
"pointsize " + internal::str(value);
79 return static_cast<DerivedSpecs&
>(*this);
82 template <
typename DerivedSpecs>
86 ss << m_pointtype <<
" ";
88 return internal::removeExtraWhitespaces(ss.str());
auto repr() const -> std::string
Convert this PointSpecsOf object into a gnuplot formatted string.
Definition: PointSpecsOf.hpp:83
auto pointSize(int value) -> DerivedSpecs &
Set the point size of the underlying plot object.
Definition: PointSpecsOf.hpp:76
PointSpecsOf()
Construct a default PointSpecsOf instance.
Definition: PointSpecsOf.hpp:64
The base class for other specs classes (e.g., LineSpecsOf, DrawSpecs, BorderSpecs,...
Definition: Specs.hpp:36
The class used to specify point options.
Definition: PointSpecsOf.hpp:61
auto pointType(int value) -> DerivedSpecs &
Set the point type of the underlying plot object.
Definition: PointSpecsOf.hpp:69
The class used to attach point options to a type.
Definition: PointSpecsOf.hpp:38