cetz-package / cetz-plot

Create Plots and Charts with CeTZ
GNU Lesser General Public License v3.0
7 stars 1 forks source link

plot: minor ticks disappear when inverting y-axis #10

Closed Kuchenmampfer closed 3 weeks ago

Kuchenmampfer commented 1 month ago

Hello, when I invert the y-axis by swapping y-min and y-max, the minor ticks and the corresponding grid lines disappear. I guess this is a bug and I am the first person to try out that inversion. You can recreate it with the following snippet:

cetz.plot.plot(size: (12,8),
  x-tick-step: none, y-tick-step: 5,  y-minor-tick-step: 1,
  x-min: 0, x-max: 15, x-grid: true,
  y-min: 25, y-max: -1, y-grid: "both", {
    cetz.plot.add(((0,0),))
})