Skip to content

rotated angles for plot x-axis #707

Closed Answered by johannes-wolf
erflot asked this question in Q&A
Discussion options

You must be logged in to vote

Using the style key axes.bottom.tick.label.angle (& anchor):

#import "@preview/cetz:0.2.2"

#cetz.canvas({
  cetz.draw.set-style(axes: (bottom: (tick: (label: (angle: 90deg, anchor: "east")))))
  cetz.plot.plot(size: (7, 5), {
    cetz.plot.add(domain: (0, calc.pi * 2), calc.sin)
  })
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@erflot
Comment options

Answer selected by johannes-wolf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants