Skip to content

Levels argument not working #246

Closed
Closed
@xarico10

Description

@xarico10

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:

Captura de Pantalla 2021-07-31 a la(s) 12 06 12 a  m

Captura de Pantalla 2021-07-31 a la(s) 12 06 32 a  m

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

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