Text Alignment Issue with Anchored Text

Greetings,

I came across what I would consider an interesting text bug when using AnchoredText. In summary, when trying to pass a horizontal alignment to the text, anything but ‘left’ doesn’t work. The text gets positioned around the left-edge of the text space (left spine of text box + padding). This occurs both with the “normal” plotting and the ImageGrid.

I went ahead and filed an issue, but didn’t know if someone who doesn’t’ check the issues list might have a work around. The git issue has a sample script and image to illustrate the issue.

https://github.com/matplotlib/matplotlib/issues/1742

I’m not sure if this is a continuation of the issues reported in

Issue #1571

Pull Request #1081

Pull Request #1589

I’m in the midst of my dissertation, so I don’t have the time right now to dig into this. If no one else can, I’ll take a crack at it in a couple months when I’m done.

Cheers,

Patrick

···

Patrick Marsh
Ph.D. Candidate / Liaison to the HWT
School of Meteorology / University of Oklahoma
Cooperative Institute for Mesoscale Meteorological Studies

National Severe Storms Laboratory
http://www.patricktmarsh.com