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

slice() not working correctly #312

Closed
xarico10 opened this issue Aug 5, 2021 · 1 comment
Closed

slice() not working correctly #312

xarico10 opened this issue Aug 5, 2021 · 1 comment
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 5, 2021

When using slice() to draw slices for the volumetric data, an incorrect background color is placed and parts of the plot are missing.

[X,Y,Z] = meshgrid(-2:.2:2);
V = X.*exp(-X.^2-Y.^2-Z.^2);

xslice = [-1.2,0.8,2];   
yslice = [];
zslice = 0;
slice(X,Y,Z,V,xslice,yslice,zslice)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/1041/#/) plot:
Captura de Pantalla 2021-08-05 a la(s) 4 19 09 p  m
Captura de Pantalla 2021-08-05 a la(s) 4 19 21 p  m

Also, there's not grid on Plotly's figure.

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

@gilbertogalvis
Copy link
Contributor

This issue was fixed by PR #431

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

2 participants