Skip to content

Not matching colors when using image() #280

Closed
@xarico10

Description

@xarico10

When using image(C) to display the data in array C as an image, the default colors aren't matching.

C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
image(C)

fig2plotly(gcf, 'offline', false);

The previous code prints the following 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/849/#/) plots:
Captura de Pantalla 2021-08-03 a la(s) 2 04 21 p  m
Captura de Pantalla 2021-08-03 a la(s) 2 04 37 p  m

Examples on using image(C) can be found on:
https://www.mathworks.com/help/matlab/ref/image.html#buqlsdw-2

Metadata

Metadata

Labels

⭐⭐⭐ multiplierIssues that could close multiple related issues at once

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions