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

fsurf() not supported #266

Closed
xarico10 opened this issue Aug 2, 2021 · 1 comment
Closed

fsurf() not supported #266

xarico10 opened this issue Aug 2, 2021 · 1 comment
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 2, 2021

When using fsurf() to create a surface plot of a function, an error is being printed.

fsurf(@(x,y) sin(x)+cos(y))

fig2plotly(gcf, 'offline', false);

The previous code prints the following error:

Error using response_handler (line 31)
Expecting (x, y) pairs

Error in makecall (line 32)
    response_handler(resp);

Error in plotly (line 28)
response = makecall(args, origin, structargs);

Error in plotlyfig/plotly (line 449)
                response = plotly(obj.data, args);

Error in fig2plotly (line 49)
p.plotly;

Error in untitled5 (line 4)
fig2plotly(gcf, 'offline', false);

Expected plot:
Captura de Pantalla 2021-08-02 a la(s) 11 39 44 a  m

Examples on using fsurf() can be found on:
https://www.mathworks.com/help/matlab/ref/fsurf.html#responsive_offcanvas

@gilbertogalvis gilbertogalvis self-assigned this Aug 8, 2021
gilbertogalvis pushed a commit that referenced this issue Aug 9, 2021
@gilbertogalvis gilbertogalvis mentioned this issue Aug 9, 2021
@gilbertogalvis
Copy link
Contributor

PR #328 fix this issue

Screen Shot 2021-08-08 at 8 57 41 PM

Screen Shot 2021-08-08 at 8 58 27 PM

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

2 participants