cetz-plot
cetz-plot copied to clipboard
Better Log/Log or Semilog plots
Also see #93
When plotting log plots, I think there are lots of room for improvement.
First, the ticks scaling is still linear, even though the labeling is logarithmic. I might be ideal to allow minor ticks grids to also scale logarithmically.
Also, sensible defaults should be chosen (base 10, ticks on every order of magnitude of the base, etc.)
By default, the tick labels are not in scientific notation, which I think It should be in order to more effectively show the range instead of having to use high levels of decimal precision which is not easy to understand and adds clutter. The base of the scientific notation labels should also reflect the base used for the logarithmic scaling. (if anyone knows how to set the tick labels to scientific notation currently, let me know).
Since log plots are fairly common, I think this should be a priority.
In general, I think PGF plots does most of these things well. See semilogxaxis/semilogyaxis/loglogaxis here https://tikz.dev/pgfplots/reference-axis#pgfp.loglogaxis. I am focusing on log axis since I have run into this problem, but I think in general we should try to clone most of the functionality of PGF plots for this project.
Edit: I realize the issue I referenced answers my question on sci notation labels for the ticks.