Code covered by the BSD License  

Highlights from
Update Bar Plot Base

5.0

5.0 | 8 ratings Rate this file 19 Downloads (last 30 days) File Size: 1.45 KB File ID: #1200
image thumbnail

Update Bar Plot Base

by Ben Hinkle

 

21 Dec 2001 (Updated 14 Oct 2009)

Move a barplot's base value.

| Watch this File

File Information
Description

An M-file to move the base value for bar and hist plots from 0 to any value. Especially useful for log-scale bar plots.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
08 Jul 2003 Scott Stanley

This beautifully compact bit of code solves a problem that has been driving me crazy for days now. Thank you Ben!

27 Aug 2003 Shawna Thomas

This was exactly what I needed. Thanks!

22 Sep 2004 Cyrille Berton

Beautiful ! That you very much.

01 Sep 2005 Jan Schellekens

Perfect, I have been looking for hours to get this done!! Keep up the good work.

17 Oct 2005 S Kellner

Great, thank you so much!

01 Feb 2007 Jason Alexander

This is a lifesaver!! Thanks so much.

03 May 2007 Brian Hansen

Thank you for posting this useful code!

23 Feb 2008 Salem Ben

You can do that in one line:
set(get(h,'BaseLine'),'BaseValue',Value)
With:
h=handle of plot(bar, stem...etc)
Value= I put 1 just to avoid negative log values

24 Aug 2009 Rustam

Invalid axes property: 'BaseValue'.
Invalid axes property: 'BaseLine'.

:(

09 Jul 2011 Luis  
Please login to add a comment or rating.
Updates
14 Oct 2009

BSD update

24 Nov 2009

add 2001 to copyright

Tag Activity for this File
Tag Applied By Date/Time
annotation Ben Hinkle 22 Oct 2008 06:40:00
customization Ben Hinkle 22 Oct 2008 06:40:00
bar Ben Hinkle 22 Oct 2008 06:40:00
hist Ben Hinkle 22 Oct 2008 06:40:00
plot annotation Ben Hinkle 22 Oct 2008 06:40:00
graphics Ben Hinkle 22 Oct 2008 06:40:00
log Ben Hinkle 22 Oct 2008 06:40:00
log Nicolas 16 May 2012 17:33:32

Contact us at files@mathworks.com