beautiful! I was in the meantime working out something using the suggestion Eric sent me (e.g. via pcolormesh) and I could work most of things I wanted out, but at the price of a rather stupidly looking management of the axis and rotation (maybe there is a way for improvement here too...). Your solution may indeed be a cleaner way forward! I'll try both ways and see how I manage to get things done (the main problem being my rather poor ability in writing advanced codes in python... thanks & cheers! Eric John Hunter wrote: "Eric" == Eric Emsellem <[EMAIL PROTECTED]> writes:Eric> Hi, this is a question I have posted earlier, but Eric> unfortunately I didn't get any answer. if anybody has any Eric> hint on how to do this, I would be most graceful!! Thanks Eric> in advance!I looked at this a bit -- the underlying image extension code handles image rotations but it is not exposed at the python level. I spent some time working on an image class that would handle rotations (in this test code below I just hardcoded the rotation for testing). The missing part is to get the extent and image placement algorithms to do the layout properly in the presence of rotation (eg handling extent and corners properly below). But this should give the enterprising developer a head start if they want to run with with. Basically, I just copied the guts out of the axes.image.AxesImage.make_image code to experiment with adding a rotation from matplotlib.image import AxesImage from pylab import subplot, show, nx ... -- ==================================================================== Eric Emsellem [EMAIL PROTECTED] Centre de Recherche Astrophysique de Lyon 9 av. Charles-Andre tel: +33 (0)4 78 86 83 84 69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86 France http://www-obs.univ-lyon1.fr/eric.emsellem ==================================================================== |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users