Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: graphics

  • To: mathgroup at
  • Subject: [mg75985] Re: graphics
  • From: Szabolcs <szhorvat at>
  • Date: Mon, 14 May 2007 03:48:06 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f23p7m$nfn$>

dimitris wrote:
> halfspa = Graphics[{Thickness[0.01], Circle[{0, 0}, 5, {Pi, 2*Pi}]}]; 

> In[258]:=
> gr2 = halfspa /. Line[x_] :> {GrayLevel[0.9], Polygon[x]};
> In[259]:=
> Show[halfspa, gr2];
> The half circle is not filled with gray color.
> Why?
> Can somebody point me out a workaround?

Because Circle is not a function that gives you a list of Lines. It is a 
graphics primitive that is translated directly to PostScript. Check 

Use Disk[] to get a filled circle.

  • Prev by Date: Re: v.6 RevolutionPlot3D
  • Next by Date: 2D Convolution
  • Previous by thread: Re: graphics
  • Next by thread: Coordinate conversion with Grad