| Author |
Comment/Response |
Forum Moderator
email me
 |
10/28/99 10:18am
>How does one get Mathematica to graph x=4, for example. I can easily get y=4 by > Plot[4, {x, 0, 10}, AxesLabel -> {''x'', ''y''}],
>but how about the vertical line at x=4 (x==4)?
>
>I'm sure it's pretty easy, but I just can't see it.
>Just starting off with Mathematica, I was trying to build a rectangle with sides y==3, y==5, x==7, x==11.
======
Since x = 4 is not a function, Plot can not be used. You could draw a rectangle using Line primitives, e.g.
Show[Graphics[Line[{{7,3},{7,5}, {11,5},{11,3}, {7,3}}]], Axes->True]
Tom Zeller
Forum Moderator
URL: , |
|