COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Plots with vertical x axes

• Email
• 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

See related articles to this posting

```"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

```"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