You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(36) |
2
(10) |
3
(8) |
4
|
|
5
(4) |
6
(15) |
7
(17) |
8
(3) |
9
(8) |
10
(5) |
11
(2) |
|
12
(5) |
13
(5) |
14
(15) |
15
(3) |
16
(10) |
17
(6) |
18
(2) |
|
19
(1) |
20
(11) |
21
(33) |
22
(13) |
23
(14) |
24
(15) |
25
(4) |
|
26
(5) |
27
(9) |
28
(12) |
29
(7) |
30
(8) |
31
(6) |
|
|
From: Xavier G. <gn...@ob...> - 2007-08-07 20:49:00
|
Hi, I'm a TkAgg user because it is the only backend which is usable on my box. This only pb if that this backend is not UTF8 compatible :( GtkAgg looks even better but when I tried plot([1,2]) I'm only get a gray window with nothing on it. No plot. No buttons. I have no time for now to try to fix that but if someone wants me to test something to help to fix this problem... Xavier ps : I'm using interactive True and ipython on an up to date debian sid. -- ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gn...@ob... ############################################ |
|
From: Xavier G. <gn...@ob...> - 2007-08-07 20:42:49
|
>> Hello, >> >> I'm a french user and I'm trying to put an 'é' into a pylab title. >> My locales and fully utf-8 and the code is the following under ipthon: >> import pylab >> a="é" >> pylab.plot([1]) >> pylab.title(a) >> >> raises the error : >> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: >> ordinal not in range(128) >> > > Have you tried using a Unicode string as input? e.g. > > a = u"é" > > That works for me, though it stops at the LaTeX step because I'm missing > some LaTeX packages. > > >> Is it a bug or a I doing something wrong? I'm using up to date pylab svn >> with the tk backend. >> >> The prolem is that only the tk backend is fully functionnal on my box. >> HTe gtk one never shows the buttons (debian up to date sid). >> > > The Tk backend is treating your input string as Latin-1, not UCS, which > is the same for codepoints < 255, so you got lucky. > > There are probably a few of these encoding bugs in various backends that > should probably be worked through. > > Cheers, > Mike > > With a = u"é" I get no error but also nothing as a title. No strange characters. Nothing. Xavier -- ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gn...@ob... ############################################ |
|
From: Darren D. <dd...@co...> - 2007-08-07 17:01:15
|
On Tuesday 07 August 2007 12:17:56 pm Johan Ekh wrote:
> Well, it looks OK but the fonts are still not the same as the ones used in
> LaTeX (at least not in my installation).
> Please look at the attached picture. It is another example but is shows the
> difference between the fonts. Best seen
> if you focus on the digit "6" in the graph (the upper digit) and in the
> text (the lower digit).
You have your font.family set to serif and font.serif set to Times. That means
you are telling matplotlib to use the Times fonts, but you are using the
default Computer Modern fonts in your latex document. I suggest you either
add \usepackage{pslatex} in your latex header to use the adobe fonts instead
of computer modern, or move computer modern roman to the front of your list
of serif fonts in matplotlib.
Darren
|
|
From: Michael D. <md...@st...> - 2007-08-07 16:59:59
|
Xavier Gnata wrote: > Hello, > > I'm a french user and I'm trying to put an 'é' into a pylab title. > My locales and fully utf-8 and the code is the following under ipthon: > import pylab > a="é" > pylab.plot([1]) > pylab.title(a) > > raises the error : > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: > ordinal not in range(128) Have you tried using a Unicode string as input? e.g. a = u"é" That works for me, though it stops at the LaTeX step because I'm missing some LaTeX packages. > Is it a bug or a I doing something wrong? I'm using up to date pylab svn > with the tk backend. > > The prolem is that only the tk backend is fully functionnal on my box. > HTe gtk one never shows the buttons (debian up to date sid). The Tk backend is treating your input string as Latin-1, not UCS, which is the same for codepoints < 255, so you got lucky. There are probably a few of these encoding bugs in various backends that should probably be worked through. Cheers, Mike |
|
From: Xavier G. <gn...@ob...> - 2007-08-07 15:54:28
|
Jouni K. Seppänen wrote:
> Xavier Gnata <gn...@ob...>
> writes:
>
>
>>> I'm a french user and I'm trying to put an 'é' into a pylab title.
>>>
>> Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works.
>> But is always fails using matplotlib.rc('text',usetex=True)
>>
>
> As a workaround, does \'e (as in r"f\'evrier") work with usetex=True?
>
>
yes it does!
Latex just works but using usetex=True there is a side effect preventing
utf8 to work in a correct way.
Xavier
--
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gn...@ob...
############################################
|
|
From: Darren D. <dd...@co...> - 2007-08-07 15:54:21
|
On Tuesday 07 August 2007 11:37:45 am Johan Ekh wrote:
> OK,
> here is the LaTeX example from the cookbook, i.e. I executed the following:
>
> --- x ---
>
> import pylab
> from pylab import arange,pi,sin,cos,sqrt
> fig_width_pt = 246.0 # Get this from LaTeX using \showthe\columnwidth
> inches_per_pt = 1.0/72.27 # Convert pt to inch
> golden_mean = (sqrt(5)-1.0)/2.0 # Aesthetic ratio
> fig_width = fig_width_pt*inches_per_pt # width in inches
> fig_height = fig_width*golden_mean # height in inches
> fig_size = [fig_width,fig_height]
> params = {'backend': 'ps',
> 'axes.labelsize': 10,
> 'text.fontsize': 10,
> 'xtick.labelsize': 8,
> 'ytick.labelsize': 8,
> 'text.usetex': True,
> 'figure.figsize': fig_size}
> pylab.rcParams.update(params)
> # Generate data
> x = pylab.arange(-2*pi,2*pi,0.01)
> y1 = sin(x)
> y2 = cos(x)
> # Plot data
> pylab.figure(1)
> pylab.clf()
> pylab.axes([0.125,0.2,0.95-0.125,0.95-0.2])
> pylab.plot(x,y1,'g:',label='$\sin(x)$')
> pylab.plot(x,y2,'-b',label='$\cos(x)$')
> pylab.xlabel('$x$ (radians)')
> pylab.ylabel('$y$')
> pylab.legend()
> pylab.savefig('fig1.eps')
>
> --- x ---
>
> Please find attached the resulting picture and the output from running the
> script with the flag "--verbose-debug-annoying".
What is wrong with your output? It looks fine to me. Maybe there is an issue
with your ps viewer. Try using the agg backend, and saving a png to compare
the results.
Also, a couple comments:
Any of your strings that have backslashes need to be raw strings:
'$\sin(x)$' should be r'$\sin(x)$'.
You should do this:
import matplotlib as mpl
params = {'backend': 'ps',
'axes.labelsize': 10,
'text.fontsize': 10,
'xtick.labelsize': 8,
'ytick.labelsize': 8,
'text.usetex': True,
'figure.figsize': fig_size}
mpl.rcParams.update(params)
before you do this:
import pylab
Darren
|
|
From: Johan E. <ekh...@gm...> - 2007-08-07 15:48:43
|
bWF0cGxvdGxpYiBkYXRhIHBhdGggL3Vzci9saWI2NC9weXRob24yLjUvc2l0ZS1wYWNrYWdlcy9t YXRwbG90bGliL21wbC1kYXRhCiRIT01FPS9ob21lL2pvZWgKQ09ORklHRElSPS9ob21lL2pvZWgv Lm1hdHBsb3RsaWIKbG9hZGVkIHJjIGZpbGUgL2hvbWUvam9laC8ubWF0cGxvdGxpYi9tYXRwbG90 bGlicmMKbWF0cGxvdGxpYiB2ZXJzaW9uIDAuOTAuMAp2ZXJib3NlLmxldmVsIGRlYnVnLWFubm95 aW5nCmludGVyYWN0aXZlIGlzIEZhbHNlCnBsYXRmb3JtIGlzIGxpbnV4Mgpsb2FkZWQgbW9kdWxl czogWydweWxhYicsICdkaXN0dXRpbHMuZGlzdHV0aWxzJywgJ19iaXNlY3QnLCAnX19mdXR1cmVf XycsICdjb3B5X3JlZycsICdzcmVfY29tcGlsZScsICdkaXN0dXRpbHMnLCAnX2hhc2hsaWInLCAn X3NyZScsICdfX21haW5fXycsICdwb3BlbjInLCAnc2l0ZScsICdfX2J1aWx0aW5fXycsICdkYXRl dGltZScsICdkaXN0dXRpbHMucmUnLCAnbWF0cGxvdGxpYi5yZScsICdtYXRwbG90bGliLnRlbXBm aWxlJywgJ2VuY29kaW5ncycsICdlbmNvZGluZ3MuZW5jb2RpbmdzJywgJ3NodXRpbCcsICdkaXN0 dXRpbHMuc3RyaW5nJywgJ2l0ZXJ0b29scycsICdkYXRldXRpbCcsICdtYXRwbG90bGliLmRhdGV0 aW1lJywgJ3Bvc2l4cGF0aCcsICdfcmFuZG9tJywgJ3RlbXBmaWxlJywgJ2Vycm5vJywgJ21hdHBs b3RsaWIud2FybmluZ3MnLCAnYmluYXNjaWknLCAnZW5jb2RpbmdzLmNvZGVjcycsICdzcmVfY29u c3RhbnRzJywgJ3JlJywgJ21hdHBsb3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Y29tZXMgd2l0aCBOTyBXQVJSQU5U WTogc2VlIHRoZSBmaWxlIFBVQkxJQyBmb3IgZGV0YWlscy4KCiUlQm91bmRpbmdCb3g6IDE3OSAz MjIgNDE3IDQ2NwolJUhpUmVzQm91bmRpbmdCb3g6IDE3OS42NzgxNzQgMzIyLjgzODk5MCA0MTYu ODYxOTg3IDQ2Ni40MzM5ODYKCg== |
|
From: <jk...@ik...> - 2007-08-07 15:00:00
|
Xavier Gnata <gn...@ob...>
writes:
>> I'm a french user and I'm trying to put an 'é' into a pylab title.
>
> Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works.
> But is always fails using matplotlib.rc('text',usetex=True)
As a workaround, does \'e (as in r"f\'evrier") work with usetex=True?
--
Jouni K. Seppänen
http://www.iki.fi/jks
|
|
From: Johan E. <ekh...@gm...> - 2007-08-07 14:53:37
|
Hi, and thanks for your answer.
I got the following output from running my script with the --verbose-helpful
flag:
--- x ---
joeh@sevst-x-crc5959:~/ABB/HVC/SubSea/Python> python plot_data.py
--verbose-helpful
matplotlib data path /usr/lib64/python2.5/site-packages/matplotlib/mpl-data
$HOME=/home/joeh
CONFIGDIR=/home/joeh/.matplotlib
loaded rc file /home/joeh/.matplotlib/matplotlibrc
matplotlib version 0.90.0
verbose.level helpful
interactive is False
platform is linux2
numerix numpy 1.0.3
font search path ['/usr/lib64/python2.5/site-packages/matplotlib/mpl-data']
loaded ttfcache file /home/joeh/.matplotlib/ttffont.cache
backend GTKAgg version 2.10.3
Could not match Computer Modern Roman, normal, normal. Returning
/usr/lib64/python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
Found dvipng version 1.5
Could not match Computer Modern Roman, normal, normal. Returning
/usr/lib64/python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
Could not match Computer Modern Roman, normal, normal. Returning
/usr/lib64/python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
%%BoundingBox: 96 263 483 504
%%HiResBoundingBox: 96.933583 263.234875 482.480001 503.829758
--- x ---
Definitely looks like some missing fonts, does anyone known what I have to
do?
Best regards,
Johan
2007/8/7, Darren Dale <dd...@co...>:
>
> On Tuesday 07 August 2007 07:37:04 am Johan Ekh wrote:
> > Hi all,
> > I'm new to Python in general and Matplotlib in particular.
> > I'm trying to create publication quality plots for inclusion
> > in LaTeX papers and presentations and have some problems
> > to get the fonts right.
> >
> > My matplotlibrc contains the following lines
> >
> > font.family : serif
> > font.serif : Times, Palatino, New Century Schoolbook, Bookman,
> > Computer Modern Roman
> > font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif
> > font.cursive : Zapf Chancery
> > font.monospace : Courier, Computer Modern Typewriter
> >
> > and my Python script contains the following lines
> >
> > params = {'backend': 'ps',
> > 'axes.labelsize': 12,
> > 'text.fontsize': 12,
> > 'xtick.labelsize': 10,
> > 'ytick.labelsize': 10,
> > 'text.usetex': True,
> > 'figure.figsize': fig_size}
> > rcParams.update(params)
> >
> > I run what I believe is a standard openSUSE 10.2 installation of tetex
> and
> > python, including matplotlib.
> >
> > Still, fonts in my matplotlib plot are different from the ones used in
> my
> > LaTeX document. Also, strangely
> > psfrag does not seem to work? Nothing ever gets replaced in my plot!
> >
> > Can someone please help me out, what am I doing wrong?
>
> Please make sure that the external dependencies are installed and properly
> configured, see http://www.scipy.org/Cookbook/Matplotlib/UsingTex. If that
> doesn't help, try setting your verbose.level to "debug", write as simple a
> script as possible that reproduces the problem, and post again, along with
> the output and perhaps the figure.
>
|
|
From: william r. <wil...@gm...> - 2007-08-07 14:19:46
|
The build would be nice given the added features in interactivity in
matplotlib now. Would it be difficult to make a Windows XP build as well?
My current build seems to work--but others might also want one with the
latest features.
Thanks,
William
On 8/6/07, Charlie Moad <cw...@gm...> wrote:
>
> I got a successful build using VS2003 on Vista. Here is the env dump:
>
>
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 0.90.1
> python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
> v.1310 32 bit (Intel)]
> platform: win32
> Windows version: (6, 0, 6000, 2, '')
>
> REQUIRED DEPENDENCIES
> numpy: 1.0.3
> freetype2: found, but unknown version (no pkg-config)
>
> OPTIONAL DEPENDENCIES
> Gtk+: gtk+: 2.10.11, glib: 2.12.11, pygtk: 2.10.4,
> pygobject: 2.12.3
> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> wxPython: no
> * wxPython not found
> Qt: no
> Qt4: no
> Cairo: 1.2.6
> libpng: found, but unknown version (no pkg-config)
>
> [Edit setup.cfg to suppress the above messages]
>
> ============================================================================
>
> And here is the patch to make it work:
>
> Index: C:/workspace/matplotlib/setupext.py
> ===================================================================
> --- C:/workspace/matplotlib/setupext.py (revision 3677)
> +++ C:/workspace/matplotlib/setupext.py (working copy)
> @@ -676,10 +676,10 @@
> if sys.platform=='win32':
> major, minor1, minor2, s, tmp = sys.version_info
> if major==2 and minor1 in [3, 4, 5]:
> - module.include_dirs.extend(['win32_static/include/tcl84'])
> + module.include_dirs.extend(['win32_static/include/tcl8.4'])
> module.libraries.extend(['tk84', 'tcl84'])
> elif major==2 and minor1==2:
> - module.include_dirs.extend(['win32_static/include/tcl83'])
> + module.include_dirs.extend(['win32_static/include/tcl8.3'])
> module.libraries.extend(['tk83', 'tcl83'])
> else:
> raise RuntimeError('No tk/win32 support for this python
> version yet')
> Index: C:/workspace/matplotlib/ttconv/ttutil.cpp
> ===================================================================
> --- C:/workspace/matplotlib/ttconv/ttutil.cpp (revision 3677)
> +++ C:/workspace/matplotlib/ttconv/ttutil.cpp (working copy)
> @@ -32,10 +32,10 @@
> va_start(arg_list, format);
> char buffer[PRINTF_BUFFER_SIZE];
>
> - int size = vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
> + int size = _vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
> if (size >= PRINTF_BUFFER_SIZE) {
> char* buffer2 = (char*)malloc(size);
> - vsnprintf(buffer2, size, format, arg_list);
> + _vsnprintf(buffer2, size, format, arg_list);
> free(buffer2);
> } else {
> this->write(buffer);
>
>
> I don't have time to add the proper #ifdef to the cpp file at this
> moment. I can't remember to proper check off the top of my head.
> I'll commit the fix to the setupext.py typo.
>
> Did someone want the build? If so, e-mail me and I'll post it somewhere.
>
> - Charlie
>
|
|
From: Ryan K. <rya...@gm...> - 2007-08-07 13:36:08
|
This is admittedly a stupid question, but just to be sure, I don't see
usetex: True
in your post.
Ryan
On 8/7/07, Johan Ekh <ekh...@gm...> wrote:
> Hi all,
> I'm new to Python in general and Matplotlib in particular.
> I'm trying to create publication quality plots for inclusion
> in LaTeX papers and presentations and have some problems
> to get the fonts right.
>
> My matplotlibrc contains the following lines
>
> font.family : serif
> font.serif : Times, Palatino, New Century Schoolbook, Bookman,
> Computer Modern Roman
> font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif
> font.cursive : Zapf Chancery
> font.monospace : Courier, Computer Modern Typewriter
>
> and my Python script contains the following lines
>
> params = {'backend': 'ps',
> 'axes.labelsize ': 12,
> 'text.fontsize': 12,
> 'xtick.labelsize': 10,
> 'ytick.labelsize': 10,
> 'text.usetex': True,
> 'figure.figsize': fig_size}
> rcParams.update(params)
>
> I run what I believe is a standard openSUSE 10.2 installation of tetex and
> python, including matplotlib.
>
> Still, fonts in my matplotlib plot are different from the ones used in my
> LaTeX document. Also, strangely
> psfrag does not seem to work? Nothing ever gets replaced in my plot!
>
> Can someone please help me out, what am I doing wrong?
>
> Best regards,
> Johan
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: Xavier G. <gn...@ob...> - 2007-08-07 12:53:14
|
Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works.
But is always fails using matplotlib.rc('text',usetex=True)...side effect...
Xavier
> Hello,
>
> I'm a french user and I'm trying to put an 'é' into a pylab title.
> My locales and fully utf-8 and the code is the following under ipthon:
> import pylab
> a="é"
> pylab.plot([1])
> pylab.title(a)
>
> raises the error :
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
> ordinal not in range(128)
>
> Is it a bug or a I doing something wrong? I'm using up to date pylab svn
> with the tk backend.
>
> The prolem is that only the tk backend is fully functionnal on my box.
> HTe gtk one never shows the buttons (debian up to date sid).
>
> Xavier
>
>
--
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gn...@ob...
############################################
|
|
From: Xavier G. <gn...@ob...> - 2007-08-07 12:47:06
|
Hello, I'm a french user and I'm trying to put an 'é' into a pylab title. My locales and fully utf-8 and the code is the following under ipthon: import pylab a="é" pylab.plot([1]) pylab.title(a) raises the error : UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128) Is it a bug or a I doing something wrong? I'm using up to date pylab svn with the tk backend. The prolem is that only the tk backend is fully functionnal on my box. HTe gtk one never shows the buttons (debian up to date sid). Xavier -- ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gn...@ob... ############################################ |
|
From: Darren D. <dd...@co...> - 2007-08-07 12:01:53
|
On Tuesday 07 August 2007 07:37:04 am Johan Ekh wrote:
> Hi all,
> I'm new to Python in general and Matplotlib in particular.
> I'm trying to create publication quality plots for inclusion
> in LaTeX papers and presentations and have some problems
> to get the fonts right.
>
> My matplotlibrc contains the following lines
>
> font.family : serif
> font.serif : Times, Palatino, New Century Schoolbook, Bookman,
> Computer Modern Roman
> font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif
> font.cursive : Zapf Chancery
> font.monospace : Courier, Computer Modern Typewriter
>
> and my Python script contains the following lines
>
> params = {'backend': 'ps',
> 'axes.labelsize': 12,
> 'text.fontsize': 12,
> 'xtick.labelsize': 10,
> 'ytick.labelsize': 10,
> 'text.usetex': True,
> 'figure.figsize': fig_size}
> rcParams.update(params)
>
> I run what I believe is a standard openSUSE 10.2 installation of tetex and
> python, including matplotlib.
>
> Still, fonts in my matplotlib plot are different from the ones used in my
> LaTeX document. Also, strangely
> psfrag does not seem to work? Nothing ever gets replaced in my plot!
>
> Can someone please help me out, what am I doing wrong?
Please make sure that the external dependencies are installed and properly
configured, see http://www.scipy.org/Cookbook/Matplotlib/UsingTex. If that
doesn't help, try setting your verbose.level to "debug", write as simple a
script as possible that reproduces the problem, and post again, along with
the output and perhaps the figure.
|
|
From: Johan E. <ekh...@gm...> - 2007-08-07 11:37:08
|
Hi all,
I'm new to Python in general and Matplotlib in particular.
I'm trying to create publication quality plots for inclusion
in LaTeX papers and presentations and have some problems
to get the fonts right.
My matplotlibrc contains the following lines
font.family : serif
font.serif : Times, Palatino, New Century Schoolbook, Bookman,
Computer Modern Roman
font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif
font.cursive : Zapf Chancery
font.monospace : Courier, Computer Modern Typewriter
and my Python script contains the following lines
params = {'backend': 'ps',
'axes.labelsize': 12,
'text.fontsize': 12,
'xtick.labelsize': 10,
'ytick.labelsize': 10,
'text.usetex': True,
'figure.figsize': fig_size}
rcParams.update(params)
I run what I believe is a standard openSUSE 10.2 installation of tetex and
python, including matplotlib.
Still, fonts in my matplotlib plot are different from the ones used in my
LaTeX document. Also, strangely
psfrag does not seem to work? Nothing ever gets replaced in my plot!
Can someone please help me out, what am I doing wrong?
Best regards,
Johan
|
|
From: Charlie M. <cw...@gm...> - 2007-08-07 00:34:36
|
I got a successful build using VS2003 on Vista. Here is the env dump:
============================================================================
BUILDING MATPLOTLIB
matplotlib: 0.90.1
python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
v.1310 32 bit (Intel)]
platform: win32
Windows version: (6, 0, 6000, 2, '')
REQUIRED DEPENDENCIES
numpy: 1.0.3
freetype2: found, but unknown version (no pkg-config)
OPTIONAL DEPENDENCIES
Gtk+: gtk+: 2.10.11, glib: 2.12.11, pygtk: 2.10.4,
pygobject: 2.12.3
Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
wxPython: no
* wxPython not found
Qt: no
Qt4: no
Cairo: 1.2.6
libpng: found, but unknown version (no pkg-config)
[Edit setup.cfg to suppress the above messages]
============================================================================
And here is the patch to make it work:
Index: C:/workspace/matplotlib/setupext.py
===================================================================
--- C:/workspace/matplotlib/setupext.py (revision 3677)
+++ C:/workspace/matplotlib/setupext.py (working copy)
@@ -676,10 +676,10 @@
if sys.platform=='win32':
major, minor1, minor2, s, tmp = sys.version_info
if major==2 and minor1 in [3, 4, 5]:
- module.include_dirs.extend(['win32_static/include/tcl84'])
+ module.include_dirs.extend(['win32_static/include/tcl8.4'])
module.libraries.extend(['tk84', 'tcl84'])
elif major==2 and minor1==2:
- module.include_dirs.extend(['win32_static/include/tcl83'])
+ module.include_dirs.extend(['win32_static/include/tcl8.3'])
module.libraries.extend(['tk83', 'tcl83'])
else:
raise RuntimeError('No tk/win32 support for this python
version yet')
Index: C:/workspace/matplotlib/ttconv/ttutil.cpp
===================================================================
--- C:/workspace/matplotlib/ttconv/ttutil.cpp (revision 3677)
+++ C:/workspace/matplotlib/ttconv/ttutil.cpp (working copy)
@@ -32,10 +32,10 @@
va_start(arg_list, format);
char buffer[PRINTF_BUFFER_SIZE];
- int size = vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
+ int size = _vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
if (size >= PRINTF_BUFFER_SIZE) {
char* buffer2 = (char*)malloc(size);
- vsnprintf(buffer2, size, format, arg_list);
+ _vsnprintf(buffer2, size, format, arg_list);
free(buffer2);
} else {
this->write(buffer);
I don't have time to add the proper #ifdef to the cpp file at this
moment. I can't remember to proper check off the top of my head.
I'll commit the fix to the setupext.py typo.
Did someone want the build? If so, e-mail me and I'll post it somewhere.
- Charlie
|