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
(19) |
2
(28) |
3
(8) |
|
4
(15) |
5
(20) |
6
(23) |
7
(12) |
8
(11) |
9
(13) |
10
(4) |
|
11
(9) |
12
(34) |
13
(33) |
14
(24) |
15
(15) |
16
(12) |
17
(8) |
|
18
(5) |
19
(5) |
20
(6) |
21
(10) |
22
(9) |
23
(18) |
24
(10) |
|
25
(7) |
26
(13) |
27
(18) |
28
(29) |
29
(4) |
30
(5) |
31
(2) |
|
From: Jeremy C. <jlc...@gm...> - 2009-10-23 22:47:07
|
On Fri, Oct 23, 2009 at 4:16 PM, Jae-Joon Lee <lee...@gm...> wrote: > Your data repeat itself twice. > Please check your data and report back if you still see the problem. > Regards, Of course it does <smacks head>. Sorry for bothering the list with my stupidity. Jeremy |
|
From: Jae-Joon L. <lee...@gm...> - 2009-10-23 22:17:12
|
Your data repeat itself twice.
Please check your data and report back if you still see the problem.
Regards,
-JJ
On Fri, Oct 23, 2009 at 3:58 PM, Jeremy Conlin <jlc...@gm...> wrote:
> Hello list. I am having trouble with an extraneous line drawn from my
> last data point back to the first data point. I I don't quite know
> why this is happening and was hoping someone could tell me what was
> wrong. I have attached an example; the commands I used are copied
> below.
>
> Thanks,
> Jeremy
>
>
> 8> pyplot.clf()
> [SpentFuel/H2O]|3> pyplot.plot(Energy[0],Tally[0])
> <3> [<matplotlib.lines.Line2D object at 0xe681110>]
> [SpentFuel/H2O]|4> pyplot.step(Energy[0],Tally[0])
> <4> [<matplotlib.lines.Line2D object at 0xacf1e30>]
> [SpentFuel/H2O]|5> pyplot.xscale('log')
> [SpentFuel/H2O]|6> pyplot.clf
> -----------------> pyplot.clf()
> [SpentFuel/H2O]|7> pyplot.xscale('log')
> [SpentFuel/H2O]|8> pyplot.plot(Energy[0],Tally[0])
> <8> [<matplotlib.lines.Line2D object at 0xff1bd90>]
> 9> Energy[0]
> <9>
> [1e-08,
> 9.9999999999999995e-08,
> 9.9999999999999995e-07,
> 1.0000000000000001e-05,
> 0.001,
> 1.0,
> 2.0,
> 5.0,
> 1e-08,
> 9.9999999999999995e-08,
> 9.9999999999999995e-07,
> 1.0000000000000001e-05,
> 0.001,
> 1.0,
> 2.0,
> 5.0]
> 10> Tally[0]
> <10>
> [1.58463e-06,
> 2.9873200000000001e-05,
> 8.9392999999999993e-06,
> 5.9984199999999997e-06,
> 1.6206999999999999e-05,
> 8.3313199999999994e-05,
> 2.3284800000000001e-05,
> 2.43042e-05,
> 1.58463e-06,
> 2.9873200000000001e-05,
> 8.9392999999999993e-06,
> 5.9984199999999997e-06,
> 1.6206999999999999e-05,
> 8.3313199999999994e-05,
> 2.3284800000000001e-05,
> 2.43042e-05]
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Gökhan S. <gok...@gm...> - 2009-10-23 22:08:48
|
Thanks JJ, I wonder when will I learn to fix my own rent :) Glad to have you here always responding with a quick solution. On Fri, Oct 23, 2009 at 4:46 PM, Jae-Joon Lee <lee...@gm...> wrote: > The below line is supposed to work but it does not, which is a bug. > > pary.axis["right"].label.set_rotation(270) > > Meanwhile, use may use something like below, > > pary.axis["right"].get_helper()._label_angles["right"]=270 > > Regards, > > -JJ > > > > On Fri, Oct 23, 2009 at 2:13 PM, Gökhan Sever <gok...@gm...> > wrote: > > Hello, > > > > One more figure and one more question. > > http://img263.imageshack.us/img263/6454/labelrotation.png > > > > I want to rotate the 2nd y-axis label "Air Temperature" upside down in > other > > words rotating 180 degree while A staying up. Unfortunately set_rotation > > method is not available to a SubplotHost instance. > > > > Any ideas how to achieve this? > > > > fig = plt.figure(figsize=(10,8)) > > host = SubplotHost(fig, 111) > > fig.add_subplot(host) > > pary = host.twinx() > > > > host.set_xlabel("Time [sfm]") > > host.set_ylabel("Pressure Altitude [m]") > > pary.set_ylabel(r"Air Temperature [$^o\hspace{-0.5}C$]") > > #pary.set_rotation("270") > > > > > > -- > > Gökhan > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > -- Gökhan |
|
From: Jae-Joon L. <lee...@gm...> - 2009-10-23 22:07:27
|
If that symbol is included in any of the font (I don't know of any),
you can simply use them.
Or, you need to create your own path. There are a few ways to do it,
and I guess using scatter is one of the easiest.
zap0 = [[-1.,0.], [-0.5, 0.5], [0.,0.], [0.5,-0.5],[1.,0.]]
zap = zap0 + zap0[-1:0:-1] # same verts but backward. the verts
# gets closed internally.
scatter([1.],[1.], s=100, marker=None,
verts=zap)
Regards,
-JJ
On Wed, Oct 21, 2009 at 5:00 AM, Christian Meesters
<mee...@im...> wrote:
> Hi,
>
> Does anyone provide a script / patch to create zap symbols (e.g. like
> http://home.gna.org/pychart/doc/module-coord.html#module-coord ) to
> break an axis?
>
> TIA
> Christian
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Jae-Joon L. <lee...@gm...> - 2009-10-23 21:46:51
|
The below line is supposed to work but it does not, which is a bug. pary.axis["right"].label.set_rotation(270) Meanwhile, use may use something like below, pary.axis["right"].get_helper()._label_angles["right"]=270 Regards, -JJ On Fri, Oct 23, 2009 at 2:13 PM, Gökhan Sever <gok...@gm...> wrote: > Hello, > > One more figure and one more question. > http://img263.imageshack.us/img263/6454/labelrotation.png > > I want to rotate the 2nd y-axis label "Air Temperature" upside down in other > words rotating 180 degree while A staying up. Unfortunately set_rotation > method is not available to a SubplotHost instance. > > Any ideas how to achieve this? > > fig = plt.figure(figsize=(10,8)) > host = SubplotHost(fig, 111) > fig.add_subplot(host) > pary = host.twinx() > > host.set_xlabel("Time [sfm]") > host.set_ylabel("Pressure Altitude [m]") > pary.set_ylabel(r"Air Temperature [$^o\hspace{-0.5}C$]") > #pary.set_rotation("270") > > > -- > Gökhan > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Jeremy C. <jlc...@gm...> - 2009-10-23 19:59:05
|
Hello list. I am having trouble with an extraneous line drawn from my
last data point back to the first data point. I I don't quite know
why this is happening and was hoping someone could tell me what was
wrong. I have attached an example; the commands I used are copied
below.
Thanks,
Jeremy
8> pyplot.clf()
[SpentFuel/H2O]|3> pyplot.plot(Energy[0],Tally[0])
<3> [<matplotlib.lines.Line2D object at 0xe681110>]
[SpentFuel/H2O]|4> pyplot.step(Energy[0],Tally[0])
<4> [<matplotlib.lines.Line2D object at 0xacf1e30>]
[SpentFuel/H2O]|5> pyplot.xscale('log')
[SpentFuel/H2O]|6> pyplot.clf
-----------------> pyplot.clf()
[SpentFuel/H2O]|7> pyplot.xscale('log')
[SpentFuel/H2O]|8> pyplot.plot(Energy[0],Tally[0])
<8> [<matplotlib.lines.Line2D object at 0xff1bd90>]
9> Energy[0]
<9>
[1e-08,
9.9999999999999995e-08,
9.9999999999999995e-07,
1.0000000000000001e-05,
0.001,
1.0,
2.0,
5.0,
1e-08,
9.9999999999999995e-08,
9.9999999999999995e-07,
1.0000000000000001e-05,
0.001,
1.0,
2.0,
5.0]
10> Tally[0]
<10>
[1.58463e-06,
2.9873200000000001e-05,
8.9392999999999993e-06,
5.9984199999999997e-06,
1.6206999999999999e-05,
8.3313199999999994e-05,
2.3284800000000001e-05,
2.43042e-05,
1.58463e-06,
2.9873200000000001e-05,
8.9392999999999993e-06,
5.9984199999999997e-06,
1.6206999999999999e-05,
8.3313199999999994e-05,
2.3284800000000001e-05,
2.43042e-05]
|
|
From: Eric F. <ef...@ha...> - 2009-10-23 19:25:11
|
Teemu Ikonen wrote: > Hi all, > > Typing this (on ipython prompt with the relevant libraries imported) > > x = linspace(0,1.0,500) > y = linspace(0,1.0,500) > xg,yg = meshgrid(x,y) > c = rand(len(x), len(y)) > pcolor(xg,yg,c) > > Makes the ipython process to grow to have about 400 Mb of resident > memory and it takes ages for the plot to appear (a 1000x1000 image > just makes my 1 Gb system trash helplessly). > > But, using pcolormesh instead of pcolor in the last line of the script > above works ok, the plot appears almost immediately, and the memory > consumption of the ipython process only doubles, i.e. grows about 30 > Mb. > > Is this a bug or am I doing something wrong? I'm using > python-matplotlib 0.99.0-1 from Debian. It is a limitation of pcolor, which uses a PolyCollection--very flexible and general, but very inefficient for simple cases with many polygons. With a regular grid, you can simply use an image, for the highest performance. pcolormesh is also a good alternative, and more general than image. There is no pyplot wrapper, but the Axes.pcolorfast method can use any of three different algorithms to achieve pcolor-like results with the highest possible efficiency for a given grid. Eric > > Best, > > Teemu > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Gökhan S. <gok...@gm...> - 2009-10-23 18:13:14
|
Hello, One more figure and one more question. http://img263.imageshack.us/img263/6454/labelrotation.png I want to rotate the 2nd y-axis label "Air Temperature" upside down in other words rotating 180 degree while A staying up. Unfortunately set_rotation method is not available to a SubplotHost instance. Any ideas how to achieve this? fig = plt.figure(figsize=(10,8)) host = SubplotHost(fig, 111) fig.add_subplot(host) pary = host.twinx() host.set_xlabel("Time [sfm]") host.set_ylabel("Pressure Altitude [m]") pary.set_ylabel(r"Air Temperature [$^o\hspace{-0.5}C$]") #pary.set_rotation("270") -- Gökhan |
|
From: Teemu I. <tpi...@gm...> - 2009-10-23 18:12:52
|
Hi all, Typing this (on ipython prompt with the relevant libraries imported) x = linspace(0,1.0,500) y = linspace(0,1.0,500) xg,yg = meshgrid(x,y) c = rand(len(x), len(y)) pcolor(xg,yg,c) Makes the ipython process to grow to have about 400 Mb of resident memory and it takes ages for the plot to appear (a 1000x1000 image just makes my 1 Gb system trash helplessly). But, using pcolormesh instead of pcolor in the last line of the script above works ok, the plot appears almost immediately, and the memory consumption of the ipython process only doubles, i.e. grows about 30 Mb. Is this a bug or am I doing something wrong? I'm using python-matplotlib 0.99.0-1 from Debian. Best, Teemu |
|
From: Gökhan S. <gok...@gm...> - 2009-10-23 18:04:03
|
Thanks Mike, that did the trick.
I was giving a space before units to make them look equal. Yours is much
neater.
Has this bug submitted on SF. I can go ahead a file one if not.
On Fri, Oct 23, 2009 at 9:57 AM, Michael Droettboom <md...@st...> wrote:
> It's a bug without an easy solution. Realistically, we probably need to
> make two passes with the mathtext parser to determine spacing.
>
> A workaround is to use the \hspace command:
>
> r"[#/$cm^3\hspace{-0.3}$]"
>
> Mike
>
>
> On 10/23/2009 09:44 AM, Gökhan Sever wrote:
>
> Hello,
>
> Not that I like asking the same question again and again, but I just
> couldn't find a way to fix one annoyance on my figures when I use mathtex
> formatted labels. Here is one example figure:
> http://img14.imageshack.us/img14/4443/mathtex.png
>
> # Set the label
> host.set_ylabel(r"DMT CCN Concentration [#/$cm^3$]")
>
> On the y-label, I always get an extra space after the formatted text even
> if I don't explicitly put myself. What is the known cure for this issue?
> This figure and similars will go onto my poster, and thesis and further on a
> paper. I would really like to know if there a way to fix this by making some
> changes on my code or matplotlibrc file.
>
> Thanks.
>
> Here is the relevant sections of my rc file:
>
> ### FONT
> #
> # font properties used by text.Text. See
> # http://matplotlib.sourceforge.net/matplotlib.font_manager.html for more
> # information on font properties. The 6 font properties used for font
> # matching are given below with their default values.
> #
> # The font.family property has five values: 'serif' (e.g. Times),
> # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery),
> # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of
> # these font families has a default list of font names in decreasing
> # order of priority associated with them.
> #
> # The font.style property has three values: normal (or roman), italic
> # or oblique. The oblique style will be used for italic, if it is not
> # present.
> #
> # The font.variant property has two values: normal or small-caps. For
> # TrueType fonts, which are scalable fonts, small-caps is equivalent
> # to using a font size of 'smaller', or about 83% of the current font
> # size.
> #
> # The font.weight property has effectively 13 values: normal, bold,
> # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as
> # 400, and bold is 700. bolder and lighter are relative values with
> # respect to the current weight.
> #
> # The font.stretch property has 11 values: ultra-condensed,
> # extra-condensed, condensed, semi-condensed, normal, semi-expanded,
> # expanded, extra-expanded, ultra-expanded, wider, and narrower. This
> # property is not currently implemented.
> #
> # The font.size property is the default font size for text, given in pts.
> # 12pt is the standard value.
> #
> #font.family : sans-serif
> #font.style : normal
> #font.variant : normal
> #font.weight : medium
> #font.stretch : normal
> # note that font.size controls default text sizes. To configure
> # special text sizes tick labels, axes, labels, title, etc, see the rc
> # settings for axes and ticks. Special text sizes can be defined
> # relative to font.size, using the following values: xx-small, x-small,
> # small, medium, large, x-large, xx-large, larger, or smaller
> #font.size : 12.0
> #font.serif : Bitstream Vera Serif, New Century Schoolbook,
> Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L,
> Times New Roman, Times, Palatino, Charter, serif
> #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva,
> Lucid, Arial, Helvetica, Avant Garde, sans-serif
> #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand,
> cursive
> #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western,
> fantasy
> #font.monospace : Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono
> L, Courier New, Courier, Fixed, Terminal, monospace
>
> ### TEXT
> # text properties used by text.Text. See
> # http://matplotlib.sourceforge.net/matplotlib.text.html for more
> # information on text properties
>
> #text.color : black
>
> ### LaTeX customizations. See
> http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex
> text.usetex : False # use latex for all text handling. The
> following fonts
> # are supported through the usual rc
> parameter settings:
> # new century schoolbook, bookman, times,
> palatino,
> # zapf chancery, charter, serif, sans-serif,
> helvetica,
> # avant garde, courier, monospace, computer
> modern roman,
> # computer modern sans serif, computer modern
> typewriter
> # If another font is desired which can loaded
> using the
> # LaTeX \usepackage command, please inquire
> at the
> # matplotlib mailing list
> #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for
> handling
> # unicode strings.
> #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX
> FAILURES
> # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT
> ASK FOR HELP
> # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT
> IT TO.
> # preamble is a comma separated list of LaTeX
> statements
> # that are included in the LaTeX document
> preamble.
> # An example:
> # text.latex.preamble :
> \usepackage{bm},\usepackage{euler}
> # The following packages are always loaded with
> usetex, so
> # beware of package collisions: color,
> geometry, graphicx,
> # type1cm, textcomp. Adobe Postscript (PSSNFS)
> font packages
> # may also be loaded, depending on your font
> settings
>
> #text.dvipnghack : None # some versions of dvipng don't handle alpha
> # channel properly. Use True to correct
> # and flush ~/.matplotlib/tex.cache
> # before testing and False to force
> # correction off. None will try and
> # guess based on your dvipng version
>
> #text.markup : 'plain' # Affects how text, such as titles and
> labels, are
> # interpreted by default.
> # 'plain': As plain, unformatted text
> # 'tex': As TeX-like text. Text between $'s will be
> # formatted as a TeX math expression.
> # This setting has no effect when text.usetex is True.
> # In that case, all text will be sent to TeX for
> # processing.
>
> # The following settings allow you to select the fonts in math mode.
> # They map from a TeX font name to a fontconfig font pattern.
> # These settings are only used if mathtext.fontset is 'custom'.
> # Note that this "custom" mode is unsupported and may go away in the
> # future.
> mathtext.default : regular
> #mathtext.cal : cursive
> #mathtext.rm : serif
> #mathtext.tt : monospace
> #mathtext.it : serif:italic
> #mathtext.bf : serif:bold
> #mathtext.sf : sans
> #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix',
> # 'stixsans' or 'custom'
> #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 custom math fonts.
>
>
>
> --
> Gökhan
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!http://p.sf.net/sfu/devconference
>
>
> _______________________________________________
> Matplotlib-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Gökhan
|
|
From: Werner F. B. <wer...@fr...> - 2009-10-23 17:36:49
|
Hi Stan, Stan West wrote: >> From: Werner F. Bruhin [mailto:wer...@fr...] >> Sent: Friday, October 23, 2009 07:31 >> >> I am just installing Windows 7 Pro and I am running into a >> problem with matplotlib. >> >> When running e.g. barchart_demo.py I get an error that it can >> not find msvcp71.dll (the dll is in C:\Python25) and I see >> the following exception. >> >> Traceback (most recent call last): >> > [...] > >> File >> "C:\Python25\Lib\site-packages\matplotlib\transforms.py", >> line 34, in <module> >> from matplotlib._path import affine_transform >> ImportError: DLL load failed: Le module spcifi est introuvable. >> > [...] > > Hi, Werner. I've been running the release candidate of Windows 7 and haven't > encountered that issue. Same here, I had no problem with the RC, but frankly did very little work with it. > My Python installation is that of Python(x,y) 2.1.17, > which includes the same version of Python as yours, and I'm using a build of > matplotlib from SVN, although I previously used version 0.99.0 without DLL > trouble. > > On my machine, I found msvcp71.dll in several directories under > C:\Python25\Lib\site-packages (including site-packages\wx-2.8-msw-unicode\wx), > in C:\Windows\System32, and in several locations under C:\Program Files, but > not in C:\Python25. There is a similarly-named msvcr71.dll in C:\Python25. > I have both "p" and "r" of msvcX71.dll. > I'm wondering whether and how msvcp71.dll is related to the traceback to the > _path module, because the _path module comprises a .pyd (~= .dll) file. You > might start Python, enter "from matplotlib._path import affine_transform", and > see whether the import is successful. > No idea, I see it when I try to run barchart_demo.py (MPL example) which uses pyplot. I get this error: Free translation: can't start program as MSVCP71.dll is missing. If I run Process Monitor from SysInternals I see the following (partial info): 19:22:17,5153511 python.exe 4884 CloseFile C:\Python25\Lib\site-packages\matplotlib SUCCESS 19:22:17,5155160 python.exe 4884 QueryOpen C:\Python25\Lib\site-packages\matplotlib\_path.pyd FAST IO DISALLOWED 19:22:17,5156277 python.exe 4884 CreateFile C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened 19:22:17,5156601 python.exe 4884 QueryBasicInformationFile C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS CreationTime: 21/09/2009 12:48:34, LastAccessTime: 21/09/2009 12:48:34, LastWriteTime: 21/09/2009 12:48:34, ChangeTime: 23/10/2009 10:50:57, FileAttributes: A 19:22:17,5156678 python.exe 4884 CloseFile C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS 19:22:17,5158058 python.exe 4884 CreateFile C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened 19:22:17,5158421 python.exe 4884 CreateFileMapping C:\Python25\Lib\site-packages\matplotlib\_path.pyd FILE LOCKED WITH ONLY READERS SyncType: SyncTypeCreateSection, PageProtection: PAGE_EXECUTE 19:22:17,5158845 python.exe 4884 CreateFileMapping C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS SyncType: SyncTypeOther 19:22:17,5160863 python.exe 4884 Load Image C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS Image Base: 0x1d20000, Image Size: 0x25000 19:22:17,5163767 python.exe 4884 CloseFile C:\Python25\Lib\site-packages\matplotlib\_path.pyd SUCCESS 19:22:17,5165840 python.exe 4884 QueryOpen C:\Python25\Lib\site-packages\matplotlib\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5166951 python.exe 4884 CreateFile C:\Python25\Lib\site-packages\matplotlib\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 19:22:17,5168595 python.exe 4884 QueryOpen C:\Windows\System32\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5169728 python.exe 4884 CreateFile C:\Windows\System32\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 19:22:17,5171587 python.exe 4884 QueryOpen C:\Windows\system\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5172995 python.exe 4884 CreateFile C:\Windows\system\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 19:22:17,5174656 python.exe 4884 QueryOpen C:\Windows\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5175761 python.exe 4884 CreateFile C:\Windows\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 19:22:17,5176883 python.exe 4884 QueryOpen D:\Dev\aaTests\matplotlib\MSVCP71.dll NAME NOT FOUND 19:22:17,5178230 python.exe 4884 QueryOpen C:\Windows\System32\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5179346 python.exe 4884 CreateFile C:\Windows\System32\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 19:22:17,5180831 python.exe 4884 QueryOpen C:\Windows\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5181926 python.exe 4884 CreateFile C:\Windows\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 19:22:17,5183388 python.exe 4884 QueryOpen C:\Windows\System32\wbem\MSVCP71.dll FAST IO DISALLOWED 19:22:17,5184455 python.exe 4884 CreateFile C:\Windows\System32\wbem\MSVCP71.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a As you can see it looks just about anywhere for MSVCP71.dll but not in c:\Python25. If I change the path (i.e. change the start in folder for the short cut which starts Boa - which I use in turn to run the script) the script runs but no output nor no errors are shown. Just tried to run the barchart_demo.py in Python Shell (idle) and I see the same exception as I see in Boa. > Are you able to run other matplotlib examples? Can you open a figure window? > What backend are you using, and does the problem occur with other matplotlib > backends, both GUI and non-GUI? > If I do this import in the shell: import matplotlib.pyplot as plt I get an error window "Unhandled exception" which allows to Abort, Retry, Ignore. It does not provide any useful information and I can't find any log file either. I normally use the "WXAgg" backend, if I run a small sample using this I get the window error that python.exe has stopped working - again without any exception or log file, only option is "close the program", I let it try and find a solution on the web (instead of cancel it) but without anything. I can run wxPython applications without problem, i.e. the IDE Boa or my own shareware as long as the matplotlib code is not been executed, if I try to bring up the frame with it then I get the python.exe has stopped error or it just hangs. Searching on the web I found this thread which is similar but it is with Python 2.6. http://www.nabble.com/matplotlib._path-failed-on-windows-build-for-Python-2.6-td22963286.html I might try and do a Py 2.6.3 install and see if I get this to work - don't really want to move to 2.6 yet. If I can provide anything else which might help to find what is happening, please do not hesitate to ask (only thing I can't do is compile it here as I don't know C++ at all. Werner |
|
From: Jae-Joon L. <lee...@gm...> - 2009-10-23 16:37:00
|
I think you misunderstood what I meant by proxy artist (I'm not sure if this is a right choice of the word, as a matter of fact). Again, PolyCollection instance that is returned by fill_between is not supported by legend. Therefore, you have to use other kind of artist (which I call proxy artist) that is supported. The example I linked just show how to use Rectangle as a proxy. -JJ On Thu, Oct 22, 2009 at 4:18 PM, Mike Anderson <mba...@wi...> wrote: >> If you want to have a legend for PolyCollection, you may use a proxy >> artist. >> >> >> http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist >> > > Thanks for the link! Although, it seems that legend does not support > PolyCollection at all: > > "Remember that some pyplot commands return artist not supported by legend, > e.g., fill_between() returns PolyCollection that is not supported." > > so that even trying to use a proxy artist results in an error (shown at > bottom), with the code here: > ------------------------------ > listOfThingsPlotted = [] > listOfLegendLabels = [] > for column in sorted(yValues): > temp = ax.fill_between(xValues, yValues[column], label=column) > listOfThingsPlotted.append(temp) > listOfLegendLabels.append(column) > > legend = > plt.legend(listOfThingsPlotted,listOfLegendLabels,bbox_to_anchor=(1.25, 1), > shadow=True, fancybox=True) > ------------------------------ > > > > Error: > ------------------------------ > Traceback (most recent call last): > File "/cms/cmsprod/bin/prodJobMonitorPlots_matplotlib.py", line 117, in > <module> > plotStackedJobsVsTime(inputFile, outputFile, outputTitle) > File "/cms/cmsprod/bin/prodJobMonitorPlots_matplotlib.py", line 93, in > plotStackedJobsVsTime > legend = > plt.legend(listOfThingsPlotted,listOfLegendLabels,bbox_to_anchor=(1.25, 1), > shadow=True, fancybox=True) # Make legend > File > "/afs/hep.wisc.edu/cms/sw/python/x86/2.5.4/lib/python2.5/site-packages/matplotlib-0.99.1.1_r0-py2.5-linux-i686.egg/matplotlib/pyplot.py", > line 2437, in legend > ret = gca().legend(*args, **kwargs) > File > "/afs/hep.wisc.edu/cms/sw/python/x86/2.5.4/lib/python2.5/site-packages/matplotlib-0.99.1.1_r0-py2.5-linux-i686.egg/matplotlib/axes.py", > line 4044, in legend > self.legend_ = mlegend.Legend(self, handles, labels, **kwargs) > File > "/afs/hep.wisc.edu/cms/sw/python/x86/2.5.4/lib/python2.5/site-packages/matplotlib-0.99.1.1_r0-py2.5-linux-i686.egg/matplotlib/legend.py", > line 304, in __init__ > self._init_legend_box(handles, labels) > File > "/afs/hep.wisc.edu/cms/sw/python/x86/2.5.4/lib/python2.5/site-packages/matplotlib-0.99.1.1_r0-py2.5-linux-i686.egg/matplotlib/legend.py", > line 582, in _init_legend_box > handlebox.add_artist(handle) > File > "/afs/hep.wisc.edu/cms/sw/python/x86/2.5.4/lib/python2.5/site-packages/matplotlib-0.99.1.1_r0-py2.5-linux-i686.egg/matplotlib/offsetbox.py", > line 475, in add_artist > a.set_transform(self.get_transform()) > AttributeError: 'NoneType' object has no attribute 'set_transform' > |
|
From: Andre S. <fre...@gm...> - 2009-10-23 16:31:36
|
Figured it out:
import matplotlib.mlab as mlab
import mpl_toolkits.gtktools as gtktools
formatd = dict(
x = mlab.FormatFloat(2),
y = mlab.FormatFloat(2)
)
r=mlab.csv2rec('file.csv',names=('X','Y'))
v=gtktools.rec2gtk(r,formatd=formatd)
for c in v.treeview.get_columns():
c.set_alignment(0.5)
view.show()
Andre
|
|
From: Stan W. <sta...@nr...> - 2009-10-23 16:23:56
|
> From: Werner F. Bruhin [mailto:wer...@fr...] > Sent: Friday, October 23, 2009 07:31 > > I am just installing Windows 7 Pro and I am running into a > problem with matplotlib. > > When running e.g. barchart_demo.py I get an error that it can > not find msvcp71.dll (the dll is in C:\Python25) and I see > the following exception. > > Traceback (most recent call last): [...] > File > "C:\Python25\Lib\site-packages\matplotlib\transforms.py", > line 34, in <module> > from matplotlib._path import affine_transform > ImportError: DLL load failed: Le module spcifi est introuvable. [...] Hi, Werner. I've been running the release candidate of Windows 7 and haven't encountered that issue. My Python installation is that of Python(x,y) 2.1.17, which includes the same version of Python as yours, and I'm using a build of matplotlib from SVN, although I previously used version 0.99.0 without DLL trouble. On my machine, I found msvcp71.dll in several directories under C:\Python25\Lib\site-packages (including site-packages\wx-2.8-msw-unicode\wx), in C:\Windows\System32, and in several locations under C:\Program Files, but not in C:\Python25. There is a similarly-named msvcr71.dll in C:\Python25. I'm wondering whether and how msvcp71.dll is related to the traceback to the _path module, because the _path module comprises a .pyd (~= .dll) file. You might start Python, enter "from matplotlib._path import affine_transform", and see whether the import is successful. Are you able to run other matplotlib examples? Can you open a figure window? What backend are you using, and does the problem occur with other matplotlib backends, both GUI and non-GUI? |
|
From: Michael D. <md...@st...> - 2009-10-23 14:57:26
|
It's a bug without an easy solution. Realistically, we probably need to
make two passes with the mathtext parser to determine spacing.
A workaround is to use the \hspace command:
r"[#/$cm^3\hspace{-0.3}$]"
Mike
On 10/23/2009 09:44 AM, Gökhan Sever wrote:
> Hello,
>
> Not that I like asking the same question again and again, but I just
> couldn't find a way to fix one annoyance on my figures when I use
> mathtex formatted labels. Here is one example figure:
> http://img14.imageshack.us/img14/4443/mathtex.png
>
> # Set the label
> host.set_ylabel(r"DMT CCN Concentration [#/$cm^3$]")
>
> On the y-label, I always get an extra space after the formatted text
> even if I don't explicitly put myself. What is the known cure for this
> issue? This figure and similars will go onto my poster, and thesis and
> further on a paper. I would really like to know if there a way to fix
> this by making some changes on my code or matplotlibrc file.
>
> Thanks.
>
> Here is the relevant sections of my rc file:
>
> ### FONT
> #
> # font properties used by text.Text. See
> # http://matplotlib.sourceforge.net/matplotlib.font_manager.html for more
> # information on font properties. The 6 font properties used for font
> # matching are given below with their default values.
> #
> # The font.family property has five values: 'serif' (e.g. Times),
> # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery),
> # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of
> # these font families has a default list of font names in decreasing
> # order of priority associated with them.
> #
> # The font.style property has three values: normal (or roman), italic
> # or oblique. The oblique style will be used for italic, if it is not
> # present.
> #
> # The font.variant property has two values: normal or small-caps. For
> # TrueType fonts, which are scalable fonts, small-caps is equivalent
> # to using a font size of 'smaller', or about 83% of the current font
> # size.
> #
> # The font.weight property has effectively 13 values: normal, bold,
> # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as
> # 400, and bold is 700. bolder and lighter are relative values with
> # respect to the current weight.
> #
> # The font.stretch property has 11 values: ultra-condensed,
> # extra-condensed, condensed, semi-condensed, normal, semi-expanded,
> # expanded, extra-expanded, ultra-expanded, wider, and narrower. This
> # property is not currently implemented.
> #
> # The font.size property is the default font size for text, given in pts.
> # 12pt is the standard value.
> #
> #font.family : sans-serif
> #font.style : normal
> #font.variant : normal
> #font.weight : medium
> #font.stretch : normal
> # note that font.size controls default text sizes. To configure
> # special text sizes tick labels, axes, labels, title, etc, see the rc
> # settings for axes and ticks. Special text sizes can be defined
> # relative to font.size, using the following values: xx-small, x-small,
> # small, medium, large, x-large, xx-large, larger, or smaller
> #font.size : 12.0
> #font.serif : Bitstream Vera Serif, New Century Schoolbook,
> Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9
> L, Times New Roman, Times, Palatino, Charter, serif
> #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana,
> Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
> #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand,
> cursive
> #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact,
> Western, fantasy
> #font.monospace : Bitstream Vera Sans Mono, Andale Mono, Nimbus
> Mono L, Courier New, Courier, Fixed, Terminal, monospace
>
> ### TEXT
> # text properties used by text.Text. See
> # http://matplotlib.sourceforge.net/matplotlib.text.html for more
> # information on text properties
>
> #text.color : black
>
> ### LaTeX customizations. See
> http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex
> text.usetex : False # use latex for all text handling. The
> following fonts
> # are supported through the usual rc
> parameter settings:
> # new century schoolbook, bookman,
> times, palatino,
> # zapf chancery, charter, serif,
> sans-serif, helvetica,
> # avant garde, courier, monospace,
> computer modern roman,
> # computer modern sans serif, computer
> modern typewriter
> # If another font is desired which can
> loaded using the
> # LaTeX \usepackage command, please
> inquire at the
> # matplotlib mailing list
> #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages
> for handling
> # unicode strings.
> #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO
> LATEX FAILURES
> # AND IS THEREFORE UNSUPPORTED. PLEASE DO
> NOT ASK FOR HELP
> # IF THIS FEATURE DOES NOT DO WHAT YOU
> EXPECT IT TO.
> # preamble is a comma separated list of
> LaTeX statements
> # that are included in the LaTeX document
> preamble.
> # An example:
> # text.latex.preamble :
> \usepackage{bm},\usepackage{euler}
> # The following packages are always loaded
> with usetex, so
> # beware of package collisions: color,
> geometry, graphicx,
> # type1cm, textcomp. Adobe Postscript
> (PSSNFS) font packages
> # may also be loaded, depending on your
> font settings
>
> #text.dvipnghack : None # some versions of dvipng don't handle alpha
> # channel properly. Use True to correct
> # and flush ~/.matplotlib/tex.cache
> # before testing and False to force
> # correction off. None will try and
> # guess based on your dvipng version
>
> #text.markup : 'plain' # Affects how text, such as titles and
> labels, are
> # interpreted by default.
> # 'plain': As plain, unformatted text
> # 'tex': As TeX-like text. Text between $'s will be
> # formatted as a TeX math expression.
> # This setting has no effect when text.usetex is True.
> # In that case, all text will be sent to TeX for
> # processing.
>
> # The following settings allow you to select the fonts in math mode.
> # They map from a TeX font name to a fontconfig font pattern.
> # These settings are only used if mathtext.fontset is 'custom'.
> # Note that this "custom" mode is unsupported and may go away in the
> # future.
> mathtext.default : regular
> #mathtext.cal : cursive
> #mathtext.rm : serif
> #mathtext.tt <http://mathtext.tt> : monospace
> #mathtext.it <http://mathtext.it> : serif:italic
> #mathtext.bf <http://mathtext.bf> : serif:bold
> #mathtext.sf : sans
> #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix',
> # 'stixsans' or 'custom'
> #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 custom math fonts.
>
>
>
> --
> Gökhan
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Gökhan S. <gok...@gm...> - 2009-10-23 13:44:29
|
Hello, Not that I like asking the same question again and again, but I just couldn't find a way to fix one annoyance on my figures when I use mathtex formatted labels. Here is one example figure: http://img14.imageshack.us/img14/4443/mathtex.png # Set the label host.set_ylabel(r"DMT CCN Concentration [#/$cm^3$]") On the y-label, I always get an extra space after the formatted text even if I don't explicitly put myself. What is the known cure for this issue? This figure and similars will go onto my poster, and thesis and further on a paper. I would really like to know if there a way to fix this by making some changes on my code or matplotlibrc file. Thanks. Here is the relevant sections of my rc file: ### FONT # # font properties used by text.Text. See # http://matplotlib.sourceforge.net/matplotlib.font_manager.html for more # information on font properties. The 6 font properties used for font # matching are given below with their default values. # # The font.family property has five values: 'serif' (e.g. Times), # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of # these font families has a default list of font names in decreasing # order of priority associated with them. # # The font.style property has three values: normal (or roman), italic # or oblique. The oblique style will be used for italic, if it is not # present. # # The font.variant property has two values: normal or small-caps. For # TrueType fonts, which are scalable fonts, small-caps is equivalent # to using a font size of 'smaller', or about 83% of the current font # size. # # The font.weight property has effectively 13 values: normal, bold, # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as # 400, and bold is 700. bolder and lighter are relative values with # respect to the current weight. # # The font.stretch property has 11 values: ultra-condensed, # extra-condensed, condensed, semi-condensed, normal, semi-expanded, # expanded, extra-expanded, ultra-expanded, wider, and narrower. This # property is not currently implemented. # # The font.size property is the default font size for text, given in pts. # 12pt is the standard value. # #font.family : sans-serif #font.style : normal #font.variant : normal #font.weight : medium #font.stretch : normal # note that font.size controls default text sizes. To configure # special text sizes tick labels, axes, labels, title, etc, see the rc # settings for axes and ticks. Special text sizes can be defined # relative to font.size, using the following values: xx-small, x-small, # small, medium, large, x-large, xx-large, larger, or smaller #font.size : 12.0 #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy #font.monospace : Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace ### TEXT # text properties used by text.Text. See # http://matplotlib.sourceforge.net/matplotlib.text.html for more # information on text properties #text.color : black ### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex text.usetex : False # use latex for all text handling. The following fonts # are supported through the usual rc parameter settings: # new century schoolbook, bookman, times, palatino, # zapf chancery, charter, serif, sans-serif, helvetica, # avant garde, courier, monospace, computer modern roman, # computer modern sans serif, computer modern typewriter # If another font is desired which can loaded using the # LaTeX \usepackage command, please inquire at the # matplotlib mailing list #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling # unicode strings. #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. # preamble is a comma separated list of LaTeX statements # that are included in the LaTeX document preamble. # An example: # text.latex.preamble : \usepackage{bm},\usepackage{euler} # The following packages are always loaded with usetex, so # beware of package collisions: color, geometry, graphicx, # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages # may also be loaded, depending on your font settings #text.dvipnghack : None # some versions of dvipng don't handle alpha # channel properly. Use True to correct # and flush ~/.matplotlib/tex.cache # before testing and False to force # correction off. None will try and # guess based on your dvipng version #text.markup : 'plain' # Affects how text, such as titles and labels, are # interpreted by default. # 'plain': As plain, unformatted text # 'tex': As TeX-like text. Text between $'s will be # formatted as a TeX math expression. # This setting has no effect when text.usetex is True. # In that case, all text will be sent to TeX for # processing. # The following settings allow you to select the fonts in math mode. # They map from a TeX font name to a fontconfig font pattern. # These settings are only used if mathtext.fontset is 'custom'. # Note that this "custom" mode is unsupported and may go away in the # future. mathtext.default : regular #mathtext.cal : cursive #mathtext.rm : serif #mathtext.tt : monospace #mathtext.it : serif:italic #mathtext.bf : serif:bold #mathtext.sf : sans #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix', # 'stixsans' or 'custom' #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 custom math fonts. -- Gökhan |
|
From: Werner F. B. <wer...@fr...> - 2009-10-23 11:31:29
|
I am just installing Windows 7 Pro and I am running into a problem with
matplotlib.
When running e.g. barchart_demo.py I get an error that it can not find
msvcp71.dll (the dll is in C:\Python25) and I see the following exception.
Traceback (most recent call last):
File "barchart_demo.py", line 3, in <module>
import matplotlib.pyplot as plt
File "C:\Python25\Lib\site-packages\matplotlib\pyplot.py", line 6, in
<module>
from matplotlib.figure import Figure, figaspect
File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 16, in
<module>
import artist
File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 5, in
<module>
from transforms import Bbox, IdentityTransform, TransformedBbox,
TransformedPath
File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line
34, in <module>
from matplotlib._path import affine_transform
ImportError: DLL load failed: Le module spcifi est introuvable.
Anyone seen this problem before on Win7?
BTW, I can run e.g. Boa (a wxPython based IDE). I have no problem
running my application which is wxPython based as long as I don't call
anything which uses mpl.
Version info:
Win 7 Pro
# Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)]
# wxPython 2.8.10.1 (unicode), Boa Constructor 0.6.1
matplotlib.__version__
'0.99.1'
Werner
P.S.
Installed Python for all users - will try installing for me only
|
|
From: Andre S. <fre...@gm...> - 2009-10-23 03:51:03
|
Is is possible to xalign rec2gtk columns?
I see the following line in the rec2gtk source:
-> renderer.set_property('xalign', formatter.xalign)
but can't figure out how to pass this info to the func.
thx
Andre
|