Bar chart with two y-axis and different scales

5 views (last 30 days)
Hi
I want to plot the data of a 3x4 matrix (three groups each containing 4 data) in a bar chart with two y-axis and different scales. Below is the chart I have made in Excel:
https://www.dropbox.com/s/jn45qasmr8zec8a/Photo%202013-06-24%201%2024%2005%20AM.png
My major problem is to define two y-axis for the bar chart with different scales (lower scale for small numbers and higher scale for large numbers).
Any help in this regard is really appreciated.

Answers (1)

dpb
dpb on 30 Jun 2013
ha=plotyy(X1,Y1,X2,Y2,@bar,@bar)
to tell plotyy to use bar chart for each axis w/ the data as given in the two sets of X,Y pairs
doc plotyy
for more details...

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!