Dear All, 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, Best wishes, Federico ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users