Skip to content

Commit 24eab5f

Browse files
authored
fix: gnuplot_includes_legends returns true
1 parent dc4efce commit 24eab5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/matplot/core/axes_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ namespace matplot {
914914
static bool msg_shown_once = false;
915915
// Gnuplot version needs to be 5.2.6+ for keyentry
916916
if (parent_->backend_->consumes_gnuplot_commands()) {
917-
if (backend::gnuplot::gnuplot_includes_legends()) {
917+
if (!backend::gnuplot::gnuplot_includes_legends()) {
918918
if (!msg_shown_once) {
919919
std::cerr
920920
<< "You need gnuplot 5.2.6+ to include legends"

0 commit comments

Comments
 (0)