COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### How to put vertical line in graph?

• Email
• Follow

I'm trying to put vertical dotted lines in a graph of a signal, to mark
the beginning and end of a window of the signal. Even solid light
colored lines would work fine. Is this possible? I have been completely
through the plot documentation and the graphics documentation with no
luck.

Thanks in advance for any help.


 0
Reply billjosephson (92) 12/2/2006 5:01:24 AM

See related articles to this posting

Something like that

function h = grinsvline(x)
% grinsvline(): insert vertical line in the current graph
h = line([x x], get(gca, 'YLim'), 'Color', [0 0 0]);

Kirill


 0
Reply kirillandreev (111) 12/2/2006 6:44:15 AM

BillJosephson wrote:
>
>
> I'm trying to put vertical dotted lines in a graph of a signal, to
> mark
> the beginning and end of a window of the signal. Even solid light
> colored lines would work fine. Is this possible? I have been
> completely
> through the plot documentation and the graphics documentation with
> no
> luck.
>
> Thanks in advance for any help.
>
>

Look here:

HTH,
John D'Errico

 0
Reply woodchips (7942) 12/2/2006 10:45:33 AM

2 Replies
30 Views

Similar Articles

12/11/2013 4:45:28 PM
[PageSpeed]

Similar Artilces:

How to add points like * to a plotyy graph or line graph?
I am kinda stuck here... below is my matlab code: figure hold on ax1 = gca; hl1 = line(x,y,'Color','b'); set(ax1,'XColor','b','YColor','b'); ax2 = axes('Position',get(ax1,'Position'),... 'XAxisLocation','top',... 'YAxisLocation','right',... 'Color','none',... 'XColor','k','YColor','k'); hl2 = line(x,z,'Color','k','Parent', ax...

vertical lines
Hello I have an OZ 730 organizer with vertical line from north to south on the screen. I open the organizer nizer to determine, I cann't see to figure out anything on the circuit. There are three capacitor I see and a resistor. could it be the cap or the resistor creating the distortion I see as a line on the screen? On 16 Mar 2005 11:57:24 -0800: > I have an OZ-730 organizer with vertical line > from north to south on the screen. Is it lined up with true north, or magnetic north? Either way, you could sell it on eBay as a compass :) This might be the place: http://group...

Display selected name on graph placing mouse on the graph line
I have list of parameter names in list box. I have option to select multiple parameters to display the graph in deferent colors. But i need to display the slected parameter names for y axis. Can i display parameter name when user places the mouse pointer on colored line in graph? if not what is the best way to display those names dynamically for y axis? x axis is always time. &nbsp; Thanks in advance, Ranjith Hi Ranjith, this thread shows how you can get the plot under the mouse <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;mes...

Line graphs in reports
Hello. My database has a number of sites in a table. I have a table that associates a monthly efficiency figure to each site. I would like to create a report with a page per site containing a line graph of the trend in monthly efficiency. I have a text box in the page header that contains the site index. I have created the query to give me month and efficiency figure that I use for the data. I have used the wizard to create the graph and I have edited the chart's datasheet and master and child fields. The most annoying thing is that I have ...

DRAW LINES IN GRAPH
Hi, I'm trying to add some features to one graph and I'm facing some problems. What I wanna do is the following: 1.- I have a scatter plot with several points and I want to add lines joining the points with the origin (Point 0,0). I used the function compass, but the arrows don't look very good, they are too big. Is there another way to do it? I just want lines from the origin point to the scatter points, I don't need arrows. 2.- I want to have the X axis and Y axis (X=O and Y=0) on, but I do not want to have all the grid displaying on the map. Notice that the axis correspondi...

Interrupting vertical line in tabular
I am trying to produce a table like the following ----- a | b c | d ----- except that the lines really meet. I used: \begin{tabular}{l|l} \cline{1-1} & \\ a & b \\ c & d \\ \cline{1-1} & \\ \end{tabular} The problem is that in the output the vertical line does not just meet the lower horizontal line; it extends one row below it. How can I make the vertical line end where it intersects the lower horizontal line? Thanks for any help, Frank On Jun 11, 11:18=A0pm, Frank <harre...@gmail.com> wrote: > I am trying to produce a table like ...

Quicktime dots and vertical lines
Playing small mpegs on my iMac, OS 9.1.5, I begin to see small black dots which gradually extend to full vertical lines, covering the entire screen but never fully obscuring the picture. I think once the dots were white, but mostly black now. I believe this is occuring in my movieplayer which is Quicktime. I've had QT 5 and now QT 6--the dots are showing up in both. Restarting in OS X and playing same mpegs I'm not seeing the dots, but sometimes it takes a couple of viewings before they show up in OS 9. And restarting in OS 9 frequently corrects the problem. For a while. So I'm n...

How to mark a point on a graph line
Good evening! The algorithm is my graph: x=[0.002; 1]; y=[985.29; 3.21]; plot(x,y) I would like to highlight the point where x = 0.046 and y = 49. I appreciate the help On 5/6/2013 5:12 PM, UFRN wrote: > Good evening! > > The algorithm is my graph: > > x=[0.002; 1]; > y=[985.29; 3.21]; > plot(x,y) > > I would like to highlight the point where x = 0.046 and y = 49. > > I appreciate the help > x=[0.002; 1]; y=[985.29; 3.21]; plot(x,y) hold on; plot(0.046,49,'ro') ...

how can I mark the name of each line in the graph?
I need to draw several interface's output rate in one line graph, is it possible to put the name of each interface beside each line? Since I have 60-70 interfaces for some nodes, it is a little confusing to distinguish which color represents which interface simply by using @legend at the end of the graph. In article <1123805533.310500.61620@f14g2000cwb.googlegroups.com>, <bev_greg@yahoo.com> wrote: > I need to draw several interface's output rate in one line graph, is it > possible to put the name of each interface beside each line? Since I > have 60-70 interfac...

How to draw a line graph using javascript
Hi all, I have one requirement.Is there any way to create a line graph using javascript.If it is please send me the sample code.But the thing is it should work in all browsers. Thanks, Srinivas srinivas wrote on 25 okt 2005 in comp.lang.javascript: > I have one requirement.Is there any way to create a line graph > using javascript.If it is please send me the sample code.But the thing > is it should work in all browsers. For IE and probably other browsers too: <http://groups.google.com/group/microsoft.public.scripting.jscript /msg/2eb29ecafa6105bf> -- Evertjan. ...

A problem with putting graphs/charts in a report
I'm working on a report. Within this report a chart (line chart) is build which shows how many suggestions have been made per servicegroupe. Now I have put such a chart into the report, but the layout just isn't what I want it to be. In the X and Y axes you can see some numbers 1 to 10. That isn't what I've been looking for. I'm looking for an X axe which shows the month which I would like to view. The Y axe must show the percentage of the suggestions made per servicegroupe. But everytime I make this chart over and over again, the same results came to me, and I just don'...

Line Graph Implementation in various browsers
Hi, Will any one suggest a way for implementing the line graphs in various browsers without compatability issues. I mean canvas can be used in Mozilla FireFox 1.5 for drawing objects but where as it is not supported in other browers like IE and Netscape. Similarly IE can use VML for drawing objects where as Netscape and Mozilla wont. With Regards Dinesh balakrishnan.dinesh@gmail.com wrote: > Will any one suggest a way for implementing the line graphs in > various browsers without compatability issues. > I mean canvas can be used in M...

draw vertical cylinder with no surface lines
For an illustration, I want to draw a closed cylindrical "can" -- a cylinder with its axis vertical -- along with arrows (with labels) indicating radius and height. The ways I've found, either using GraphicsShapesCylinder or ParametricPlot3D, insist on drawing curves on the vertical wall of the cylinder and, if I use ParametricPlot3D to draw the top, too, on the top. Is there some way to suppress these curves? Of course I still need the circles bounding the top and bottom to be drawn as well as two vertical lines that demarcate the wall of the cylinder from ...

Video / HW problem in laptop. Vertical lines
Hi all. First of all, excuse me for my poor English. I'm having troubles with my laptop. It's an Acer Aspire 1524. It comes with an integrated NVIDIA GeForce FX Go. The problem raised when I was browsing the net. The screen / mouse got freezed and I had to power it off by pressing the power button. Next, when it booted up, just when the laptop is begging to boot (before loading the operating system), the screen displayed several vertical lines as showed in this pics I took: http://www.geocities.com/garrapeta/borrame/1.JPG, http://www.geocities.com/garrapeta/borrame/2.JP...

How to plot two lines on same graph with different styles?
I'd like to plot one line full _____ and the other one dotted . . . . .. I read 'help plot' (honest) but couldn't work it out. I tried plot(x,[y1 y2],[- .]) but it plots both lines with both styles. "spasmous" <spasmous@yahoo.com> wrote in message news:2f066762.0405281234.503cc8a2@posting.google.com... > I'd like to plot one line full _____ and the other one dotted . . . . > . > > I read 'help plot' (honest) but couldn't work it out. I tried > plot(x,[y1 y2],[- .]) but it plots both lines with both styles. is this what you want?...

xslt (2.0) to create a line graph
Dear ALL, I'm searching a piece of XSLT (2.0 prefereable) which creates SVG line graphs. BUT, just polylines are not sufficient. I need smoth curves, means probably bezier curves are the solution. Is there some code available ? Thanks a lot RolfK ...

Can grid lines on a XY Graph be made dashes from solid
I'm using the SPC toolset. When the control limits are plotted (in red) if the control limit is placed over a grid line, the color of the control limit changes becoming much less visible. If I can make the grid lines dashed, at least a portion of the control limits will remain red for visibility. I can find no way to change the grid lines other than color. Hello, There is no method for modifying the line type of the grids behind the XY Graph. I would recommend making the control limit lines dashed in a different color than the grid lines, and in fact avoiding the grid line color alto...

Edit Node in PSP 7 -- how to make vertical line segment within vector
I have a closed vector that is curved and irregular, so most of its nodes are of type Asymmetric. Node A is just where I want it. I want to have, as part of the vector, a straight-line vertical segment running down from Node A and ending at Node B, which means I have to move Node B to directly underneath Node A. Currently, both Node A and Node B are, as I said before, of type Asymmetric. Also, the curve that goes up and to the right from Node A, I want to remain unchanged. So how do I move B so that it has the same x-value as A, and how do I get the to-A direction arrow on Node B to point str...

LINDA WEST (925)876-7441 Lwest@chipmancorp.com of CHIPMAN UNITED VAN LINES likes to commit Fraud & Forgery and she likes to put peoples names on moving contracts without there Knowledge. Caton Mayflo
LINDA WEST (925)876-7441 Lwest@chipmancorp.com of CHIPMAN UNITED VAN LINES likes to commit Fraud & Forgery and she likes to put peoples names on moving contracts without there Knowledge. Caton Mayflower Moving & Storage Movers & Relocation Dublin,ca & concord,ca 925) 876-7441, 925-887-5515, 925-825-5000, (925) 876-7441, 800-825-3866,800-447-9771, 925-609-1800, 800-447-1771, 925-935-4073, 925-828-3985 Linda West United Van Lines CHIPMAN RELOCATIONS Voice Mail: 925/887-5515, 800/447-9771,Fax: 925/687-8304 5060 Forni Dr, Ste. C Concord,Cs 94520 Lwest@chipmancorp.com ...

Read a file line by line with a maximum number of characters per line
Hello, I want to read a file line by line. I first used the readLine() method which returns a string, but if the line contains too much characters I'm ending with an OutOfMemory exception. I could use the read(buffer[], maxChars) method, but this method does not take in account the end of the line. So my buffer could contain more than a single line. I would like to use benefit of both methods, meaning using a method which return a string representing a file's line (like readLine()), but with a maximum characters per line (like read(buffer[], maxChars)). I tried to read the file char...