Path: news.mathworks.com!not-for-mail
From: "Ryan Utz" <rutz@al.umces.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Inverting a bar chart
Date: Wed, 28 Oct 2009 18:17:11 +0000 (UTC)
Organization: University of Maryland
Lines: 6
Message-ID: <hca1r7$ove$1@fred.mathworks.com>
Reply-To: "Ryan Utz" <rutz@al.umces.edu>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256753831 25582 172.30.248.38 (28 Oct 2009 18:17:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 28 Oct 2009 18:17:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1502608
Xref: news.mathworks.com comp.soft-sys.matlab:580710


Hello all,

I need to make a simple (i.e. bar(x,y)) bar chart where the y-axis is inverted, in other words, bars go down instead of up (though the values are positive), so that the graph looks like columns hanging from the ceiling. Is there any way to tell Matlab to do this? Multiplying all of my y-axis values by -1 does the trick but then the y-axis is incorrectly labeled (i.e. with negative values). 

Thanks for any/all help,
Ryan