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: Michael D. <md...@st...> - 2007-08-08 12:25:24
|
I should clarify, I have this working with the TkAgg backend and "text.usetex : False". If "text.usetex : True", I can't confirm or deny whether that works since I don't have a proper LaTeX ucs.sty setup here to test with. As an aside, if you're looking to Gtk as a way around this, the Gtk backend uses the same rendering pipeline for text when text.usetex is True, so it likely will produce the same result. Cheers, Mie Michael Droettboom wrote: > Xavier Gnata wrote: >> With a = u"é" I get no error but also nothing as a title. No strange >> characters. Nothing. > > This is working for me with the latest svn version, as well as 0.90.1, > on Linux with Python 2.5 and Tcl/Tk 8.4. > > There are other things that could be going wrong. The encoding of your > terminal may not match your default encoding in your Python interpreter. > If you're using Linux, can you please send the output of: > > > locale > > python -c "import locale; print locale.getpreferredencoding()" > > If all is working correctly, you should get the following in your python > interpreter: > > >>> a = u"é" > >>> ord(a) > 233 > > If you're using an editor (i.e. not using pylab interactively), you'll > need to make sure that it is outputting in the correct encoding, and > respecting the > > # -*- coding: utf-8 -*- > > line. Recent versions of emacs do this, but I can't really speak for > others. > > I have attached a test script that works for me. It even includes some > Greek characters as Unicode which work if you select a Unicode font with > those characters. > > Cheers, > Mike |
|
From: Michael D. <md...@st...> - 2007-08-08 12:16:35
|
Xavier Gnata wrote: > With a = u"é" I get no error but also nothing as a title. No strange > characters. Nothing. This is working for me with the latest svn version, as well as 0.90.1, on Linux with Python 2.5 and Tcl/Tk 8.4. There are other things that could be going wrong. The encoding of your terminal may not match your default encoding in your Python interpreter. If you're using Linux, can you please send the output of: > locale > python -c "import locale; print locale.getpreferredencoding()" If all is working correctly, you should get the following in your python interpreter: >>> a = u"é" >>> ord(a) 233 If you're using an editor (i.e. not using pylab interactively), you'll need to make sure that it is outputting in the correct encoding, and respecting the # -*- coding: utf-8 -*- line. Recent versions of emacs do this, but I can't really speak for others. I have attached a test script that works for me. It even includes some Greek characters as Unicode which work if you select a Unicode font with those characters. Cheers, Mike |
|
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...@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JQyBmb3IgZGV0YWlscy4KCiUlQm91bmRpbmdCb3g6IDE3OSAz 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
|
|
From: Michael D. <md...@st...> - 2007-08-06 21:03:22
|
There is now experimental support for custom fonts in math mode. You'll need to set "mathtext.use_cm" to False, and then set up a mapping from each of the TeX font names to the name of your desired font. It is assumed that the fonts are Unicode fonts -- it will use the same font for both Latin and Greek characters. If your font doesn't have Greek characters, it will (optionally) fall back on the Computer Modern fonts. There isn't (at present) a way to fall back to a Greek-only font. (There would, IMHO, have to be a compelling reason to add that functionality, since there are too many font options to test already ;) Here's an excerpt from matplotlib.template: # The following settings allow you to select the fonts in math mode. # They map from a TeX font name to a 3-tuple of the form: # (family, weight, style) # These settings are only used if mathtext.use_cm is False, otherwise, the # Bakoma TeX Computer Modern fonts are used. #mathtext.cal : (['cursive'], 'normal', 'normal') #mathtext.rm : (['serif'], 'normal', 'normal') #mathtext.tt : (['monospace'], 'normal', 'normal') #mathtext.it : (['serif'], 'normal', 'oblique') #mathtext.bf : (['serif'], 'bold', 'normal') #mathtext.sf : (['sans-serif'], 'normal', 'normal') #mathtext.use_cm : True #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern # fonts when a symbol can not be found in one of # the user-specified math fonts. Rob Hetland wrote: > However, I often just want to put powers on units -- e.g., m^3 s^{-1}, > and serifed fonts look terrible as superscripts for sans fonts. Agreed. > Perhaps there is another way to get what I want? Try the above, and let me know how it goes... > Also, the main problem I find when mixing CM symbols (e.g., \epsilon) > with other fonts is that the CM fonts seem small. Perhaps there is a > way to jack up the symbol size to that it matches the non-CM fonts in a > more reasonable way? If the Unicode font has both Latin and Greek characters in it, those characters should play well together. More generally, though, I agree, and one might run into that problem using some of the more obscure math operators. Perhaps scaling one or the other font to get the x-heights to match might work. I'll have to look into that further... Thanks for spurring me on to get this custom font stuff together. Cheers, Mike |
|
From: Angus M. <am...@gm...> - 2007-08-06 20:13:19
|
On 07/08/07, fred <fr...@gm...> wrote:
> Angus McMorland a =E9crit :
>
> > Since all sorts of data can be displayed in am mpl window (e.g. a
> > plot, a contour...) you have to tell it how to access the correct
> > scalar value to display. You could do this with the
> > motion_notify_event. Register it during init, something like:
> >
> > self.canvas.mpl_connect('motion_notify_event', self.mouse_move_callback=
)
> >
> > then in mouse_move_callback:
> >
> > def mouse_move_callback(self, evt):
> > xpos, ypos =3D evt.xdata, evt.ydata
> > val =3D self.data[numpy.floor(xpos), numpy.floor(ypos)]
> > status_str =3D "x: %4.2f y: %4.2f I:%4.2f" \
> > % (xpos, ypos, val)
> > self.SetStatusText(status_str)
> >
> > where data is your image variable. This works in a wx.Frame object,
> > which has a SetStatusString method for displaying the values. I'm sure
> > you could find an equivalent in your traits app.
> >
> >
> Thanks, I'll look at this asap (as I got other stuff "on fire").
>
> BTW, I can't ever get (in fact, I don't know how) working
> the coords to be displayed in my traits app.
> I guess this is more related to traits, not to mpl.
For what it's worth, mpl embedded in wx also _requires_ the use of
motion_notify_event to get co-ordinates to display. It doesn't happen
by default except in stand-alone mpl as far as I can tell.
> But the "mpl embedded in traits app guru" is on holydays for now.
>
> Let's wait...
>
> Cheers,
>
> --
> http://scipy.org/FredericPetit
>
>
> -------------------------------------------------------------------------
> 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
>
--=20
AJC McMorland, PhD Student
Physiology, University of Auckland
|
|
From: Rob H. <he...@ta...> - 2007-08-06 20:03:46
|
> For example, the freefonts don't have a very complete math symbol
> set at all. Falling back on the Computer Modern fonts for just
> those symbols would work, but won't look very nice. That said, a
> lot of users can probably do without those extended symbols
> altogether.
You say that CM fonts/symbols look bad mixed with other fonts -- that
is also my experience from years of LaTeXing...
However, I often just want to put powers on units -- e.g., m^3 s^
{-1}, and serifed fonts look terrible as superscripts for sans fonts.
Perhaps there is another way to get what I want?
Also, the main problem I find when mixing CM symbols (e.g., \epsilon)
with other fonts is that the CM fonts seem small. Perhaps there is a
way to jack up the symbol size to that it matches the non-CM fonts in
a more reasonable way?
-Rob
----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331
|
|
From: Michael D. <md...@st...> - 2007-08-06 19:16:24
|
I believe the rcParams you're referring to actually affect the (now deprecated) mathtext2, which explains why they're having no effect ;) Sorry about that. These will soon be replaced with a new way to handle custom Unicode fonts, that is mostly working, but may not produce the best results. When typesetting math, symbols are pulled in from a number of fonts, and it looks best when all symbols are designed to match. For example, the freefonts don't have a very complete math symbol set at all. Falling back on the Computer Modern fonts for just those symbols would work, but won't look very nice. That said, a lot of users can probably do without those extended symbols altogether. The other nice thing that the Computer Modern fonts have is multiple sizes of many of the delimiters. For instance, as the '[' gets taller, it doesn't get wider as well. In any case, once I have an interface available for fonts to be replaced by the end user, I'll let you know and you can decide for yourself. I think I'm probably judging that option harshly based on the complete set of features available, not on a common subset that matters most. Cheers, Mike Rob Hetland wrote: > I would like to use sans-serif math fonts in mathtext (inspired by > Tufte -- most of his examples use sans fonts). > > Apparently there are rcParams options to be set, however, I keep > getting computer modern math fonts. I would like to use the > FreeSansOblique for the math italic font. How do I do this? > > -Rob > > > > p.s. I *love* the new mathtext -- nice work. > > > p.s.s. For those who don't pay attention to fonts, the Free font > sans series seems to be a pretty faithful reproduction of Helvetica. > I have renewed my enthusiasm for Helvetica after reading this article: > > http://www.ms-studio.com/articles.html > > > ---- > Rob Hetland, Associate Professor > Dept. of Oceanography, Texas A&M University > http://pong.tamu.edu/~rob > phone: 979-458-0096, fax: 979-845-6331 > > > > ------------------------------------------------------------------------- > 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: Rob H. <he...@ta...> - 2007-08-06 18:14:25
|
I would like to use sans-serif math fonts in mathtext (inspired by Tufte -- most of his examples use sans fonts). Apparently there are rcParams options to be set, however, I keep getting computer modern math fonts. I would like to use the FreeSansOblique for the math italic font. How do I do this? -Rob p.s. I *love* the new mathtext -- nice work. p.s.s. For those who don't pay attention to fonts, the Free font sans series seems to be a pretty faithful reproduction of Helvetica. I have renewed my enthusiasm for Helvetica after reading this article: http://www.ms-studio.com/articles.html ---- Rob Hetland, Associate Professor Dept. of Oceanography, Texas A&M University http://pong.tamu.edu/~rob phone: 979-458-0096, fax: 979-845-6331 |
|
From: <jk...@ik...> - 2007-08-06 18:07:49
|
George LeCompte <ge...@le...> writes: > The contours labels show 3 zeros beyond the decimal point. Is it > possible to force these labels to integers? If so how? If not why > not? clabel(CS, inline=1, fontsize=10, fmt='%3.0f') > Is there a way to browse previous postings to matplotlib-users > without looking month by month? For example can I bring up all > postings regarding 'contour'? This was discussed recently: http://thread.gmane.org/gmane.comp.python.matplotlib.general/9915/focus=9917 You can search the list on at least sourceforge.net, gmane.org, and mail-archive.com: http://sourceforge.net/search/?ml_name=matplotlib-users&type_of_search=mlists&group_id=80706&words=contour http://search.gmane.org/?query=contour&group=gmane.comp.python.matplotlib.general http://www.mail-archive.com/search?q=contour&l=matplotlib-users%40lists.sourceforge.net -- Jouni K. Seppänen http://www.iki.fi/jks |
|
From: <jk...@ik...> - 2007-08-06 17:58:44
|
"Zelakiewicz, Scott (GE, Research)"
<zel...@cr...> writes:
> I get one contour line as expected, but instead of printing the contour
> level (50) I would like to print a simple string like "Some String." I
> tried using the fmt option of clabel, but it requires a way to stuff in
> the level value (ie. fmt="Some String %f"). Is it possible to use a
> simple string for these labels?
I don't know if there is a recommended way, but here is a quick hack:
class FormatFaker(object):
def __init__(self, str): self.str = str
def __mod__(self, stuff): return self.str
A=arange(100).reshape(10,10)
CS=contour(A,[50,])
CS.clabel(fmt=FormatFaker('Some String'))
show()
--
Jouni K. Seppänen
http://www.iki.fi/jks
|