29 #include <sciplot/Default.hpp>
30 #include <sciplot/specs/Specs.hpp>
31 #include <sciplot/Utils.hpp>
36 template <
typename DerivedSpecs>
59 auto repr() const -> std::
string;
63 std::
string m_linestyle;
66 std::
string m_linetype;
69 std::
string m_linewidth;
72 std::
string m_linecolor;
75 std::
string m_dashtype;
81 template <
typename DerivedSpecs>
86 template <
typename DerivedSpecs>
89 m_linestyle =
"linestyle " + internal::str(value);
90 return static_cast<DerivedSpecs&
>(*this);
93 template <
typename DerivedSpecs>
96 m_linetype =
"linetype " + internal::str(value);
97 return static_cast<DerivedSpecs&
>(*this);
100 template <
typename DerivedSpecs>
103 m_linewidth =
"linewidth " + internal::str(value);
104 return static_cast<DerivedSpecs&
>(*this);
107 template <
typename DerivedSpecs>
110 m_linecolor =
"linecolor '" + value +
"'";
111 return static_cast<DerivedSpecs&
>(*this);
114 template <
typename DerivedSpecs>
117 m_dashtype =
"dashtype " + internal::str(value);
118 return static_cast<DerivedSpecs&
>(*this);
121 template <
typename DerivedSpecs>
124 std::stringstream ss;
125 ss << m_linestyle <<
" ";
126 ss << m_linetype <<
" ";
127 ss << m_linewidth <<
" ";
128 ss << m_linecolor <<
" ";
129 ss << m_dashtype <<
" ";
130 return internal::removeExtraWhitespaces(ss.str());
auto lineWidth(int value) -> DerivedSpecs &
Set the line width of the underlying line object.
Definition: LineSpecsOf.hpp:101
auto repr() const -> std::string
Convert this LineSpecsOf object into a gnuplot formatted string.
Definition: LineSpecsOf.hpp:122
auto lineColor(std::string value) -> DerivedSpecs &
Set the line color of the underlying line object.
Definition: LineSpecsOf.hpp:108
The class used to attach line options to a type.
Definition: LineSpecsOf.hpp:38
auto lineType(int value) -> DerivedSpecs &
Set the line type of the underlying line object.
Definition: LineSpecsOf.hpp:94
The class used to specify line options.
Definition: LineSpecsOf.hpp:79
The base class for other specs classes (e.g., LineSpecsOf, DrawSpecs, BorderSpecs,...
Definition: Specs.hpp:36
auto lineStyle(int value) -> DerivedSpecs &
Set the line style of the underlying line object.
Definition: LineSpecsOf.hpp:87
LineSpecsOf()
Construct a default LineSpecsOf instance.
Definition: LineSpecsOf.hpp:82
auto dashType(int value) -> DerivedSpecs &
Set the dash type of the underlying line object.
Definition: LineSpecsOf.hpp:115