-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
region_plot raises weird IndexError when y_min > y_max #35032
Comments
Hi @seblabbe, I've modified the code to solve the issue in PR #35065. This is the change in the 'setup_for_eval_on_grid' function in misc.py which Contour_plot uses to prepare for plotting and preprocesses the ranges including checking for errors like correct range format.
|
The new input-output looks like this:
|
Please check the latest PR #35077 as a fix to the issue. This PR has a clean commit history. Thank you, looking forward to contribute to SageMath regularly. |
Last PR was interfering with old if/else case. Updated in new PR #35113 Also merged base/develop into the branch. So there are 2 commits in total. (fix + merge) Hopefully everything is fine this time. |
Fixed by #35113 |
### 📚 Description Solves #35032 Add if condition in misc.py which contour_plot uses to check for invalid range entered by user(xmin > xmax or ymin>ymax) ### 📝 Checklist - [x ] I have made sure that the title is self-explanatory and the description concisely explains the PR. - [ x] I have linked an issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. URL: #35113 Reported by: Agamdeep Singh Reviewer(s): Agamdeep Singh, Kwankyu Lee
Is there an existing issue for this?
Did you read the documentation and troubleshoot guide?
Environment
Steps To Reproduce
Expected Behavior
A
ValueError
saying thaty_min
andy_max
should satisfyy_min < y_max
.Actual Behavior
Additional Information
The current error does not help the user to find the real problem.
The text was updated successfully, but these errors were encountered: