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
plot(x, xmin=1, xmax=-1) comes up empty #13368
Comments
comment:1
One data point is an email I got today (unrelated to Sage development, just use) asking why
didn't result as expected. So maybe we should do more than ignore them, but raise an error or something... NO! My belief is that this is a typo. Notice that in #5651, the places where this is ignored are ALL some kind of contour or "rectangular" plot, except for plot.py, but then plot_field.py does not have this, even though it's this kind of plot. In fact, we probably should support things like
since we might want to keep the data but not show it. |
comment:2
Though we'd probably have to deal with
somehow... |
comment:3
with ymin, the parameter in show overrides the parameter in plot. |
comment:7
I think I had some idea how to fix this. If I get some time I will look at it again. It will not be any time soon, unfortunately. Essentially, we just need to mimic how ymin and ymax are handled. |
comment:11
Just came across this again. Really, all relevant options should be passed to show! |
comment:12
As of 7.3.beta8 evaluating Evaluating Shouldn't this ticket be first about a sanity check on domain and range? Is there a good reason to allow reversal and inversion? |
comment:13
Replying to @paulmasson:
Second command should be the desired output.
A good reason to allow flipped axis is to have axes that are decreasing instead of increasing. It is already possible by using |
Branch: u/paulmasson/13368 |
Commit: |
comment:15
He's a solution to this problem. Part of the reason the plots were empty is that the function All plotting doctests pass and documentation all builds. I scanned all seven plotting documentation HTML files that use Adding Javier to cc list since he's been working on plotting examples and might spot something wrong. New commits:
|
comment:19
Andrey, I haven't changed any keywords and don't plan to. All I did was remove The question is whether the change of allowing |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:22
Code rewritten for consistency with #20924 |
comment:23
everything looks good to me. As I see no negative vote, I'll make it a positive review |
comment:24
Reviewer name is needed. |
Reviewer: Javier Honrubia González |
comment:26
see patchbot |
comment:27
The changes on this ticket produce unexpected results for elliptic curves. Needs to be investigated. |
comment:30
Maybe not related, but why "e" in "2.717e" in
|
comment:31
Indeed unrelated, but also worth a ticket. We don't do a good job dealing with scientific notation that ends up in the tick labels, and you can see that if you try plotting things with really high output values but in a narrow range. For example:
|
The following two plots
give different outputs. In particular, the plot comes up empty in the
former one. This seems to be a conscious decision taken in #5651. The main
line seems to be this line in
sage/plot/plot.py
and similar lines inseveral other files.
Is there a reason for this? Should this be "fixed?"
CC: @kcrisman @sagetrac-jakobkroeker @paulmasson @sagetrac-jhonrubia6 @novoselt @alauve @tscrim @jm58660
Component: graphics
Author: Paul Masson
Branch/Commit: u/paulmasson/13368 @
f0eebbb
Reviewer: Javier Honrubia González
Issue created by migration from https://trac.sagemath.org/ticket/13368
The text was updated successfully, but these errors were encountered: