-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Plotly backend: surface(X,Y,Z) has x-axis in wrong direction #872
Comments
The input args X and Y in Plots are not mesh-grids / matrices; just Vectors. Do you mean something like X=linspace(0.,1.,40)
Y = X .* (1-X)
Z = X .* ones(40)'
surface(X, Y, Z) ? |
No since the plotting grid is a triangle.
It works fine in PyPlot, as seen in the attachment, so it's clearly not the case that they have to be vectors
… On 29 May 2017, at 15:56, Michael Krabbe Borregaard ***@***.***> wrote:
The input args X and Y in Plots are not mesh-grids / matrices; just Vectors. Do you mean something like
X=linspace(0.,1.,40)
Y = X .* (1-X)
Z = X .* ones(40)'
surface(X, Y, Z)
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Interesting. AFAIK this is undefined behaviour that just happens to work in pyplot, @tbreloff most likely knows this. If it's a small fix to get it working in plotly too that's definitely worth looking into. |
Ah! Thanks for pointer, and this
also explains the current issue. I'll add it to the list of desirable enhancements for the other backends as well. |
Except it does work in Plotly almost perfectly, which suggests it was added at some point
…Sent from my iPhone
On 29 May 2017, at 16:26, Michael Krabbe Borregaard ***@***.***> wrote:
Ah! Thanks for pointer, and this "It will likely only work with PyPlot" also explains the current issue. I'll add it to the list of desirable enhancements for the other backends as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Perhaps, I'm not sure. The pyplot functionality was added in ed7cc9b , it doesn't look awfully complicated. |
I have opened a new issue with an appropriate name and am closing this #875. |
OK, I think there is an issue here but it's not what I said: it's the plotly is putting the y-coordinate axis in the "wrong" direction: x = linspace(-3.,3.,100)
y = linspace(0,3.,101)
surface(x,y,x' .+ y) # axes are not consistent with gr() |
Ah I'm being stupid: it's just a different vantage point, like you said. |
looks fine, while
has the x-axis in the wrong direction, see attachment.
Untitled2.pdf
The text was updated successfully, but these errors were encountered: