Skip to content

Documentation on parametric plot #116

Answered by johannes-wolf
q-wertz asked this question in Q&A
Discussion options

You must be logged in to vote

You have to pass a function that takes a single parameter. Use Typst lambda functions like this:

#import "@preview/cetz:0.3.2"
#import "@preview/cetz-plot:0.1.1": plot

#cetz.canvas({
  import cetz.draw: *

  plot.plot(
    size: (5, 5),
    // axis-style: none,
    {
      plot.add(domain: (-1, 1), t => (calc.cosh(t), calc.sinh(t)))
    },
  )
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@q-wertz
Comment options

Answer selected by q-wertz
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