cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
733 stars 34 forks source link

plot: Add some type checking assertions #583

Closed johannes-wolf closed 1 month ago

johannes-wolf commented 1 month ago

Add some type checking assertions to plot.plot.

johannes-wolf commented 1 month ago

I suppose these checks are fair but could they be mitigated by improving the documentation?

I think it is quite clear that those values should be dictionaries (or functions), as they are documented as such. These checks are because someone passed other values to those fields and the resulting error message was not that helpful.