Re: [Matplotlib-users] draw to memory

2009-03-18 Thread Christopher Barker
crwe crwe wrote: > Looking at the implementation, it's really simple and i will do > without matplotlib altogether and roll my own. It sounds like you have a solution, but if you need to test a LOT of points, it can be efficient to rasterize, and then get a lightning fast check. It that case,

Re: [Matplotlib-users] draw to memory

2009-03-18 Thread crwe crwe
> hi, did you find this? > http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=codex%20nxutils#test-whether-a-point-is-inside-a-polygon I used the search function but no, i didn't find that link :) Shame on me and thank you Brent. Looking at the implementation, it's really simple and

Re: [Matplotlib-users] draw to memory

2009-03-18 Thread Brent Pedersen
On Wed, Mar 18, 2009 at 2:48 PM, crwe crwe wrote: > Hi all, > > i need to draw a polygon (non-convex) into memory, so that i can query which > pixels are inside the polygon and which not. I came across matplotlib which > has some Polygon class in it so i presume i could use this (although so far