Plots with vertical x axes

  • Follow


Hi All,

Sorry, this might be a silly question?  How do I plot y against x with the y axis horizontal and the x axis vertical?  That is, for bar(x,y) there is barh(x,y).  Is there an equivalent of barh(x,y) for plot(x,y)?

Thanks very much,

David
0
Reply David 1/19/2011 6:12:05 PM

"David" wrote in message <ih79hl$mgu$1@fred.mathworks.com>...
> Hi All,
> 
> Sorry, this might be a silly question?  How do I plot y against x with the y axis horizontal and the x axis vertical?  That is, for bar(x,y) there is barh(x,y).  Is there an equivalent of barh(x,y) for plot(x,y)?
> 
> Thanks very much,
> 
> David

plot(y,x)
0
Reply Paulo 1/19/2011 6:20:22 PM


"Paulo Silva" <paulojmdsilva@gmail.com> wrote in message <ih7a16$o7n$1@fred.mathworks.com>...
> "David" wrote in message <ih79hl$mgu$1@fred.mathworks.com>...
> > Hi All,
> > 
> > Sorry, this might be a silly question?  How do I plot y against x with the y axis horizontal and the x axis vertical?  That is, for bar(x,y) there is barh(x,y).  Is there an equivalent of barh(x,y) for plot(x,y)?
> > 
> > Thanks very much,
> > 
> > David
> 
> plot(y,x)

Thanks Paulo!

Of course!  Sorry, I'm being stupid!  Thanks for your help!

All the Best,

David
0
Reply David 1/19/2011 6:35:05 PM

2 Replies
372 Views

(page loaded in 0.265 seconds)

Similiar Articles:













7/22/2012 10:41:09 AM


Reply: