I am a new user of python and of matplotlib, so, please excuse me if I
am asking a trivial question.
I am trying to use the funciton imshow to plot a temperature map of the
voltage levels of an electrical grid. After creating the grid data
using "meshgrid" and "griddata" functions, "imshow" works nicely and
fills up the whoe axes box.
Since, I also have the border line of the electrical grid (in the form
of a closed polygon coordinates), my next step is to clip the
temperature map using this polygon as a patch. Thus, I have created a
Path instance with the polygon coordinates, subsequently, a PathPatch
instance, say "patch".
Finally, I call the imshow function using the Artist options
"clip_on=True" and "clip_path=patch". I was expecting that imshow would
have filed up only the region inside the polygon, but imshow is still
mapping the full figure axis box, i.e., the plots with and without the
clip_path option are identical.
What am I missing or doing wrong?
Thank you very much in advance for any help,