Skip to main content
1-Visitor
February 16, 2011
Question

Vertical Line in X-Y-Diagramm

  • February 16, 2011
  • 4 replies
  • 16570 views

Good day everyone,

If I plot a very simple funktion, like f(x)=x, and I want to display vertikal lines in the plot, for example at X=4, how is it done? Horizontal lines are no problem using f(x)=4 🙂

Best Regards

4 replies

19-Tanzanite
February 16, 2011

There's more than one way, but this approach is the most versatile.

1-Visitor
February 16, 2011

Have a look below. There is another method using a pre-defined function - Lines which has been passed in the forum before. But if you only want a few lines this might be a simple solution.

Clipboard01.jpg

Mike

24-Ruby IV
February 16, 2011

We can point a point on the plot so too (a broken line arrow):

http://twt.mpei.ac.ru/ochkov/Mathcad_12/4_09_2D_Regress_n_11.png

1-Visitor
February 16, 2011

Nice example Valery,

Any chance of a worksheet?

Mike

http://communities.ptc.com/servlet/JiveServlet/showImage/2-149416-2532/bar_anim.gif

23-Emerald V
February 16, 2011

Simon Kohn wrote:

Good day everyone,

If I plot a very simple funktion, like f(x)=x, and I want to display vertikal lines in the plot, for example at X=4, how is it done? Horizontal lines are no problem using f(x)=4 🙂

Best Regards

In addition, you could use the built-in markers ... I've added an example of their use to Richard's worksheet.

Stuart

1-Visitor
February 16, 2011
In addition, you could use the built-in markers ... I've added an example of their use to Richard's worksheet.

These can be used but they are limited as they you can only have two markers per axis.

Mike

http://communities.ptc.com/servlet/JiveServlet/showImage/2-149416-2532/bar_anim.gif

12-Amethyst
February 17, 2011

Simon,

Just as a hoirzontal line is y(x)=3, a vertical line is x(y)=3; the dependent and indepentent axis can be interchanged, Mathcad don't care.

(as Stuart, I used Richard's example)

SimonKohn1-VisitorAuthor
1-Visitor
February 22, 2011

@ Wayne:

Extend the vertical axis until 1 000 000 and your method won't work 😞

12-Amethyst
February 22, 2011

Simon,

Sorry, I did not realized you were working with the US budget deficite. Try using units of 1one trillion dollars.