We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I was trying the examples in the manual, but could not compile any of them. I get the following error:
error: cannot access fields on user-defined functions ┌─ test.typ:12:11 │ 12 │ plot.add(domain: (0, calc.pi), calc.sin) │ ^^^
I am using the following code:
#import "@preview/cetz:0.3.0" #import "@preview/cetz-plot:0.1.0": plot, chart #cetz.canvas({ import cetz.draw: * import cetz.plot: * plot.plot( size: (5, 5), axis-style: "scientific", { plot.add(domain: (0, calc.pi), calc.sin) }, ) })
What might be the problem? It seems I am the only one having this issue.
The text was updated successfully, but these errors were encountered:
Remove the import cetz.plot: * line. I guess you accidentally overwrote the plot module by importing it from cetz (which contains a stub-function).
import cetz.plot: *
plot
cetz
Sorry, something went wrong.
Oh, thanks. That was it. In that case, there is a bug in the pdf manual (see page 3).
Fixed with #69.
No branches or pull requests
Hi, I was trying the examples in the manual, but could not compile any of them. I get the following error:
I am using the following code:
What might be the problem? It seems I am the only one having this issue.
The text was updated successfully, but these errors were encountered: