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

Levels argument not working #246

Closed
xarico10 opened this issue Jul 31, 2021 · 1 comment
Closed

Levels argument not working #246

xarico10 opened this issue Jul 31, 2021 · 1 comment
Assignees

Comments

@xarico10
Copy link
Contributor

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

@benaliabderrahmane
Copy link
Contributor

works perfectly in matlab2021a (online mode) please review

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

3 participants