Skip to content

Trouble using rect #537

Answered by fenjalien
nanodeath asked this question in Q&A
Mar 24, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You want to make sure you import the correct functions and modules at the start of the canvas:

#cetz.canvas({
  import cetz.draw: * // imports `rect` and `content` and all the other functions to draw with
  import cetz: plot // Imports the plot module
  
  plot.plot(
     ...
  )
})

To use "plot.fail1" as an anchor you need to give the plot a name using the name keyword argument

plot.plot(
  name: "plot",
  ...
)
line("plot.fail1", ...)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nanodeath
Comment options

@nanodeath
Comment options

Answer selected by nanodeath
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