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
annotation(2), bar(2), customization, graphics, hist, log(2), plot annotation
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
09 Jul 2011 Luis  
24 Aug 2009 Rustam

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

:(

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

03 May 2007 Brian Hansen

Thank you for posting this useful code!

01 Feb 2007 Jason Alexander

This is a lifesaver!! Thanks so much.

17 Oct 2005 S Kellner

Great, thank you so much!

01 Sep 2005 Jan Schellekens

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

22 Sep 2004 Cyrille Berton

Beautiful ! That you very much.

27 Aug 2003 Shawna Thomas

This was exactly what I needed. Thanks!

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!

Updates
14 Oct 2009

BSD update

24 Nov 2009

add 2001 to copyright

Contact us