Be the first to rate this file! 13 Downloads (last 30 days) File Size: 2.23 KB File ID: #10839
image thumbnail

BarTwoYaxis

by Shai Shen-Orr

 

23 Apr 2006 (Updated 24 Apr 2006)

Plots a bar graph with 2 y axes including errorbars

| Watch this File

File Information
Description

plots a 2 axis bar plot by normalizing values to be from 0 to 1 on both data sets, plotting them as one grouped bargraph, adding 2nd y-axis and then modfying y axis ticks. bar1 & bar2 are column vectors.

If errors is not empty (Expected 2 row vector same size as numbars) than plot errorbars using errorbar function. Idea based on Bolu Ajiboye barweb code (though implemented differently)

Use:
figHandle = BarTwoYaxis(bar1,bar2,[],[],'','','',[])

Will plot a 2 Y axis grouped bar with the bar1 series using the left y axis and the bar2 series using the right one.

Type help BarTwoYaxis to see fuller argument list.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
barweb (BARgraph With Error Bars)

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Shai Shen-Orr 22 Oct 2008 08:22:58
plotting Shai Shen-Orr 22 Oct 2008 08:22:58
multiple Cristina McIntire 05 Feb 2009 14:43:06
bar graph Cristina McIntire 05 Feb 2009 14:43:06
y axis Cristina McIntire 05 Feb 2009 14:43:06
errorbars Cristina McIntire 05 Feb 2009 14:43:06
bar graph Irene 16 May 2011 10:03:11
errorbars Irene 16 May 2011 10:03:16
multiple Irene 16 May 2011 10:03:18
plotting Irene 16 May 2011 10:03:20
specialized Irene 16 May 2011 10:03:21
y axis Irene 16 May 2011 10:03:22
bar graph Eduard 06 Mar 2012 11:02:48

Contact us at files@mathworks.com