[Python-modules-commits] [python-mplexporter] 128/135: multialignment is used when '\n' (newlines) exist in text

Wolfgang Borgert debacle at moszumanska.debian.org
Tue Sep 23 21:19:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-mplexporter.

commit 10b22b1d64811f282d0bdf91f278a17867a8462e
Author: Andrew Seier <andseier at gmail.com>
Date:   Fri Jul 4 17:35:38 2014 -0700

    multialignment is used when '\n' (newlines) exist in text
    
    If there are *no* newlines, `text._multialignment == None`
    
    If `text._multialignment` has *not* been set, matplotlib will
    default this value to equal `text._horizontalalignment`,
    for reference.
---
 mplexporter/utils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mplexporter/utils.py b/mplexporter/utils.py
index 9bda7cc..6b7ba7a 100644
--- a/mplexporter/utils.py
+++ b/mplexporter/utils.py
@@ -178,6 +178,7 @@ def get_text_style(text):
     style['color'] = color_to_hex(text.get_color())
     style['halign'] = text.get_horizontalalignment()  # left, center, right
     style['valign'] = text.get_verticalalignment()  # baseline, center, top
+    style['malign'] = text._multialignment # text alignment when '\n' in text
     style['rotation'] = text.get_rotation()
     style['zorder'] = text.get_zorder()
     return style

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-mplexporter.git



More information about the Python-modules-commits mailing list