Thank you Michael and Darren.
I'll keep your information for further polishing :
So far, I am not having problems with my two-steps solution :
1) SVG backend
2) rsvg + Cairo, code snippet :
svg = rsvg.Handle( filesvg )
width = svg.props.width
height = svg.props.height
surface =
Thanks for the report. It's a bit convoluted, but it is automatable, at
least, and I'm glad to see it works for you.
I'd like to see a Cairo expert take on the task of upgrading our Cairo
backend to use Pango. That would make this a little cleaner and
theoretically fix the text alignment
Hi all,
I have been trying to follow your tips regarding matplotlib and arabic support.
Indeed matplotlib with Latex and unicode work great together :
#-*- coding: utf-8 -*-
from pylab import *
from matplotlib import rcParams
rcParams['text.usetex']=True
rcParams['text.latex.unicode']=True
Mathieu Leplatre wrote:
Hi all,
I have been trying to follow your tips regarding matplotlib and arabic
support.
Is it related to my installation ? (Ubuntu with package
texlive-latex-recommended)
I asked here : http://ubuntuforums.org/showthread.php?p=5258457
I have no idea. Try
Hi Mathieu,
Are there perhaps some latex packages you could load using the
text.latex.preamble rc setting? This setting is officially unsupported, but
it would be much easier than adding an option to use the xetex executable
(which would probably not be officially supported by mpl).
Darren
Well, I'll give a try towards another possibility :
1 - use SVG output with rc setting : svg.embed_char_paths to False
2 - use cairo to export to PNG/JPG etc..
Step 1 works great natively with Arabic (at least viewing it with Inkscape).
Let's see if I have problems with step 2.
2008/6/25
Unfortunately, I believe this is a fundamental incompatibility within
matplotlib. matplotlib uses a very simple algorithm for layout out a
line of characters which assumes ltr order and all kinds of other things.
That said, there is something you could try. Matplotlib has a usetex
mode which
Hello All:
Having an issue with Arabic font support using matplotlib. When using the
correct font, Arabic characters are displayed, but are not joined together
properly; and they are also not in the correct order (the font rendered is
ltr, but Arabic is a rtl language). Is this an issue with