Hi, 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? Thanx

0 |

1/7/2010 10:04:04 PM

I've used the stem() function. I think you could also use the line() function. Just supply the endpoints of the line.

0 |

1/7/2010 11:20:59 PM

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. ...

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,...

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...

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...

Hi, 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? Thanx I've used the stem() function. I think you could also use the line() function. Just supply the endpoints of the line. Hi ImageAnalyst, 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...

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...

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...

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...

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 ...

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...

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 ...

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...

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.=...

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...

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...

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...

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...

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

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...

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 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...

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 ...

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...

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...

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]); bode(TF); ...