You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen, the spacing between the values corresponding to 2000, 1990 and 1980 are more separated in MATLAB's plot, but not in the generated plot. It should be a bigger gap space between years.
By changing the following defaults, it works perfectly fine with me.
Code that I have used
x = [1980 1990 2000];
y = [40 50 63 52; 42 55 50 48; 30 20 44 40];
barh(x,y)
xlabel('Snowfall')
ylabel('Year')
legend({'Springfield','Fairview','Bristol','Jamesville'})
When plotting multiple series, the spacing between them isn't the same as MATLAB's and becomes harder to read and understand the graph.
Expected and generated (https://chart-studio.plotly.com/~xarico10/565/#/) plots:


As seen, the spacing between the values corresponding to 2000, 1990 and 1980 are more separated in MATLAB's plot, but not in the generated plot. It should be a bigger gap space between years.
Examples on plotting multiple series can be found on:
https://www.mathworks.com/help/matlab/ref/barh.html#d123e71912
The text was updated successfully, but these errors were encountered: