diff --git a/examples/pylab_examples/transoffset.py b/examples/pylab_examples/transoffset.py index 6b21a27c796c..afcb4306e48c 100644 --- a/examples/pylab_examples/transoffset.py +++ b/examples/pylab_examples/transoffset.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - ''' This illustrates the use of transforms.offset_copy to make a transform that positions a drawing element such as @@ -10,7 +8,7 @@ Every Artist--the mpl class from which classes such as Text and Line are derived--has a transform that can be set when the Artist is created, such as by the corresponding -pylab command. By default this is usually the Axes.transData +pyplot command. By default this is usually the Axes.transData transform, going from data units to screen dots. We can use the offset_copy function to make a modified copy of this transform, where the modification consists of an