MathGroup Archive 1999

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

Search the Archive

Re: How to plot more curves on one graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18160] Re: How to plot more curves on one graph
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sat, 19 Jun 1999 23:54:26 -0400
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <7kcjaj$lq4@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

May I gently suggest you read the Mathematica Book?  Then doing such a
thing will be VERY easy.

Meanwhile, here's an example of a (fat) point, a line segment, and a
(red) circle all on one graph.  Note the AspectRatio option to ensure
that a true 1:1 ratio of horizontal to vertical scales is used.

pt = Point[{2, 1}];
segment = Line[{{-4, 2}, {-1, 3}}];
oh = Circle[{2, 3}, 4];

Show[Graphics[{PointSize[0.02], pt, segment, RGBColor[1, 0, 0], oh}], 
    AspectRatio -> Automatic];

Of course, you don't have to name the objects with separate definitions,
but can put everything directly into the Graphics object, as in:

Show[Graphics[{PointSize[0.02], Point[{2, 1}], Line[{{-4, 2}, {-1, 3}}],
RGBColor[1, 0, 0], Circle[{2, 3}, 4]}], 
    AspectRatio -> Automatic];


Uros Filipic wrote:
> 
> I'm new at Mathematica and I would be very glad, if someone coud help me.
> 1. How to plot Circles, Lines . . .
>     For example I would like to plot circle : Circele([2,3],4)
> 2. How to plot, for example circle, line and point on the same graph ?


-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.       phone 413 549-1020 (H)
Univ. of Massachusetts                     413 545-2859 (W)
Amherst, MA 01003-4515


  • Prev by Date: Re: Dealing with submatrices
  • Next by Date: Re: V4.0 -- screen graphics update problems
  • Previous by thread: Re: How to plot more curves on one graph
  • Next by thread: Folding lists