Skip to content

colorbar problems #394

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
danton267 opened this issue Sep 20, 2021 · 1 comment
Closed

colorbar problems #394

danton267 opened this issue Sep 20, 2021 · 1 comment
Assignees

Comments

@danton267
Copy link
Member

color bar is plotted vertically instead horizontally: https://chart-studio.plotly.com/~danton267/1432/#/

contourf(peaks)
colorbar('southoutside')

following code does not reverse the colorbar:
results in: https://chart-studio.plotly.com/~danton267/1436/#/

surf(peaks)
colorbar('Direction','reverse')

this code does not change location of axis labels:
results in: https://chart-studio.plotly.com/~danton267/1438/#/

surf(peaks)
colorbar('AxisLocation','in')

this results in an error:

tiledlayout(2,1)

% Top plot
nexttile 
surf(peaks)
colorbar

% Bottom plot
nexttile
mesh(peaks)
colorbar

5.1
this creates a colorbard even though it is not supposed to:

Z1 = peaks;
Z2 = membrane;
tiledlayout(2,1);
nexttile
contourf(Z1)
nexttile
contourf(Z2)

5.2
same code but with two more lines where we add the colorbar to the plot results in an error:

Z1 = peaks;
Z2 = membrane;
tiledlayout(2,1);
nexttile
contourf(Z1)
nexttile
contourf(Z2)

cb = colorbar;
cb.Layout.Tile = 'east';

this does not create proper legend with categories:
results in: https://chart-studio.plotly.com/~danton267/1446/#/
supposed to be: https://uk.mathworks.com/help/examples/graphics2/win64/SpecifyColorbarTicksAndTickLabelsExample_01.png

contourf(peaks)
colorbar('Ticks',[-5,-2,1,4,7],...
         'TickLabels',{'Cold','Cool','Neutral','Warm','Hot'})

Once fixed, please reply with chart studio plots for every probel, so I can embed it in online docs.

@gilbertogalvis
Copy link
Contributor

This issues has been fixed with PR #404

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

2 participants