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: Plots with vertical x axes - comp.soft-sys.matlabHi 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... Plot vertical lines on plots - comp.soft-sys.matlabMultiple line plots, two y axes - comp.soft-sys.matlab Plot vertical lines on plots - comp.soft-sys.matlab Plots with vertical x axes - comp.soft-sys.matlab Multiple line ... Vertical x-tick labels on bar charts - comp.soft-sys.matlab ...Removing Tick in the polar plots - comp.soft-sys.matlab Plots with vertical x axes - comp.soft-sys.matlab How do I plot y against x with the y axis horizontal and ... errorbars in both axes?? - comp.soft-sys.matlabPlots with vertical x axes - comp.soft-sys.matlab errorbars in both axes?? - comp.soft-sys.matlab Plots with vertical x axes - comp.soft-sys.matlab errorbars in both axes ... ListPlot with two horizontal axes - comp.soft-sys.math.mathematica ...Multiple line plots, two y axes - comp.soft-sys.matlab ListPlot with two horizontal axes - comp.soft-sys.math.mathematica ... Plots with vertical x axes - comp.soft-sys ... Multiple line plots, two y axes - comp.soft-sys.matlabPlot vertical lines on plots - comp.soft-sys.matlab... vertical ... with same response but different ... Multiple line plots, two y axes - comp.soft-sys.matlab... exp(-0.5*x ... plotting coordinate axes in 3d plot - comp.soft-sys.matlab ...hi All I am wondering if there is an efficient way to plot a coordinate axes (x,y, z ... Plot vertical lines on plots - comp.soft-sys.matlab plotting coordinate axes in ... Plotting a graph with one X-axis and two Y-axes - comp.soft-sys ...Plots with vertical x axes - comp.soft-sys.matlab... with vertical x axes - comp.soft-sys.matlab How do I plot y against x with the y axis ... Produces one or more plots ... plot scroll bars, x-axis spacing - comp.soft-sys.matlabHow to draw a vertical line at the peak of a graph - comp.soft-sys ... plot scroll bars, x-axis spacing - comp.soft-sys.matlab Plots with vertical x axes - comp.soft-sys ... errorbar on x and y axis - comp.soft-sys.matlabPlots with vertical x axes - comp.soft-sys.matlab errorbar on x and y axis - comp.soft-sys.matlab Plots with vertical x axes - comp.soft-sys.matlab How do I plot y against ... Axis scaling and appearance - MATLABThis MATLAB function sets the limits for the x- and y-axis ... The y-axis is vertical with values increasing from bottom to ... x = 0:.01:pi/2; plot(x,tan(x),'-ro') use the ... Plots with vertical x axes - comp.soft-sys.matlab | Computer GroupHi 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... 7/22/2012 10:41:09 AM
|