Thanks Ben. I'll take a look through the archive.
On 10/16/14, 9:43 AM, Benjamin Root wrote:
> What you are looking for is called "rasterization". Matplotlib does this
> deep within the codebase and is not accessible (believe me, I tried).
> However, there have been other discussions in this maili
What you are looking for is called "rasterization". Matplotlib does this
deep within the codebase and is not accessible (believe me, I tried).
However, there have been other discussions in this mailing list about how
to use GDAL to rasterize a set of polygons (represented as paths),
including some
For the first question, if I save the figure (as a PNG I'm guessing,
unless you can save into a more array-like format), I'd have to make
sure that there were no labels or ticks and that the axes fit the whole
figure. I'd also have to get the dpi and size information correct, but I
suppose it w
pardon the query if it seems dumb, but why don't you do a savefig()
after plotting the data and then convert it to any format you like?
alternatively, contour() and contourf() both create paths that can
be accessed:
cf = contourf(.)
output = cf.collections.pop()
paths = output.get_paths()[i]