rotated angles for plot x-axis #707
-
How to rotate the x-axis tick labels for plot.plot(...)? |
Beta Was this translation helpful? Give feedback.
Answered by
johannes-wolf
Oct 6, 2024
Replies: 1 comment 1 reply
-
Using the style key #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)
})
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
johannes-wolf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the style key
axes.bottom.tick.label.angle
(&anchor
):