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