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
[Work in Progress] Basic framework for restructured plot. #1468
Conversation
``expr`` : Expression representing the function of single variable | ||
``range``: (x, 0 , 5), A 3 - tuple denoting the range of the free variable. | ||
|
||
If the ranges is not specified, then a default range of (-10, 10) is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add: "This may change in the future if a more advanced default range detection algorithm is detected."
Why create a new file for this? |
SymPy Bot Summary: 🔴 There were test failures. @catchmrbharath: Please fix the test failures. Test command: setup.py test Interpreter 1: 🔴 There were test failures. Interpreter: /usr/local/bin/python2.5 (2.5.6-final-0) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYhcYiDA Interpreter 2: 🔴 There were test failures. Interpreter: /usr/bin/python2.7 (2.7.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYlPAhDA Interpreter 3: 🔴 There were test failures. Interpreter: /usr/bin/python3.2 (3.2.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYvbYiDA Build HTML Docs: ✳️ All tests have passed. Docs build command: make html-errors Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYiJQjDA Automatic review by SymPy Bot. |
SymPy Bot Summary: 🔴 There were test failures. @catchmrbharath: Please fix the test failures. Test command: setup.py test Interpreter 1: 🔴 There were test failures. Interpreter: /usr/local/bin/python2.5 (2.5.6-final-0) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYn-0iDA Interpreter 2: 🔴 There were test failures. Interpreter: /usr/bin/python2.7 (2.7.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYkJQjDA Interpreter 3: 🔴 There were test failures. Interpreter: /usr/bin/python3.2 (3.2.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYqowjDA Build HTML Docs: ✳️ All tests have passed. Docs build command: make html-errors Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYj5QjDA Automatic review by SymPy Bot. |
SymPy Bot Summary: 🔴 There were test failures (merged catchmrbharath/restructured_plot (d9efa1ea0a5efa812fe4e76e308cf3f6068b69c0) into master (0d88b25)). @catchmrbharath: Please fix the test failures. Interpreter 1: 🔴 There were test failures. Interpreter 2: 🔴 There were test failures. Interpreter 3: 🔴 There were test failures. Interpreter 4: 🔴 There were test failures. Interpreter 5: 🔴 There were test failures. Interpreter 6: 🔴 There were test failures. Interpreter 7: 🔴 There were test failures. Interpreter 8: 🔴 There were test failures. Interpreter 9: 🔴 There were test failures. Build HTML Docs: 🔴 There were test failures. |
SymPy Bot Summary: 🔴 There were test failures. @catchmrbharath: Please fix the test failures. Test command: setup.py test Interpreter 1: 🔴 There were test failures. Interpreter: /usr/local/bin/python2.5 (2.5.6-final-0) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY8KMjDA Interpreter 2: 🔴 There were test failures. Interpreter: /usr/bin/python2.7 (2.7.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYoMYiDA Interpreter 3: 🔴 There were test failures. Interpreter: /usr/bin/python3.2 (3.2.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYsfAhDA Build HTML Docs: ✳️ All tests have passed. Docs build command: make html-errors Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYn8YiDA Automatic review by SymPy Bot. |
@asmeurer @Krastanov Can you have a look at this? Is the API access better? I will add the depth and the nb_of_points in an hour. |
Multiple plots with same range. | ||
plot_line(expr1, expr2, ..., range) | ||
|
||
Multiple plots with different . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ranges
By the way, we need a Sphinx file for the new plotting module. |
Usage | ||
===== | ||
Single Plot | ||
plot_line(expr, range, ...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ...
should be replaced with **kwargs
.
Where the range is optional, the spec should read |
I didn't get it. Can you show with an example? Thanks. |
SymPy Bot Summary: 🔴 There were test failures. @catchmrbharath: Please fix the test failures. Test command: setup.py test Interpreter 1: 🔴 There were test failures. Interpreter: /usr/local/bin/python2.5 (2.5.6-final-0) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY248iDA Interpreter 2: 🔴 There were test failures. Interpreter: /usr/bin/python2.7 (2.7.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYjIAiDA Interpreter 3: 🔴 There were test failures. Interpreter: /usr/bin/python3.2 (3.2.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY3bYiDA Build HTML Docs: ✳️ All tests have passed. Docs build command: make html-errors Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY-9UiDA Automatic review by SymPy Bot. |
1 similar comment
SymPy Bot Summary: 🔴 There were test failures. @catchmrbharath: Please fix the test failures. Test command: setup.py test Interpreter 1: 🔴 There were test failures. Interpreter: /usr/local/bin/python2.5 (2.5.6-final-0) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYtPAhDA Interpreter 2: 🔴 There were test failures. Interpreter: /usr/bin/python2.7 (2.7.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYkfUiDA Interpreter 3: 🔴 There were test failures. Interpreter: /usr/bin/python3.2 (3.2.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYwowjDA Build HTML Docs: ✳️ All tests have passed. Docs build command: make html-errors Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY_tUiDA Automatic review by SymPy Bot. |
SymPy Bot Summary: 🔴 There were test failures. @catchmrbharath: Please fix the test failures. Test command: setup.py test Interpreter 1: 🔴 There were test failures. Interpreter: /usr/local/bin/python2.5 (2.5.6-final-0) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY2qsjDA Interpreter 2: 🔴 There were test failures. Interpreter: /usr/bin/python2.7 (2.7.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY9aMjDA Interpreter 3: 🔴 There were test failures. Interpreter: /usr/bin/python3.2 (3.2.3-candidate-2) Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY4LYiDA Build HTML Docs: ✳️ All tests have passed. Docs build command: make html-errors Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sYsLMjDA Automatic review by SymPy Bot. |
The new API is complete. I have added the tests and also updated the notebooks with the new functions @asmeurer @Krastanov One of things I was not sure of was whether to delete the present |
I vote for removing it. By the way, this can't be merged cleanly. |
I will rebase it. |
Aesthetics | ||
---------- | ||
|
||
``line_color``: float. Specifies the color for the plot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not a float, it is a function returning a float. Check the "coloring" example notebook. Another docstring already explains all this, just add in parentheses a reference to it (either Plot or Series).
I think that there is a number of example notebooks that are still using the now nonexistent The name that I suggested may indeed turn out to be too long, however I still find the present ones a bit confusing (maybe it is just be :) Besides some minor corrections to the docstrings I think that they should be sufficient. |
* plot_line -> plot * plot3D -> plot3d * plot3D_parametric -> plot3d_parametric_line * plot3D_surface -> plot3d_parametric_surface
I have changed the plot names.
@asmeurer I have also fixed the doctest failures and addressed @Krastanov comments. |
I do not find any obvious issues anymore. Thanks for all the work. |
By the way, @catchmrbharath as noted on the mailing list, please refrain from rebasing this branch, so it can be merged into 0.7.2. |
SymPy Bot Summary: 🔴 Failed after merging catchmrbharath/restructured_plot (41466ca) into master (a184841). |
Sorry about that. Forgot to run quality test for the last commit. I will squash the new commit once all tests pass. |
I am not sure why the sphinx make is failing. It runs without a problem on my machine. |
I think it is a failure from master. |
I'm running the tests against 0.7.2 to see how things will be there. |
SymPy Bot Summary: 🔴 Failed after merging catchmrbharath/restructured_plot (274ec3f) into origin/0.7.2 (c1c3b17). |
OK, those Sphinx errors you do need to fix. |
SymPy Bot Summary: ✳️ All tests have passed. Test results html report: http://reviews.sympy.org/report/agZzeW1weTNyDAsSBFRhc2sY6eYkDA Interpreter: /usr/local/bin/python (2.7.3-final-0) Automatic review by SymPy Bot. |
SymPy Bot Summary: 🔴 Failed after merging catchmrbharath/restructured_plot (6478b79) into origin/0.7.2 (c1c3b17). |
SymPy Bot Summary: 🔴 Failed after merging catchmrbharath/restructured_plot (6478b79) into HEAD (6478b79). |
SymPy Bot Summary: 🔴 Failed after merging catchmrbharath/restructured_plot (6478b79) into master (a184841). |
SymPy Bot Summary: 🔴 Failed after merging catchmrbharath/restructured_plot (6478b79) into master (a184841). |
[Work in Progress] Basic framework for restructured plot.
Changes Unknown when pulling 6478b79 on catchmrbharath:restructured_plot into * on sympy:master*. |
This is a just a framework of functions that will replace plot which took care of all the possible plots.
The behaviour that is expected is provided in the docstrings. This pull request was made to get an opinion
on the names of the functions and the behaviour that has to be expected of these functions.
I will keep updating this branch with the code for the behaviour.