From: John H. <jdh...@ac...> - 2004-12-28 13:25:30
|
>>>>> "Jeff" == Jeff Whitaker <js...@fa...> writes: Jeff> How do I suppress drawing a line around the polygon when Jeff> using fill? I've tried fill(x,y,'gray',linewidth=0), but I Jeff> still get a little tiny line (which is especially noticeable Jeff> when using the postscript backend). Just make the facecolor and edgecolor the same >>> fill(x,y, edgecolor='gray', facecolor='gray) or whatever color you want them to be. You can also use aliases >>> fill(x,y, ec='gray', fc='gray) FYI, the new set/get introspection is designed to help you find these things, by printing property names and the values they accept In [3]: p, = fill(x,y) In [4]: p Out[4]: <matplotlib.patches.Polygon instance at 0x3b5ec60> In [5]: set(p) alpha: float antialiased or aa: [True | False] clip_box: a matplotlib.transform.Bbox instance clip_on: [True | False] edgecolor or ec: any matplotlib color - see help(colors) facecolor or fc: any matplotlib color - see help(colors) figure: a matplotlib.figure.Figure instance fill: [True | False] label: any string linewidth or lw: float lod: [True | False] transform: a matplotlib.transform transformation instance visible: [True | False] zorder: any number Hope this helps, JDH |