colorbar problems
danton267 opened this issue · 1 comments
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.
This issues has been fixed with PR #404