beginner examples using matplotlib.transforms?

Hi,

I am trying to create a sequence of rotated rectangles of various sizes/orientations. I have been looking at the following page:

http://matplotlib.sourceforge.net/devel/transformations.html

But I can't find any examples of how to use these transformations and then show the resulting figures. I am trying to create a sequence of frames for a rectangle tumbling forward. This means I would need to daisychain the transformations noted above.

Any help getting started would be greatly appreciated!

Have you seen the Transformations Tutorial? It has a number of usage examples.

Cheers,
-Tony

···

On Mon, Jan 23, 2012 at 2:43 PM, reckoner <reckoner@…2015…87…> wrote:

Hi,

I am trying to create a sequence of rotated rectangles of various

sizes/orientations. I have been looking at the following page:

http://matplotlib.sourceforge.net/devel/transformations.html

But I can’t find any examples of how to use these transformations and

then show the resulting figures. I am trying to create a sequence of

frames for a rectangle tumbling forward. This means I would need to

daisychain the transformations noted above.

Any help getting started would be greatly appreciated!

Do note that while I think what you want to do is techinically feasible, the Transformation framework is probably not really intended for this purpose and may feel awkward. That being said, I think that this example may be the closest to what you want to do:

http://matplotlib.sourceforge.net/users/transforms_tutorial.html#using-offset-transforms-to-create-a-shadow-effect

Cheers!
Ben Root

···

On Mon, Jan 23, 2012 at 2:21 PM, Tony Yu <tsyu80@…287…> wrote:

On Mon, Jan 23, 2012 at 2:43 PM, reckoner <reckoner@…287…> wrote:

Hi,

I am trying to create a sequence of rotated rectangles of various

sizes/orientations. I have been looking at the following page:

http://matplotlib.sourceforge.net/devel/transformations.html

But I can’t find any examples of how to use these transformations and

then show the resulting figures. I am trying to create a sequence of

frames for a rectangle tumbling forward. This means I would need to

daisychain the transformations noted above.

Any help getting started would be greatly appreciated!

Have you seen the Transformations Tutorial? It has a number of usage examples.

Cheers,
-Tony