Skip to content

Commit

Permalink
Add marker to enum Side.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Mar 13, 2024
1 parent 41b010a commit 4cbde8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/plot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/plot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ namespace ecolab
if (y[i][j]<miny1) miny1=y[i][j];
if (y[i][j]>maxy1) maxy1=y[i][j];
}
else
else if (i>=penSide.size() || i<penSide.size() && penSide[i]==left)
{
if (y[i][j]<miny) miny=y[i][j];
if (y[i][j]>maxy) maxy=y[i][j];
Expand Down

0 comments on commit 4cbde8c

Please sign in to comment.