|
From: Evan M. <eva...@gm...> - 2009-05-08 17:20:40
|
Hi, would it be possible to add a keyword to clabel to optionally switch off
the angle fix in contour.py lines 384+?
# Fix angle so text is never upside-down
if rotation > 90:
rotation = rotation - 180.0
if rotation < -90:
rotation = 180.0 + rotation
Something like "clabel(CS, upsidedown=True)" with the default as False would
do it.
I am using clabel to put directional arrows on a streamline contour plot,
and this rotation causes some of the arrows to point the wrong way. So it
seems it would be a useful feature. I'm willing to try to do it myself if
somebody could tell me which files I would need to edit in addition to
contour.py?
Many thanks,
Evan
|