Skip to content

slice() not working correctly #312

Closed
@xarico10

Description

@xarico10

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions