Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Inverting a bar chart
Date: Wed, 28 Oct 2009 13:20:16 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <hca2ao$60l$1@news.eternal-september.org>
References: <hca1r7$ove$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX18ilzcYf2wB7BqF4APm+pIE21ZKwkvH0xfD4K6keXbfhLlDVkrKimAsZ9I7ptY1bSucDzyx38gVhVr29udD6A2UkzICcoyCY0PUCGbtrEDPAc+N+gkxDcjWppZ2uM5D3Kk=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Wed, 28 Oct 2009 18:25:29 +0000 (UTC)
In-Reply-To: <hca1r7$ove$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX1+lNQ+P2j//25acYKWb9kzkpkj6/UeeJOE=
Cancel-Lock: sha1:ab7JwRyoj6RC4Qj/JiRfLPJfijk=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Xref: news.mathworks.com comp.soft-sys.matlab:580715


Ryan Utz wrote:
> 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).


Not sure about being able to orient that way except as you did but you 
can always work around the negative y-axis labels by writing them 
explicitly as text.

--