-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Allow the exclusion of points from the plot range #6878
Comments
comment:1
Very nice! This line:
should also check that v is not in the right side. Alternatively, you could use the solution_dict parameter to make sure you get a solution. |
comment:2
Replying to @jasongrout:
The new version of the patch includes your suggestion. |
comment:3
Some more comments after examining things more carefully:
Those are the only issues I find; the code other than that works fine. I have not tested the output (nice doctests, though!). |
comment:4
Attachment: trac_6878_exclude.patch.gz Replying to @jasongrout:
Done
You are right. I have fixed this.
I don't know anymore why I have written it that way. I have changed it to
|
comment:7
Works as advertised with the caveat that if the exclusion points are less than xmin or greater than xmax then the plot range is extended (beyond either xmin and xmax). Statements below demonstrate this. (IMHO, I think this is new functionality that works and its easy to specify an exclude range that is inside xmin..xmax to get the plot range you want so it should go in the next milestone release - so Im giving it a positive review).
(I guess if we dont want the exclusion points to modify the plot range - which is ideal - this should be in a new ticket) |
comment:8
The commit string is not sufficiently descriptive. I've refreshed it to
in the queue for 4.3.3.alpha0. |
Reviewer: Jason Grout, Ross Kyprianou |
comment:9
Please remember to update the relevant ticket fields --- the release managers use an automated script to generate lists of merged tickets. |
Changed author from whuss to Wilfried Huss |
Merged: sage-4.3.3.alpha0 |
The attached patch adds a new option 'exclude' to the plot command
which allows to exclude points from the plot.
This is useful if there are discontinuities in the function you are plotting.
Component: graphics
Keywords: plot
Author: Wilfried Huss
Reviewer: Jason Grout, Ross Kyprianou
Merged: sage-4.3.3.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6878
The text was updated successfully, but these errors were encountered: