File tree Expand file tree Collapse file tree 17 files changed +27
-27
lines changed Expand file tree Collapse file tree 17 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ namespace matplot {
143
143
144
144
std::string bars::data_string () {
145
145
std::stringstream ss;
146
- ss.precision (5 );
146
+ ss.precision (10 );
147
147
ss << std::fixed;
148
148
double m = x_minimum_difference ();
149
149
double cw = cluster_width ();
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ namespace matplot {
127
127
}
128
128
std::vector<double > unique_groups = unique (x_data_);
129
129
std::stringstream ss;
130
- ss.precision (5 );
130
+ ss.precision (10 );
131
131
ss << std::fixed;
132
132
// for each group
133
133
for (size_t i = 0 ; i < unique_groups.size (); ++i) {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ namespace matplot {
45
45
46
46
std::string circles::data_string () {
47
47
std::stringstream ss;
48
- ss.precision (5 );
48
+ ss.precision (10 );
49
49
ss << std::fixed;
50
50
for (size_t i = 0 ; i < x_.size (); ++i) {
51
51
auto value_or_default = [](const std::vector<double > &v,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ namespace matplot {
50
50
double contour_max_level = *max_it;
51
51
52
52
std::stringstream ss;
53
- ss.precision (5 );
53
+ ss.precision (10 );
54
54
ss << std::fixed;
55
55
if (filled_) {
56
56
auto [lower_levels, upper_levels] = get_lowers_and_uppers ();
@@ -478,7 +478,7 @@ namespace matplot {
478
478
double zmin = *min_level_it;
479
479
480
480
std::stringstream ss;
481
- ss.precision (5 );
481
+ ss.precision (10 );
482
482
ss << std::fixed;
483
483
for (size_t i = 0 ; i < lines_.size (); ++i) {
484
484
if (i != 0 ) {
@@ -771,7 +771,7 @@ namespace matplot {
771
771
auto [lower_levels, upper_levels] = get_lowers_and_uppers ();
772
772
773
773
std::stringstream ss;
774
- ss.precision (5 );
774
+ ss.precision (10 );
775
775
ss << std::fixed;
776
776
if (filled_) {
777
777
// Plot the line segments
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ namespace matplot {
79
79
const bool has_x_bar = !x_negative_delta_.empty ();
80
80
const bool has_xy_bar = has_y_bar && has_x_bar;
81
81
std::stringstream ss;
82
- ss.precision (5 );
82
+ ss.precision (10 );
83
83
ss << std::fixed;
84
84
if (has_xy_bar) {
85
85
for (size_t i = 0 ; i < y_data_.size (); ++i) {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ namespace matplot {
58
58
59
59
std::string filled_area::data_string () {
60
60
std::stringstream ss;
61
- ss.precision (5 );
61
+ ss.precision (10 );
62
62
ss << std::fixed;
63
63
64
64
std::vector<double > stacked_data;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ namespace matplot {
55
55
std::string histogram::plot_string () {
56
56
maybe_update_face_color ();
57
57
std::stringstream ss;
58
- ss.precision (5 );
58
+ ss.precision (10 );
59
59
ss << std::fixed;
60
60
if (!is_polar ()) {
61
61
if (!stairs_only_) {
@@ -89,7 +89,7 @@ namespace matplot {
89
89
std::string histogram::data_string () {
90
90
make_sure_data_is_preprocessed ();
91
91
std::stringstream ss;
92
- ss.precision (5 );
92
+ ss.precision (10 );
93
93
ss << std::fixed;
94
94
if (!is_polar ()) {
95
95
for (size_t i = 0 ; i < values_.size (); ++i) {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ namespace matplot {
98
98
font_size_factor = (xrange_increase + yrange_increase) / 2 .;
99
99
}
100
100
std::stringstream ss;
101
- ss.precision (5 );
101
+ ss.precision (10 );
102
102
ss << std::fixed;
103
103
const bool custom_sizes = !sizes_.empty ();
104
104
const bool custom_colors = !colors_.empty ();
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ namespace matplot {
163
163
const bool x_is_manual = !x_data_.empty ();
164
164
165
165
std::stringstream ss;
166
- ss.precision (5 );
166
+ ss.precision (10 );
167
167
ss << std::fixed;
168
168
for (const auto &style : styles_to_plot ()) {
169
169
if (visible_) {
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ namespace matplot {
167
167
168
168
// stream matrix
169
169
std::stringstream ss;
170
- ss.precision (5 );
170
+ ss.precision (10 );
171
171
ss << std::fixed;
172
172
double x_width_ = x_width ();
173
173
double y_width_ = y_width ();
@@ -275,7 +275,7 @@ namespace matplot {
275
275
276
276
std::string matrix::image_data_string () {
277
277
std::stringstream ss;
278
- ss.precision (5 );
278
+ ss.precision (10 );
279
279
ss << std::fixed;
280
280
auto [h, w] = size (matrices_[0 ]);
281
281
double x_width_ = x_width ();
You can’t perform that action at this time.
0 commit comments