SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] postscript backend: draw_markers

From: Darren D. <dar...@co...> - 2007年10月19日 14:15:56
On Friday 19 October 2007 09:21:45 am John Hunter wrote:
> On 10/19/07, Darren Dale <dar...@co...> wrote:
> > A while back I put in quite a bit of effort into enabling draw_markers in
> > the postscript backend. This is an efficient RendererPS function both in
> > terms of speed and file size, but it seems to not be used any more in
> > favor of the less efficient draw_polygon. Does anyone know why?
>
> Which artist is triggering this call?
I don't remember how to find the answer. It looks like scatter() creates 
polygons, while plot() uses draw_markers:
import pylab
x = pylab.npy.arange(0,10)
pylab.scatter(x,x, s=50, alpha=0.5)
pylab.scatter(x,x+0.5, facecolor='blue', edgecolor='red', s=50, alpha=0)
pylab.plot(x,x+1, 'o', mfc='blue', mec='red', ms=8, alpha=0)
pylab.savefig('alpha.png')
pylab.savefig('alpha.eps')
pylab.show()
Comparing the png and eps, it looks like there is some inconsistancy in the 
way scatter and plot ends up dealing with the alpha argument as well.
Darren

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /