Skip to content

LineSpec argument not working on contour plots #252

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

Closed
xarico10 opened this issue Jul 31, 2021 · 10 comments
Closed

LineSpec argument not working on contour plots #252

xarico10 opened this issue Jul 31, 2021 · 10 comments
Assignees

Comments

@xarico10
Copy link
Contributor

Using LineSpec input argument to change the line format isn't working.

[X,Y,Z] = peaks;
contourf(X,Y,Z,'--')
fig2plotly(gcf, 'offline', false);

The previous code should plot a filled contour with dashed lines, however, is plotting regular solid lines.

Expected and generated (https://chart-studio.plotly.com/~xarico10/709/#/) plots:
Captura de Pantalla 2021-07-31 a la(s) 12 36 30 p  m
Captura de Pantalla 2021-07-31 a la(s) 12 36 39 p  m

Examples on using LineSpec can be found on:
https://www.mathworks.com/help/matlab/ref/contourf.html#mw_30a9c816-90e5-4ab8-a7a0-11675e85a091

@uzairmughal110
Copy link

uzairmughal110 commented Jul 31, 2021

It is working perfectly fine with me.

Code
[X,Y,Z] = peaks;
contourf(X,Y,Z,'--')
fig2plotly();

Output
image

@uzairmughal110 uzairmughal110 self-assigned this Jul 31, 2021
@xarico10
Copy link
Contributor Author

What's your MATLAB version?

@uzairmughal110
Copy link

I am using 2015a

@xarico10
Copy link
Contributor Author

I'm using 2021a, that may be it. Is there a way you can run it in a more recent version?

@uzairmughal110
Copy link

I will try to run it on my peer's machine

@xarico10
Copy link
Contributor Author

xarico10 commented Jul 31, 2021

Thanks! We are having this kind of issues where isn't working for me but does work in older version. It'd be great help if we can confirm that it's due to MATLAB versions.

@uzairmughal110
Copy link

Sure, I will confirm

@uzairmughal110
Copy link

I just confirmed it from MATLAB 2018b. It works like a charm there too

@VolKa79
Copy link

VolKa79 commented Jul 31, 2021

Works in M2021a (used offline mode)

@benaliabderrahmane
Copy link
Contributor

works in matlab2021a (online mode)

@gilbertogalvis gilbertogalvis self-assigned this Jul 31, 2021
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

5 participants