Skip to content

Adding Image to Axes in 3-D View not working properly #284

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 Aug 3, 2021 · 1 comment
Closed

Adding Image to Axes in 3-D View not working properly #284

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

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 3, 2021

When using image() on an existent chart to add an image to it, it's being plotted as a completely new chart, with it's own grid and not integrating to the existent one.

Z = 10 + peaks;
surf(Z)
hold on 
image(Z,'CDataMapping','scaled')

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/910/#/) plots:
Captura de Pantalla 2021-08-03 a la(s) 4 59 54 p  m
Captura de Pantalla 2021-08-03 a la(s) 5 00 12 p  m

Examples on doing this can be found on:
https://www.mathworks.com/help/matlab/ref/image.html#buryl46-1

@gilbertogalvis
Copy link
Contributor

PR #346 fix this issue

Screen Shot 2021-08-17 at 10 54 33 AM

Screen Shot 2021-08-17 at 10 58 31 AM

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