Skip to content

surfc() not working properly #259

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

Closed
xarico10 opened this issue Aug 2, 2021 · 4 comments
Closed

surfc() not working properly #259

xarico10 opened this issue Aug 2, 2021 · 4 comments
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 2, 2021

When using surfc() to create a three-dimensional surface plot with a contour plot underneath, the contour plot isn't correctly plotted (it should be underneath the 3-D surface on its same grid, not all over the place with independent grid and axes).

[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
surfc(X,Y,Z)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/755/#/) plots:
Captura de Pantalla 2021-08-02 a la(s) 10 40 08 a  m

Captura de Pantalla 2021-08-02 a la(s) 10 39 12 a  m

Examples on using surfc() can be found on:
https://www.mathworks.com/help/matlab/ref/surfc.html

@jackparmer
Copy link
Contributor

@empet made a nice solution for this in Python

@jackparmer
Copy link
Contributor

Here are some examples:

https://chart-studio.plotly.com/~empet/15742/#/

image

https://chart-studio.plotly.com/~empet/14225/slices-in-volumetric-data/#/

image

@empet I couldn't find your notebook for making these projections from 3d surface plots

@empet
Copy link
Collaborator

empet commented Aug 2, 2021

@jackparmer
These are the two notebooks that illustrate projections onto a z-plane:

https://chart-studio.plotly.com/~empet/15919
https://chart-studio.plotly.com/~empet/15918

gilbertogalvis pushed a commit that referenced this issue Aug 18, 2021
@gilbertogalvis
Copy link
Contributor

PR #347 fix this issue

Screen Shot 2021-08-17 at 9 31 14 PM

Screen Shot 2021-08-17 at 9 33 37 PM

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

4 participants