Skip to content

Not matching colors when using image() #280

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

Not matching colors when using image() #280

xarico10 opened this issue Aug 3, 2021 · 1 comment
Assignees
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 3, 2021

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

@xarico10 xarico10 added the ⭐⭐⭐ multiplier Issues that could close multiple related issues at once label Aug 3, 2021
@xarico10 xarico10 assigned xarico10 and unassigned xarico10 Aug 3, 2021
@gilbertogalvis gilbertogalvis self-assigned this Aug 5, 2021
@gilbertogalvis
Copy link
Contributor

Screen Shot 2021-08-05 at 11 43 51 AM

fixed for both

Screen Shot 2021-08-05 at 11 44 07 AM

modes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once
Projects
None yet
Development

No branches or pull requests

2 participants