Skip to content

Commit 9f1c9fb

Browse files
committed
Define gcf with quiet mode parameter
1 parent a1775ce commit 9f1c9fb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

source/matplot/core/figure_registry.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,10 @@ namespace matplot {
7979
return h;
8080
}
8181

82+
figure_handle gcf(bool quiet) {
83+
figure_handle h = gcf();
84+
h->quiet_mode(quiet);
85+
return h;
86+
}
87+
8288
} // namespace matplot

source/matplot/core/figure_registry.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ namespace matplot {
3737

3838
/// \brief Get the current figure
3939
figure_handle gcf();
40+
41+
/// \brief Get current figure in quiet mode
42+
figure_handle gcf(bool quiet);
43+
4044
} // namespace matplot
4145

4246
#endif // MATPLOTPLUSPLUS_FIGURE_REGISTRY_H

0 commit comments

Comments
 (0)