Skip to content

labels on x-axis are missplaced in cetz:0.5.0 #175

Closed

Description

@christianprim

After updating cetz-poackage, I noticed a shift in the x-label and the custom x-ticks-labels. They are placed too high (or too close to the x-axis itself).

cetz:0.5.0

Image

cetz:0.4.2
Image

Activity

  1. changed the title [-]labels on x-axes are missplaced in cetz:0.5.0[/-] [+]labels on x-axis are missplaced in cetz:0.5.0[/+] on Apr 17, 2026
  2. persy commented on May 22, 2026

    @persy
    Image

    same problem.

  3. pcolladosoto commented on May 22, 2026

    @pcolladosoto

    I can confirm the issue too... With cetz:v5.0.0 I get

    Image

    Whilst with cetz:0.4.2 I instead get

    Image

    In both cases the plot's defined with:

    cetz.canvas({
      import cetz.draw: *
      import cetz-plot: *
    
       plot.plot(size: (9, 3), axis-style: "left", fill-below: true,
         x-label: $t upright("[s]")$, y-label: "L [s]",
         x-min: 0, x-max: 8, y-min: 0, y-max: 3,
         x-tick-step: none, y-tick-step: none,
         x-ticks: (2.5, 5.5, 7), y-ticks: (1,),
      {
        plot.add(style: (stroke: 0.5pt + black), ((0,0), (2.5,0), (5.5,1), (7,1), (7,0)))
      })
    })
  4. added this to the 0.1.4 milestone on May 22, 2026
  5. linked a pull request that will close this issue0.1.4 #181on May 24, 2026
  6. removed a link to a pull request0.1.4 #181on May 24, 2026
  7. linked a pull request that will close this issueCetz 0.5.x Compatibility #180on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions