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
Implement multi-function plotting options in plot() #12962
Comments
This comment has been minimized.
This comment has been minimized.
Commit: |
comment:7
I've pushed a possible solution and set the ticket to 'needs_review'. Comments? New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:52
Doctests pass. Documentation builds and looks good as is. Aaron, are you still planning to work on plots on this ticket or can I set positive review? |
comment:53
Hmm, Thx. Replying to @paulmasson:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:57
Aaron, you added a bit more that what's in your description: the options for Regarding legends, for the case of multiple graph colors with a single |
comment:58
Also, the documentation for |
comment:59
Replying to @paulmasson:
ah yes... it occurred to me that this was a natural extension of what was asked for in [comment:16]. My apologies for not mentioning it.
I don't know that I agree. I was trying to think of all the reasons I'd just include one label... "trig functions" or "cos(nx)" or some such. I don't think I'd want to see that written multiple times. Certainly, seeing "f" or "x2" written multiple times would be silly. But, it is nearly as easy to write ["trig functions", "", ""] as it is to write "trig functions", so I'm happy to modify the code accordingly. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:61
Good to go. |
Changed commit from |
comment:62
Branch seems to be missing? |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Commit: |
comment:64
Hmm...strange. I have the most recent copy, so I've pushed it back. |
Changed branch from public/graphics/multi_function_plot_options-12962 to |
The code
plot([x,x^2],-.2,2)
is a nice shortcut for plotting both x and x!^ 2 on the same graph. However, if you want to choose different colors or linestyles for each function, then it seems you have to execute, e.g.,Here is how Maple and Mathematica handle this issue, respectively:
It seems that the keyword 'fill' allows for a dictionary input, so perhaps the relevant code there could serve as a template?
Remarks:
in Mathematica produces two curves that are not both solid-blue.
fillcolor
,color
, andfill
should be the same insofar as possible.CC: @kcrisman @ppurka @jdemeyer @jasongrout @saliola @sagetrac-jhonrubia6 @paulmasson @novoselt
Component: user interface
Keywords: plot, linestyle, color
Author: Aaron Lauve
Branch/Commit:
4acb9d6
Reviewer: Paul Masson
Issue created by migration from https://trac.sagemath.org/ticket/12962
The text was updated successfully, but these errors were encountered: