File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
source/matplot/axes_objects Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,27 @@ namespace matplot {
72
72
std::string vectors::plot_string () {
73
73
maybe_update_line_spec ();
74
74
std::stringstream ss;
75
- ss << " '-' with vectors " ;
75
+ ss << " '-' with vectors" ;
76
76
if (!m_data_.empty ()) {
77
- ss << " linecolor palette " ;
78
- ss << " linewidth " << line_spec_.line_width ();
77
+ ss << " linecolor palette" ;
78
+ ss << " linewidth " << line_spec_.line_width ();
79
+
80
+ switch (line_spec_.line_style ()) {
81
+ case line_spec::line_style::solid_line:
82
+ ss << " dashtype 1" ;
83
+ break ;
84
+ case line_spec::line_style::dashed_line:
85
+ ss << " dashtype '--'" ;
86
+ break ;
87
+ case line_spec::line_style::dotted_line:
88
+ ss << " dashtype '.'" ;
89
+ break ;
90
+ case line_spec::line_style::dash_dot_line:
91
+ ss << " dashtype '-.'" ;
92
+ break ;
93
+ default :
94
+ break ;
95
+ }
79
96
} else {
80
97
ss << line_spec_.plot_string (
81
98
line_spec::style_to_plot::plot_line_only, false );
You can’t perform that action at this time.
0 commit comments