SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(5)
2
(6)
3
(4)
4
(9)
5
(7)
6
(16)
7
(5)
8
(10)
9
(2)
10
(3)
11
(9)
12
(1)
13
(13)
14
(1)
15
(13)
16
(5)
17
(3)
18
(14)
19
(17)
20
(14)
21
(15)
22
(6)
23
(6)
24
25
(4)
26
(4)
27
(4)
28
(11)
29
(7)
30
(1)

Showing 7 results of 7

From: Sean L. <ody...@gm...> - 2011年04月05日 23:56:32
Hello all,
I'm trying to specify a range of numbers in a particular legend using LaTeX. In order to do so I'm feeding it the string: r"80ドル--120". The output should be have an endash, "80–120", but I'm getting "80--120". This is a standard feature of LaTeX ( http://en.wikibooks.org/wiki/LaTeX/Formatting ), so I don't know what's going on. 
Thanks,
Sean Lake
uname -a
Darwin dynamic_051.astro.ucla.edu 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504937~1/RELEASE_I386 i386
(You also have a bug on this web page: http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#reporting-problems , The line python -c `import matplotlib; print matplotlib.__version__` should not have back-ticks)
/sw/bin/python2.6 -c 'import matplotlib; print matplotlib.__version__'
1.0.0
Got matplotlib via fink:
fink --version
Package manager version: 0.29.21
Distribution version: selfupdate-rsync Sun Apr 3 02:28:24 2011, 10.6, x86_64
Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
matplotlibrc file:
text.usetex : True
#backend : MacOSX
backend : GTKAgg
#backend : ps
#backend : pdf
From: Eli B. <eb...@gm...> - 2011年04月05日 19:45:34
Thanks,
label=r'$\bf{label1}$'
worked.
Regards,
Eli
On Tue, Apr 5, 2011 at 10:14 PM, Darren Dale <dsd...@gm...> wrote:
> On Tue, Apr 5, 2011 at 2:51 PM, Eli Brosh <eb...@gm...> wrote:
> > Hello,
> >
> > I am using pylab with the rc parameter
> > rcParams['text.usetex']=True
> >
> > Now, I would like to make a legend with bold fonts.
> > So, I tried two options:
> >
> > 1)
> > from matplotlib.font_manager import fontManager, FontProperties
> > font= FontProperties(weight='bold',size=26)
> > plot([1,2,3],[1,2,3],'k',label='label1')
> > legend(loc='lower left', prop=font)
> >
> >
> > 2) After the legend(loc='lower left', prop=font) statement, I put:
> > legend1=gca().get_legend()
> > ltext = legend1.get_texts() # all the text.Text instance in the legend
> > setp(ltext, fontweight='bold') # the legend text fontsize
> >
> >
> >
> > Neither of these options changed the legend font weight to bold.
> > How can this be done?
> > How to change the legend font weight when rcParams['text.usetex']=True ?
>
> I think you may have to do something like "label=r'\textbf{label1}'".
>
From: Darren D. <dsd...@gm...> - 2011年04月05日 19:14:11
On Tue, Apr 5, 2011 at 2:51 PM, Eli Brosh <eb...@gm...> wrote:
> Hello,
>
> I am using pylab with the rc parameter
> rcParams['text.usetex']=True
>
> Now, I would like to make a legend with bold fonts.
> So, I tried two options:
>
> 1)
> from matplotlib.font_manager import fontManager, FontProperties
> font= FontProperties(weight='bold',size=26)
> plot([1,2,3],[1,2,3],'k',label='label1')
> legend(loc='lower left', prop=font)
>
>
> 2) After the legend(loc='lower left', prop=font) statement, I put:
> legend1=gca().get_legend()
> ltext = legend1.get_texts() # all the text.Text instance in the legend
> setp(ltext, fontweight='bold') # the legend text fontsize
>
>
>
> Neither of these options changed the legend font weight to bold.
> How can this be done?
> How to change the legend font weight when rcParams['text.usetex']=True ?
I think you may have to do something like "label=r'\textbf{label1}'".
From: Eli B. <eb...@gm...> - 2011年04月05日 18:51:12
Hello,
I am using pylab with the rc parameter
rcParams['text.usetex']=True
Now, I would like to make a legend with bold fonts.
So, I tried two options:
1)
from matplotlib.font_manager import fontManager, FontProperties
font= FontProperties(weight='bold',size=26)
plot([1,2,3],[1,2,3],'k',label='label1')
legend(loc='lower left', prop=font)
2) After the legend(loc='lower left', prop=font) statement, I put:
legend1=gca().get_legend()
ltext = legend1.get_texts() # all the text.Text instance in the legend
setp(ltext, fontweight='bold') # the legend text fontsize
Neither of these options changed the legend font weight to bold.
How can this be done?
How to change the legend font weight when rcParams['text.usetex']=True ?
Thanks,
Eli
From: Alejandro W. <ale...@gm...> - 2011年04月05日 15:59:53
On Mon, Apr 4, 2011 at 6:14 PM, Drew Frank <aj...@ic...> wrote:
> This will not address your immediate problem with update_line not
> being called, but if you want to animate something over a non-blank
> background you will soon run into another issue. I posted here about
> that issue a while back:
> http://www.mail-archive.com/mat...@li.../msg19104.html
>
> To aid future web searchers, here is my final reply to that thread,
> which I accidentally sent to Benjamin Root rather than to the list:
> "The way the cookbook example is written (calling copy_from_background
> early), it will always copy a blank, white region -- even if
> non-animated elements have been plotted prior to the call. This
> caused problems for me because I wanted to animate some patches on the
> top of a non-blank background, but calling restore_from_region just
> overwrote my background with white."
>
> Drew Frank
I also needed to use Frank's approach (described in the link above) to
make my animation works. Is it possible to fix the code in the
cookbook? I tried to edit the page but I am not allowed.
Alejandro.
From: Alejandro W. <ale...@gm...> - 2011年04月05日 15:02:03
On Mon, Apr 4, 2011 at 4:46 PM, Alejandro Weinstein
<ale...@gm...> wrote:
> Any advice on how to fix the problem? Or may be this way is obsolete,
> but all the animation examples I've found so far don't consider a
> fixed background.
Adding
import matplotlib
matplotlib.use('GTKAgg')
solved the problem.
But now I get this warning:
/usr/lib/pymodules/python2.6/matplotlib/backends/backend_gtk.py:621:
DeprecationWarning: Use the new widget gtk.Tooltip
 self.tooltips = gtk.Tooltips()
I am running Ubuntu 10.04, with MPL version 0.99.1.2-3ubuntu1, in case
that matter.
Alejandro.
From: Piter P. <pse...@gm...> - 2011年04月05日 12:28:42
(sorry if this is the wrong place, I'm just trying to help)
In the documentation FAQ 
http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
the link to "antigrain" is broken.
Additionally, to whom it may concern, thanks for Matplotlib and Pylab, 
it's wonderful software and I use it nearly every day!!

Showing 7 results of 7

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /