Skip to content

Color bar shown by default on heat maps #286

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

Color bar shown by default on heat maps #286

xarico10 opened this issue Aug 3, 2021 · 1 comment
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 3, 2021

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

@gilbertogalvis
Copy link
Contributor

Screen Shot 2021-08-05 at 5 43 15 PM

fixed

Screen Shot 2021-08-05 at 5 43 45 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants