Skip to content

Image placement not working when using image(x,y,C) #281

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

Image placement not working when using image(x,y,C) #281

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(x,y,C) to specify the image location, such location isn't working and a warning message is printed.

x = [5 8];
y = [3 6];
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
image(x,y,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/851/#/) plots:
Captura de Pantalla 2021-08-03 a la(s) 2 09 43 p  m
Notice that the pixel corresponding to C(1,1) is centered over the point (5,3). The pixel corresponding to C(3,4) is centered over the point (8,6).

Captura de Pantalla 2021-08-03 a la(s) 2 10 39 p  m

Examples on using image(x,y,C) can be found on:
https://www.mathworks.com/help/matlab/ref/image.html#bur_mqu-1

@nouman-tariq nouman-tariq self-assigned this Aug 3, 2021
@xarico10 xarico10 added the ⭐⭐⭐ multiplier Issues that could close multiple related issues at once label Aug 3, 2021
@nouman-tariq nouman-tariq removed their assignment Aug 6, 2021
@gilbertogalvis gilbertogalvis self-assigned this Aug 7, 2021
gilbertogalvis pushed a commit that referenced this issue Aug 8, 2021
@gilbertogalvis
Copy link
Contributor

PR #327 fix this issue

Screen Shot 2021-08-08 at 7 22 46 PM

Screen Shot 2021-08-08 at 7 23 13 PM

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

3 participants