Skip to content

Commit

Permalink
Switches GraphVisual to use more of morph::range for maxes and mins
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjameswml committed Oct 17, 2024
1 parent dddb343 commit 753e7dc
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 86 deletions.
2 changes: 1 addition & 1 deletion examples/graph_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main()
ds.linewidth = ds.markersize/8.0f;
// Bar graphs usually need to extend up from 0, so set scaling policy for the y axis accordingly:
gv->scalingpolicy_y = morph::scalingpolicy::manual_min;
gv->datamin_y = 0;
gv->datarange_y.min = 0;
// Set the data-to-axis distance based on the markersize.
gv->setdataaxisdist (0.04f + ds.markersize/2.0f);
gv->setdata (absc, ord, ds);
Expand Down
Loading

0 comments on commit 753e7dc

Please sign in to comment.