Skip to content

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

Closed
@xarico10

Description

@xarico10

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

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