-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
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
cryptic error when using line_plot
#621
Comments
That is very likely caused by unit_of being called on a value of zero. See #521 for more context. |
I just checked the implementation and can confirm it is because your second argument is 0. Use a value slightly higher or lower and it should be resolved. |
Let's leave this open until this #521 mess is resolved 😄. Users should not have to adapt their plot ranges because of this. |
Yeah, I formulated myself in an unfortunate way. I meant that the error would be avoided, but this is absolutely a valid problem and one of the most common values for a starting point shouldn't trigger an error. |
Closed via e8bac1f |
Hello,
I use numbat on the cli, and I saw that some plot functions now exist. So I tried to run:
I expected the
show
to maybe fail, but maybe I could save it to svg or something.However, it never reached that point at all, because the following line fails with an error:
The
...
are not something I added.So I guess I am a user, and thus an error :D
So, perhaps functions not supported in the CLI show not be callable with an error saying
this function is only supported in the browser
, or (bigger fix I think), the plot function should work in the CLI, butshow
could be replaced bysave_svg
or something like that (`àla matplotlib: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html).The text was updated successfully, but these errors were encountered: