From 4cbde8cb86c0bda33b4c823749603bef0f6aa3c2 Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Thu, 14 Mar 2024 10:24:04 +1100 Subject: [PATCH] Add marker to enum Side. --- include/plot.h | 2 +- src/plot.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/plot.h b/include/plot.h index d737766..2cdfc8e 100644 --- a/include/plot.h +++ b/include/plot.h @@ -50,7 +50,7 @@ namespace ecolab } }; /// boundingBox is used explictly specify legend sizing via a bounding box relative to plot size - enum Side {left, right, boundingBox}; + enum Side {left, right, boundingBox, marker}; enum PlotType {line, bar, scatter, line_scatter}; struct LineStyle diff --git a/src/plot.cc b/src/plot.cc index 6ec0f32..2ee57b5 100644 --- a/src/plot.cc +++ b/src/plot.cc @@ -334,7 +334,7 @@ namespace ecolab if (y[i][j]maxy1) maxy1=y[i][j]; } - else + else if (i>=penSide.size() || imaxy) maxy=y[i][j];