We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e320a commit a625aa4Copy full SHA for a625aa4
source/matplot/axes_objects/vectors.cpp
@@ -72,15 +72,15 @@ namespace matplot {
72
std::string vectors::plot_string() {
73
maybe_update_line_spec();
74
std::stringstream ss;
75
- ss << " '-' with vectors";
76
- if (!line_spec_.user_color()) {
77
- ss << " linecolor palette ";
+ ss << " '-' with vectors ";
+ if (!m_data_.empty()) {
+ ss << "linecolor palette ";
78
+ ss << "linewidth " << line_spec_.line_width();
79
} else {
- ss << " linecolor rgb \'" << to_string(line_spec_.color()) << "\'";
80
+ ss << line_spec_.plot_string(
81
+ line_spec::style_to_plot::plot_line_only, false);
82
}
83
- ss << " linewidth " << line_spec_.line_width();
-
84
if (use_y2_) {
85
ss << " xlim x1y2";
86
0 commit comments