Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*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 smc.vnet.net
  • Subject: [mg75985] Re: graphics
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Mon, 14 May 2007 03:48:06 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f23p7m$nfn$1@smc.vnet.net>

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 
InputForm@halfspa.

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