**Plot vertical lines on plots**Hi all,
I wish to plot vertical lines at specific points so that they stand out.
My plot call is as follows:
plot( X, zeros(size(X)),'o', x, y, m, zeros(size(m)),'*'), axis tight;
where x,y etc are my data and 'm' is what is computed. Is there a nice way that I can simply just plot vertical lines at the 'm' data points?
Many thanks
Use ylim to get the maximum extent in the y direction, and then use
the line() function.
...

**How do I plot a vertical line and label it on time series plot?**figure;
fts1=fints(cellstrDatesDaily, dMyTimeSeries);
h=plot(fts1);
But how can I add a vertical line to the plot, and label it with a
date(not a date number)?
Thanks a lot!
Luna Moon wrote:
> figure;
>
> fts1=fints(cellstrDatesDaily, dMyTimeSeries);
>
> h=plot(fts1);
>
> But how can I add a vertical line to the plot, and label it with a
> date(not a date number)?
>
> Thanks a lot!
doc line
doc datestr
doc text
--
On Feb 16, 8:29=A0pm, dpb <n...@non.net> wrote:
> Luna Moon wrote:
> > figure;
>
> > fts1=3Dfints(cellstrDatesDaily,...

**Plot a series of lines on another plot, holding only the current line on top of the other plot.**Hi
I'm trying to plot a series of lines within a loop on another plot, so that only the current loops line shows up on the old plot, whilst holding the old plot as it is.
for i=1:endpoint
for j=1:endtime
plot3([0 XL1(i,j)],[0 YL1(i,j)],[0 ZL1(i,j)],'LineWidth',2);
plot3([XL1(i,j) XL1(i,j)+XL2(i,j)],[YL1(i,j) YL1(i,j)+YL2(i,j)],[ZL1(i,j) ZL1(i,j)+ZL2(i,j)],'LineWidth',2);
pause(0.1)
end
end
thats the plot i want added to the old figure, but if i add 'hold off', it removes the previous plot.
How do i fix this?
On 4/11/2013 10:35 AM, Daniel wrote:
&g...

**plot a vertical line**Is there an easier way to plot a vertical line? I have:
x = zeros(100,1)
x(:,1)=5
y=1:100;
y=y'
plot(x,y)
There's gotta be a better way... this is limited to the length of x.
Basically, I have some time-based data plotted, and I want to place
several vertical lines at various time points to indicate significant
events in the main data curve.
Maybe this can be done in plot/graph options? A custom grid of some sort?
Thanks,
-Kieran
Try,
figure;
plot([0 0 NaN 1 1],[-1 1 NaN -1 1]);
axis([-1 2 -2 2]);
Does that help?
KC wrote:
> Is there an easier way to plot a vertical lin...

**vertical lines in plot**In plotting the inverse image of the unit circle under the function B
below, I get all kinds of vertical lines. They are obviously jump
discontinuities, very likely caused by choices of branch cuts. I there any
way of getting rid of the vertical lines without redefining the brunch
cuts? I looked at the value of different solutions in sol4 close to a
point of discontinuity and it looks like the order of the solutions is
switched when t gets to that point. I am not sure if this is just a
coincidence. I also tried ExclusionsStyle->Red but there don't seem to be
any exclusio...

**Vertical Lines on plots?**Is there any way to specify the location of a vertical line on a
plot.
In other words I am trying to denote a specific time on the plot and
I would like to place a vertical line at that exact position.
James Croxton wrote:
> Is there any way to specify the location of a vertical line on a
> plot.
>
> In other words I am trying to denote a specific time on the plot and
> I would like to place a vertical line at that exact position.
Search the MATLAB Central File Exchange for VLINE.
http://www.mathworks.com/matlabcentral/
Alternately, you could use the YLIM function and ...

**Vertical Line on a Plot**Id like to add a vertical line showing the max of a graph (which is
not hard), but under that line, ON THE X AXIS, id like a number
showing the x value of that vertical line, who's position varies
depending on the graph. Is there anyway to create that number that
stays directly underneath the line, easily readible to the user
without making a stationary text box somewhere else on the graph?
Thanks!
The_A_Man wrote:
>
>
> Id like to add a vertical line showing the max of a graph (which is
> not hard), but under that line, ON THE X AXIS, id like a number
> showing the x value...

**plot vertical line**how will we plot a sigle or multiple lines in XY grph btwn two plot already aquired . I hv tried thru inserting a 3rd array and then choosing bar plot lines option ,with this i hv tried fill to baseline optin .
fill to bsln option work ok when it is selected as zero, inft,or -inft , but as soon as we choose a polt a fill replaces the lines
23.JPG:
http://forums.ni.com/attachments/ni/170/330719/1/23.JPG
Did you try a search? <a href="http://forums.ni.com/ni/board/message?board.id=170&thread.id=78899&view=by_date_ascending&page=1" targ...

**how to plot vertical lines**Hello,
I'd like to represent temperature measurement data of the last sun
eclipse. It is a graph with a temperature curve, where I'd like to put
in vertical lines at the times of the so called "first contact" (when
the moon disk begins to cover the sun), "second contact" (when the moon
is fully in), "third contact" (when the moon is getting out) and "fourth
contact" (when the moons' disk leaves the sun).
My data plotted fine, but I do not know how to plot the vertical lines.
Do you have any idea?
Best,
Bernhard
...

**plot vertical line**how could i plot a single vertical line connecting points
(x,y1) and (x,y2)? Thanx
ndros <ndros@no_more_spam.gr> wrote:
> how could i plot a single vertical line connecting points
> (x,y1) and (x,y2)? Thanx
In several ways, including
plot '-' w l
x y1
x y2
E
and
set arrow from x, y1 to x, y2 nohead
plot (something)
--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
On 2004-12-02, Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de> wrote:
>
> In several ways, i...

**how to plot a vertical line**hi, all,
how can I plot a vertical line? for example x=5, starting from y=0 to
y=10.
thanks!
workhardnorest wrote:
> how can I plot a vertical line? for example x=5, starting from y=0 to
> y=10.
Any line segment, vertical or otherwise, can be plotted by giving its
endpoints:
plot([[5,0], [5,10]], view= [3..7, -1..11]);
To be more mathematical, you can use a parameterization:
plot([5, t, t= 0..10]);
thanks a lot!
thanks a lot!
thanks!
while these methods are working alone, they seem do not work in my
problem:
plots[odeplot](solution,[[t, 100 * s(t), line...

**Plot different line marker for several lines in plot**I have figured out how to plot a 2D matrix of values and have the x-axis be a text string label. But now, I would like to plot several lines on a single plot and have each line use a different marker, automatically. I would also like a legend labeling those markers.
I don't really understand how to do this.
For instance, here is the data I would like to plot:
Subject1 = [64 81 76 63 24 76;
39 95 95 295 22 313;
41 83 91 100 110 95;
77 99 90 136 189 172;
95 101 89 101 101 143;
25 25 27 93...

**Add a Vertical Line to a Plot**How can I add a vertical line to a certain time index value within a
plot? Say, at time.hour=6?
Solargus writes:
> How can I add a vertical line to a certain time index value within a
> plot? Say, at time.hour=6?
PlotS, [time.hour, time.hour], !Y.CRange
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
On Jul 22, 9:11=A0am, David Fanning <n...@dfanning.com> wrote:
> Solargus writes:
> > How c...

**Plot vertical line over a graph**How can I plot a vertical line over a wave chart when I click over the
graph?
Thanks in advance!
Look again in my post. I also asked for your LabVIEW version.
This is important, because newer LabVIEW versions have much better tools to do things like that and the answer will strongly depend on the version. ;)
On Apr 18, 3:10 pm, altenbach <x...@no.email> wrote:
> Look again in my post. I also asked for your LabVIEW version.
> This is important, because newer LabVIEW versions have much better tools to do things like that and the answer will strongly depend on th...

**Adding a vertical line to a plot**Hello all,
I have a normal 2d plot with a certain function on it, showing the
frequencies in a wave (your normal Fourier transformation graph). I am
going to indicate the max y-value along the plot, to pinpoint the
strongest frequency. Ideally, a red vertical line intersecting that
max point would be great, and thats not hard to do. Heres my problem:
what I would like, is for the x value associated with that line to be
displayed right below it on the x axis in red, so that it matches and
is easy to see. How can I get a single string of text showing the
x-value of the line onto (or near) the x...

**how can i plot vertical line?**hello all,
I have a matrix x which is [2,4,6,7], how can i plot 4 vertical line
x=2,x=4,x=6 and x=7?
Any idea? please help.
Thank you!
andy:
<SNIP grid-lines...
one of the many solutions
x=[2,4,6,7];
plot(rand(10,3),'s-');
ylim=get(gca,'ylim');
line([x;x],ylim.',...
'linewidth',2,...
'color',[0,0,0]);
us
andy wrote:
>
>
> hello all,
>
> I have a matrix x which is [2,4,6,7], how can i plot 4 vertical
> line
> x=2,x=4,x=6 and x=7?
>
> Any idea? please help.
>
> Thank you!
Take...

**how to plot a vertical line #2**hi, all,
how can I plot a vertical line? for example x=5, starting from y=0 to
y=10.
thanks!
...

**Creating a plot with line plot and scatter plot in the same figure**Hello,
I am looking to plot a line plot of a function (say, x^2)
and a scatter plot of various data points on the same
figure. Is there a way to do this?
Perhaps it involves using the "hold on" command?
Thanks so much for your time!
Andrew
"Andrew " <rearwindow1954@yahoo.com> wrote in message
<g6d0vs$kfq$1@fred.mathworks.com>...
>
> Perhaps it involves using the "hold on" command?
>
Likely yes.
Bruno
...

**How create vertical line using Plot?**How can I create a vertical line using the Plot command?
I can hack it using "y" = very big number times "x" but is there a
more elegant way to do it?
On Oct 24, 2:46 am, davef <davidfrick2...@yahoo.com> wrote:
> How can I create a vertical line using the Plot command?
>
> I can hack it using "y" = very big number times "x" but is there a
> more elegant way to do it?
The best ways to plot vertical lines on your plots don't involve
functions of "x", or the Plot command; for example, we can use the
Epilog co...

**How to plot a vertical line on XY Graph**I am trying to plot a vertical line on a XY Graph containing several
unevenly sampled plots. I don't want to use a cursor. Has anyone run
into this situation? Is there any way to do it using just one point
(X)?
Thanks
Sure. On the plot that you want to have the vertical line, right click
the plot legend and select Bar Plots (pick the style you want) and
then Fill Base Line (pick the fill style).
Thanks but I need to have a line from top to bottom
That might work, thank you very much
...

**Eliminating vertical lines in piecewise plot**Hi All,
I am plotting a piecewise function. Mathematica is joining the step
points with vertical lines. How can I get rid of these vertical lines
which makes my plot ugly. I tried Exclusions option but did not help.
To be more specific I have the following plot:
Plot[Piecewise[{{1,
First[Max[EBProfit1server1years1per, EBProfit2server1years1per] -
CONProfit1per] > 0}}, 0], {x, 0,
2}, PlotStyle -> {{Black, Thickness[0.004]}},
AxesStyle -> Directive[Thick, 24, Bold], AxesOrigin -> {0, 0},
PlotPoints -> 10000, MaxRecursion -> 15, AspectRatio -> Automati...

**How to can i add a line from xy points (plot new line) in a contour plot?**Hi!
I have the following problem. I used the contourf function in order to
do the contour plot of some data. I have also some other xy points.
How can i plot them as a line in the same contour plot.
i hope somebody will help me
sincerely
achille
achille wrote:
>
>
> Hi!
> I have the following problem. I used the contourf function in order
> to
> do the contour plot of some data. I have also some other xy points.
> How can i plot them as a line in the same contour plot.
> i hope somebody will help me
> sincerely
> achille
>
>
hold on;
plot(x,y);
This seem...

**add a vertical and horizontal line to a plot**Hi,
I have a figure with 36 subplots (6 by 6), and I would like to divide the 36 subplot into four quardrants visually by adding a horizontal and vertical line.
Your magic trick is greatly appreciated.
Y
On 6/8/2013 6:17 AM, Yan wrote:
> Hi,
> I have a figure with 36 subplots (6 by 6), and I would like to divide
> the 36 subplot into four quardrants visually by adding a horizontal and
> vertical line.
> Your magic trick is greatly appreciated.
>
> Y
>> for i=1:36,h(i)=subplot(6,6,i);end
>> ha = axes('Position',[0 0 1 1],'Visible...