-
Notifications
You must be signed in to change notification settings - Fork 250
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
Contour plot with all lines in one color #527
Comments
For reference, I realized this might be better suited for julia-users, and cross-posted it. If I get an answer there I'll be sure to post it here too. |
This is probably not the best way to do this, but plot(x=xs, y=ys, z=zs, Geom.contour, Scale.ContinuousColorScale(x->color("gray"))) seems to do what you want. |
Darwin's solution was pretty much to only way to do this, so I added a |
Thanks, both @darwindarak and @dcjones for quick response. As it turns out, I'm using this in a layered plot where I have both a layer with contour levels (which I want all grey) and a few other layers with 2D trace plots, for which I have a defined, manual color key. Since Here's an example plot command of what I'm trying to do:
I tried adding a Is there any way to accomplish this? |
Oh, this is trickier than I thought. Maybe the most natural thing to do would be to add a |
Couldn't |
Since this is still open, here's a tiny bit of code that will "manually" add contours to a plot (p). If a complete example is needed, let me know. p = plot whatever goes under the contours. |
I tried this:
but the only difference between with and without the
Scale
element is that with it, it seems that the colors are chosen as distinguishable, while without it they are from a spectrum corresponding to the function value.Is there a way to get all the contour lines in a contour plot in the same color?
The text was updated successfully, but these errors were encountered: