plotly / plotly_matlab

Plotly Graphing Library for MATLAB®
https://plot.ly/matlab/
MIT License
376 stars 165 forks source link

fix issue #445 #465

Closed gilbertogalvis closed 2 years ago

gilbertogalvis commented 2 years ago

This PR fix the issues in issue #445 posted

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