Hi all,
I need to plot data in a bar plot with two Y axis. Morevover the bar must be grouped, like in the following picture:
I have tried the following code but the result is far to be fine.
figurea=rand(10,1)*100;b=rand(10,1)*5;[AX,H1,H2] =plotyy([1:10],a, [1:10]-0.5,b, 'bar', 'bar');set(H1,'FaceColor','r')
the problems are:
- Item one: There are two overlapped x-axis, but I need only one.
- Item two: the bars are not each next to the other,
Thank you
best regards
Best Answer