ABRG-Models / morphologica

A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization)
https://abrg-models.github.io/morphologica/
Apache License 2.0
255 stars 29 forks source link

GraphVisual auto-rescaling review #269

Closed sebjameswml closed 1 week ago

sebjameswml commented 1 week ago

Some of the logic for the rescaling was making more calls to setlimits() and friends than was strictly necessary. I've reviewed and modified this code, making use of morph::range for the max/min range testing. Also, I've brought in more extensive use of morph::range in GraphVisual generally (e.g. Flt datamin_x and Flt datamax_x are now morph::range<Flt> datarange_x, and removed the use of new/delete for graphDataCoords.