Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to plot a parellal line

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72148] Re: How to plot a parellal line
  • From: "dimitris" <dimmechan at yahoo.com>
  • Date: Wed, 13 Dec 2006 06:40:37 -0500 (EST)
  • References: <elgma9$hak$1@smc.vnet.net>

One way is the follow:

myline = Line[{{5, -5}, {5, 5}}];

Show[Graphics[{AbsoluteThickness[2], myline}], Frame -> {True, True,
False, False}, PlotLabel -> "graph 1", FrameLabel -> {"x", "y"}, Axes
-> {True, False}, AxesStyle -> AbsoluteDashing[{2, 4}], PlotRange ->
{{0, 10}, {-6, 6}}];

One more advanced example

lstlines = (Line[{{#1, -5}, {#1, 5}}] & ) /@ Range[-10, 10];
Show[Graphics[{AbsoluteThickness[2], lstlines}], Frame -> {True, True,
False, False}, PlotLabel -> "graph 1",  FrameLabel -> {"x", "y"}, Axes
-> {True, False}, AxesStyle -> AbsoluteDashing[{2, 4}], PlotRange ->
{{-10, 10}, {-6, 6}},
   ImageSize -> {400, 300}];

Here is some useful links for Mathematica graphics

http://library.wolfram.com/infocenter/TechNotes/263/
http://library.wolfram.com/infocenter/Conferences/179/
http://library.wolfram.com/infocenter/Conferences/181/

The last two belong to Tom Wickham-Jones the author of the very good
book
Mathematica Graphics: Techniques & Applications
http://library.wolfram.com/infocenter/Books/3753/

But read carefully the relevant material from the Mathematica Book

http://documents.wolfram.com/mathematica/book/section-2.10

Also keep in touch with this forum with so many kind Mathematica
experts!

Regards
Dimitris

Swati Agrawal wrote:
> Dear Mathgroup,
>
> I am a new Mathematica user.  I can't find a way to graph a
> line parallel to the y or something like x-5=0.
>
> Any help would be appreciated.
>
> Jyoti.
>
>
>
>
> ____________________________________________________________________________________
> Want to start your own business?
> Learn how on Yahoo! Small Business.
> http://smallbusiness.yahoo.com/r-index


  • Prev by Date: Re: interpolation of a matrix function
  • Next by Date: Re: solve ODE help?
  • Previous by thread: Re: How to plot a parellal line
  • Next by thread: Sin[30*Degree] vs Sin[29*Degree]