Skip to content
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

surface plot with surface color specification? #612

Closed
BoundaryValueProblems opened this issue Dec 14, 2016 · 2 comments
Closed

surface plot with surface color specification? #612

BoundaryValueProblems opened this issue Dec 14, 2016 · 2 comments

Comments

@BoundaryValueProblems
Copy link
Contributor

BoundaryValueProblems commented Dec 14, 2016

I am wondering whether I can plot a 3D surface with its color specified by the 4th input argument rather than its color representing the heights (or z values). The surf function of MATLAB does just this. This is particularly important if we want to display a complex-valued function with the height representing its real components and the color representing its imaginary components.
It looks to me that matplotlib could do it using the attribute facecolors. So, Plots.jl should be able to do this in principle. See also the discussion JuliaPy/PyPlot.jl#91
Thanks!
BVPs

@BoundaryValueProblems
Copy link
Contributor Author

Here's more discussion on how to use facecolors in matplotlib:
http://stackoverflow.com/questions/25023075/normalizing-colormap-used-by-facecolors-in-matplotlib
I hope that Plots.jl soon will be able to handle the facecolors attribute.

@BoundaryValueProblems
Copy link
Contributor Author

I just want to report my progress. It is now possible to do what I wanted to do using plot_surface function in PyPlot. See my discussion at JuliaPy/PyPlot.jl#264
Yet, I really want to do the same in the Plots.jl level rather than directly using PyPlot. I woud appreciate it if you could suggest the next step to fully incorporate in Plots.jl.
Best,
BVPs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant