Closed datahaki closed 2 years ago
To get a narrower display, try setExpTickLabelsFlag(true)
on the LogarithmicAxis
. To mitigate vertical crowding, you may need to increase the height or look at a custom implementation of refreshTicksVertical()
, as suggested here.
thanks for the info!
I just expected the same default behavior as when using the standard (linear?) axis, which automatically adjusts tick spacing.
The plot below uses same data than from above but linear axis in jFreeChart:
Yes. Note how the newer LogAxis
, suggested here, extends ValueAxis
and overrides refreshTicks
to achieve this, while the older LogarithmicAxis
extends NumberAxis
with a different approach to tick units.
thank you very much - LogAxis
did the trick!
I wanted to reproduce the example from Mathematica
https://reference.wolfram.com/language/ref/ListLogPlot.html#1122321828
when using JFreeChart default settings (without manual tweaks) the y-axis number/tick labels get crammed
the ticks seems to be forced as 1, 10, 100, 1000, 1E4, etc. instead of perhaps 1, 1000, 1E6, etc.