Closed
Description
When using contour()
to create a contour plot and specifying the argument levels
to specify the number of contour lines to display isn't working.
[X,Y,Z] = peaks;
contour(X,Y,Z,2)
fig2plotly(gcf, 'offline', false);
The previous code should plot a contour plot with only two contour lines, however, plots the default amount of lines.
Expected and generated (https://chart-studio.plotly.com/~xarico10/673/#/) plots:
Examples on using levels
argument can be found on:
https://www.mathworks.com/help/matlab/ref/contour.html#mw_21efb7a2-23ab-4a46-b7ec-e13f5c70117e
Metadata
Metadata
Assignees
Labels
No labels