| Author |
Comment/Response |
Ben Langton
|
11/10/99 12:13pm
>>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
>
Better still, just use the ImplicitPlot command :
<< Graphics`ImplicitPlot`
ImplicitPlot[x==4,{x,0,5},{y,0,5}]
Ben Langton, QuickMath
URL: , |
|