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 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 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
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 a cal...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...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?