Hi, I'm trying to create an eps file which does not
> have a figure frame. I used figurePatch.fill = False to
> prevent filling but there's still a white frame drawn
> around the figure which is visible when putting it on a
> coloured background.
> figurePatch.set_lw(0.0) didn't help neither.
> figure(frameon=False) seems to have no effect.
The standard trick is to set the figure facecolor and edgecolor to be
the same. For whatever reason, a linewidth of 0 is not handled
consistently across ps drivers.
setp(figurePatch, facecolor=somecolor, edgecolor=somecolor, linewidth=0)
should work.
JDH
···
Thank you in advance, Christian
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc. Get
> Certified Today Register for a JBoss Training Course.
> Free Certification Exam for All Training Attendees
> Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> matplotlib-users List Signup and Options
John Hunter wrote:
The standard trick is to set the figure facecolor and edgecolor to be
the same. For whatever reason, a linewidth of 0 is not handled
consistently across ps drivers.
In the PostScript model (and thus also PDF), a linewidth of 0 means "1
pixel at the rendered resolution," not that the line is invisible.
···
--
Robert Kern
robert.kern@...287...
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
John Hunter wrote:
"Christian" == Christian Kristukat <ckkart@...341...> writes:
> Hi, I'm trying to create an eps file which does not
> have a figure frame. I used figurePatch.fill = False to
> prevent filling but there's still a white frame drawn
> around the figure which is visible when putting it on a
> coloured background.
> figurePatch.set_lw(0.0) didn't help neither.
> figure(frameon=False) seems to have no effect.
The standard trick is to set the figure facecolor and edgecolor to be
the same. For whatever reason, a linewidth of 0 is not handled
consistently across ps drivers.
setp(figurePatch, facecolor=somecolor, edgecolor=somecolor, linewidth=0)
Indeed the frame line is not drawn in that case, but it is still beeing filled.
To prevent filling I tried:
f.figurePatch.fill = False
setp(f.figurePatch, facecolor='black', edgecolor='black', linewidth=0)
but now the frame line is back again - in white.
Any other ideas?
Christian