I have a matplotlib.path.Path object. How do I render it to bitmap (or array with color values).
I quess I have to use the backend/rendere to draw the object but how do I do that?
Edit:
Most of matplotlib's drawable objects (markers, axes, etc) are in vector format. These objects are subclasses of Path. I want to render these to bitmaps in other words rasterize them.
Example: I draw a circular marker 'bo'. What do I need to do to get a bitmap of one circular marker? I cannot just draw a circle and color it blue. I want to get any marker from a plot and get the bitmap of that. Just that one marker with correct color, shape and size and all other attributes. Also no background or foreground or any other element should not be in the figure. This case is similar how the legend draws its symbols. How do I do that?