File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,13 @@ namespace matplot {
18
18
figure_type::figure_type (size_t index) : figure_type(index, true ) {}
19
19
20
20
figure_type::figure_type (size_t index, bool quiet_mode)
21
- : quiet_mode_(quiet_mode), number_(index) {}
21
+ : quiet_mode_(quiet_mode), number_(index) {
22
+ #if defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__) || defined(__CYGWIN__)
23
+ // On windows, Helvetica will fallback to Sans anyway
24
+ // So we avoid this warning by setting it to Sans already
25
+ font_ = " Sans" ;
26
+ #endif
27
+ }
22
28
23
29
#ifdef MATPLOT_BUILD_FOR_DOCUMENTATION_IMAGES
24
30
figure_type::~figure_type () { save (" example.svg" , " svg" ); }
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ namespace matplot {
285
285
void run_multiplot_command ();
286
286
287
287
private:
288
- std::string generate_window_title () const ;
288
+ [[nodiscard]] std::string generate_window_title () const ;
289
289
290
290
private:
291
291
// The default backend for this figure
You can’t perform that action at this time.
0 commit comments