plotly/plotly_matlab

docs - 3d histogram colors not working

danton267 opened this issue · 1 comments

h = histogram2(randn(1000,1),randn(1000,1),[12 12],'FaceColor','flat');
colorbar

fig2plotly(gcf);
x = randn(1000,1);
y = randn(1000,1);
h = histogram2(x,y)

h.FaceColor = 'flat';

fig2plotly(gcf);

x = randn(1000,1);
y = randn(1000,1);
h = histogram2(x,y)

h.FaceColor = 'flat';

h.NumBins = [10 25];

h.DisplayStyle = 'tile';
view(2)

fig2plotly(gcf);

does not work

This issue was fixed by PR #465

Example 1

h = histogram2(randn(1000,1),randn(1000,1),[12 12],'FaceColor','flat');
colorbar

fig2plotly(gcf);

Screen Shot 2021-10-28 at 9 41 32 PM

Example 2

x = randn(1000,1);
y = randn(1000,1);
h = histogram2(x,y)

h.FaceColor = 'flat';

fig2plotly(gcf);

Screen Shot 2021-10-28 at 9 41 50 PM

Example 3

x = randn(1000,1);
y = randn(1000,1);
h = histogram2(x,y)

h.FaceColor = 'flat';

h.NumBins = [10 25];

h.DisplayStyle = 'tile';
view(2)

fig2plotly(gcf);

Screen Shot 2021-10-28 at 9 42 09 PM