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

Image from JPG file not working correctly #283

Closed
xarico10 opened this issue Aug 3, 2021 · 3 comments
Closed

Image from JPG file not working correctly #283

xarico10 opened this issue Aug 3, 2021 · 3 comments
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 3, 2021

When using image() to plot a JPG file, the colors aren't matching. Also, the color bar is being showed by default, and in this case there's no point on showing a color bar.

C = imread('ngc6543a.jpg');
image(C)

fig2plotly(gcf, 'offline', false);

The previous code prints the following warning message:

Unrecognized field name "DisplayName".
We had trouble parsing the image object.
This trace might not render properly.

Expected and generated (https://chart-studio.plotly.com/~xarico10/859/#/) plots:
Captura de Pantalla 2021-08-03 a la(s) 2 24 30 p  m
Captura de Pantalla 2021-08-03 a la(s) 2 24 43 p  m

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

sameehj added a commit to sameehj/plotly-graphing-library-for-matlab that referenced this issue Aug 5, 2021
@sameehj
Copy link

sameehj commented Aug 8, 2021

This issue has been fixed by this commit: 59481e8

@sameehj
Copy link

sameehj commented Aug 8, 2021

I have recognised that the same issue might happen in updateArea and updatePatch and I have created a fix here: #326

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

PR #331 fix this issue

Screen Shot 2021-08-09 at 6 50 18 PM

Screen Shot 2021-08-09 at 6 50 59 PM

@gilbertogalvis gilbertogalvis self-assigned this Aug 9, 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

4 participants