viewing rotated pixels possible with mpl?

Hi,

this is a question I have posted earlier, but unfortunately I didn't get
any answer.
if anybody has any hint on how to do this, I would be most graceful!!
Thanks in advance!

I would like to visualize an image after a rotation:
==> this means to view each squared pixels as "rotated" (seen as an
rotated square). I have in fact several images which I need to plot on
the same figure (with subplot), each of these having different "rotation
angles".

The rough solution would be to rotate the data itself (x and y) and use
imshow after some rebinning on a squared grid. But this would not be
showing the original data, which is what I wish to do.
Is it possible to do this in mpl?

thanks!

Eric

I think you can get the effect you describe using pcolor or pcolormesh; the latter is faster but due to a bug it doesn't handle alpha values other than 1. You will have to generate arrays with the pixel corners (not centers) as you want them to be after your rotation. You will want to use the shading='flat' kwarg.

Eric

Eric Emsellem wrote:

ยทยทยท

Hi,

this is a question I have posted earlier, but unfortunately I didn't get
any answer.
if anybody has any hint on how to do this, I would be most graceful!!
Thanks in advance!

I would like to visualize an image after a rotation:
==> this means to view each squared pixels as "rotated" (seen as an
rotated square). I have in fact several images which I need to plot on
the same figure (with subplot), each of these having different "rotation
angles".

The rough solution would be to rotate the data itself (x and y) and use
imshow after some rebinning on a squared grid. But this would not be
showing the original data, which is what I wish to do.
Is it possible to do this in mpl?

thanks!

Eric

-------------------------------------------------------------------------
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