Skip to content

Color bar shown by default on heat maps #286

Closed
@xarico10

Description

@xarico10

When plotting any chart that plotly assumes as a heat map, the color bar is printed by default. In MATLAB, isn't printed by default and to do so it it's necessary to use a colorbar command.

For example:

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

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/914/#/) plots:

Captura de Pantalla 2021-08-03 a la(s) 5 14 54 p  m

Captura de Pantalla 2021-08-03 a la(s) 5 14 31 p  m

Case where the color bar is intended to be shown:

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

Captura de Pantalla 2021-08-03 a la(s) 5 16 03 p  m

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