-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Renamed get_graph
and its variants to :meth:~.CoordinateSystem.plot
#2187
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
Conversation
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.
Suggested extending deprecation date to v0.13.0
, + the renaming should be applied where get_x
are used in the docs too. But I do support the name change! 👍
Looks good to me in general!
In matplotlib, this would show the graph directly:
That is not a big issue, but might cause confusion. |
Not sure, but since this isn't directly related to this PR, maybe open a new discussion/issue? |
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.
Ah my bad, I went only went through the 'manim' subfolder 😅. It should be clear now |
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.
Not sure, but since this isn't directly related to this PR, maybe open a new discussion/issue?
Yes, that can be discussed in the future, for now this looks good to me!
Should |
I disagree, the term 'curve' brings a very general sense as opposed to 'graph' which is closely related to function plotting. I think of That being said, IMO the current naming of curves and graphs are already pretty understandable. |
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.
Can you resolve the merge conflicts?
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.
Thanks! They were probably added sometime after I left this PR and I didn't notice |
Replacements have been made.
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.
LGTM, I also (strongly) support renaming get_graph
to plot
.
get_graph
(and the like) to plot
get_graph
and its variants to :meth:~.CoordinateSystem.plot
Overview: What does this pull request change?
get_graph
to :meth:~.CoordinateSystem.plot
get_implicit_curve
to :meth:~.CoordinateSystem.plot_implicit_curve
get_parametric_curve
to :meth:~.CoordinateSystem.plot_parametric_curve
get_line_graph
to :meth:~.CoordinateSystem.plot_line_graph
get_derivative_graph
to :meth:~.CoordinateSystem.plot_derivative_graph
Motivation and Explanation: Why and how do your changes improve the library?
Links to added or changed documentation pages
Further Information and Comments
Reviewer Checklist