Plot vertical lines on plots
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?
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?
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:
> fts1=fints(cellstrDatesDaily, dMyTimeSeries);
> But how can I add a vertical line to the plot, and label it with a
> date(not a date number)?
> Thanks a lot!
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.
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.
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);
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...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?
> 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...plotting vertical lines
Maybe someone can help me.
I have a signal that i divide it by frames (have a matrix of frames) - now I want to plot the entire signal but at the limit of each frame I want to insert a vertical line, that will show the frames limits.
How could I insert those vertical lines in my plot?
I've used the stem() function. I think you could also use the line()
function. Just supply the endpoints of the line.
I don't understant how I can plot the line between the frames, with the function 'line'.
In my code I have a matrix of 56x441, which eac...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
set arrow from x, y1 to x, y2 nohead
Hans-Bernhard Broeker (firstname.lastname@example.org)
Even if all the snow were burnt, ashes would remain.
On 2004-12-02, Hans-Bernhard Broeker <email@example.com> wrote:
> In several ways, i...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...plot a vertical line
Is there an easier way to plot a vertical line? I have:
x = zeros(100,1)
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?
plot([0 0 NaN 1 1],[-1 1 NaN -1 1]);
axis([-1 2 -2 2]);
Does that help?
> Is there an easier way to plot a vertical lin...Vertical Lines on plots?
Is there any way to specify the location of a vertical line on a
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
> 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.
Alternately, you could use the YLIM function and ...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
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
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?
...how to plot a vertical line
how can I plot a vertical line? for example x=5, starting from y=0 to
> how can I plot a vertical line? for example x=5, starting from y=0 to
Any line segment, vertical or otherwise, can be plotted by giving its
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!
while these methods are working alone, they seem do not work in my
plots[odeplot](solution,[[t, 100 * s(t), line...plotting vertical lines
Hello! I'm having a weird issue with the colors and thicknesses of vertical=
lines plotted using the very simple routine VLINE, written by John Johnson=
and found here: http://astro.berkeley.edu/~johnjohn/idlprocs/vline.pro.
I'm trying to use this routine to easily overplot markers for wavelengths o=
f certain spectral lines over a spectra and into a .ps output file. It work=
s, however, some of the lines appear grey and of greater thickness, with th=
e exception of the bluest (left most) line. That one looks correct, thinner=
and black, despite it NOT being plotted first.=...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?
> 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
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...Adding a vertical line to a plot
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?
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.
one of the many solutions
> hello all,
> I have a matrix x which is [2,4,6,7], how can i plot 4 vertical
> x=2,x=4,x=6 and x=7?
> Any idea? please help.
> Thank you!
Take...how to plot a vertical line #2
how can I plot a vertical line? for example x=5, starting from y=0 to
...Plot vertical line over a graph
How can I plot a vertical line over a wave chart when I click over the
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...Creating a plot with line plot and scatter plot in the same figure
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 " <firstname.lastname@example.org> wrote in message
> Perhaps it involves using the "hold on" command?
...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
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
...add a vertical and horizontal line to a plot
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.
On 6/8/2013 6:17 AM, Yan wrote:
> 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.
>> for i=1:36,h(i)=subplot(6,6,i);end
>> ha = axes('Position',[0 0 1 1],'Visible...How to can i add a line from xy points (plot new line) in a contour plot?
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
> I have the following problem. I used the contourf function in order
> 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
This seem...Bode Plot, black vertical line?
Why is my discrete-data bode plot being cut off with a vertical black line?
It cuts off at 0.5 Hz, whereas my signals contain up to 100 Hz.
t = (0 : 1e-4 : 50)';
uc = chirp(t,0.1,t(end), 100);
yc = uc;
yc = circshift(yc, 100); %phase shift output
TF= etfe([yc, uc]);