hageldave / JPlotter

OpenGL based 2D Plotting Library for Java using AWT and LWJGL
https://github.com/hageldave/JPlotter/wiki
MIT License
45 stars 6 forks source link

Decouple x from y tick mark generation #66

Closed hageldave closed 2 months ago

hageldave commented 2 months ago

Tick marks are generated via a TickMarkGenerator instance in CoordSysRenderer https://github.com/hageldave/JPlotter/blob/82d78a889a365fcda0c98fa27afcd5be39a42cc9/jplotter/src/main/java/hageldave/jplotter/renderers/CoordSysRenderer.java#L480-L489

It is the same instance that is used for both x and y, so it is difficult to change the tick mark behavior of only one axis. You would need to supply a new generator that does the same for the y-axis but a different thing for the x-axis. There should be two separate instances, one for each axis.