Student Support Forum: 'Graph of x==n' topicStudent Support Forum > General > "Graph of x==n"

 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic
 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: ,

 Subject (listing for 'Graph of x==n') Author Date Posted Graph of x==n Paolo Pignat... 10/22/99 2:39pm Re: Graph of x==n Forum Modera... 10/28/99 10:18am Re: Graph of x==n Ben Langton 11/10/99 12:13pm
 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic