Skip to content

Image from JPG file not working correctly #283

Description

@xarico10

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions