Skip to content

y-axis in log mode cannot go below 1e-6 #93

@SolidTux

Description

@SolidTux

When plotting in log mode, there is no way for the y-axis to go below 1e-6. Note that also the y-tick-step is necessary, as otherwise the compilation crashes due to too many ticks (is this a bug?)

Document

#import "@preview/cetz-plot:0.1.0": plot
#import "@preview/cetz:0.3.1"

#set page(width: auto, height: auto, margin: 5mm)

#cetz.canvas(
  {
    plot.plot(
      size: (6, 3),
      y-mode: "log",
      y-format: "sci",
      y-tick-step: 1,
      y-min: 1e-7,
      {
        plot.add((
          (0, 1e-7),
          (1, 1e-6),
          (2, 1e-2),
        ),
          mark: "o"
        )
      }
    )
  }
)

2024-11-25 plot

Metadata

Metadata

Assignees

No one assigned

    Labels

    👿 bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions