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

Showing 6 results of 6

From: Eric F. <ef...@ha...> - 2008年10月04日 23:55:07
John Hunter wrote:
> On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <ef...@ha...> wrote:
> 
>> Good answer, but there may be one exception. The Matlab function
>> description indicates that it can produce eps files with the cmyk color
>> space, which is indeed something that publishers tend to want, and
>> something that we don't do. Whether Matlab does it well, and whether
>> with some reasonable modification to the mpl ps backend we could do at
>> least as well, I don't know.
> 
> This is certainly something that would be nice to have. There was
> some recent work on agg to support different colorspaces, I think CMYK
> was among them, but it hasn't yet been contributed into the mainline
> as far as I know. It would take quite a bit of work for us to support
> a generic colorspace model, but it would be a nice feature....
John,
Is it still true that we will not be able to take advantage of any agg 
improvements because of the agg license change?
Eric
From: rocha <ber...@me...> - 2008年10月04日 23:48:12
Hi Guys,
I need to clear the Figure after the user has clicked the some button in 
PyQt, but when I try to plot the graphics again nothing appear. In 
ipython it works, but when I try it inside my application it does not 
work. What am I missing?
Inside my MplCanvas class (actually it is a QWidget - see 
embedding_in_qt4.py in matplotlib examples file - user_interface) I have 
this code:
self.fig = Figure(figsize=(self.width, self.height), dpi=dpi) 
And then in my main application I'm trying to do:
self.canvas.figure.clf()
self.canvas.draw()
self.canvas.axes.plot([1.,2.,4.])
and nothing is plotted. The Figure is totally gray. I tried to do the 
same thing in embedding_in_qt4.py example, modifying some parts, but it 
didn't work too.
Do you have any suggestions?
Thanks!
Best regards,
Bernardo M. Rocha
From: Jae-Joon L. <lee...@gm...> - 2008年10月04日 23:18:52
functions like raw_input blok the mianloop of some gui backends (e.g.,
gtk) but work fine with some other backend (although Tk is the only
backend I know of). So my guess is that you used a different backend
with 0.98.1.
I guess you have a few options.
 * try different backend (Tk) with 0.98.3
 * use ginput
 * or try a ginput-like routine that I made sometime ago which works
okay with raw_input.
 http://sourceforge.net/mailarchive/message.php?msg_id=6e8d907b0803101609s7bd8fecaj851a6ecf1ab2a316%40mail.gmail.com
IHTH,
-JJ
On Thu, Oct 2, 2008 at 5:18 PM, Zane Selvans <za...@id...> wrote:
> I have a Python module that I've written with some pylab plotting
> routines in it. One of them loops over a list of objects, generating
> some plots based on the data associated with each list member in
> turn. It's meant to be an interactive way to step through the list
> and see what the things look like.
>
> I have the loop set up to wait for user input before going on to the
> next object, using
>
> x = raw_input("press return for next fit: ")
>
> but for some reason, the plot window never updates. I've tried
> putting both draw() and show() immediately
> before the raw_input() line, and neither works. The plot only seems
> to update when I ctrl-C out of the loop, and otherwise, I just get the
> spinning beachball when I mouseover the plot.
>
> I'm using Matplotlib 0.98.3 on OS X (10.5.5) with the built-in python
> from Apple I think (2.5.1). I'm calling the plotting routine from
> ipython 0.8.3 using the -pylab option.
>
> The same script previously worked fine under Matplotlib 0.98.1
>
> Other plotting routines from the same module seem to work fine - it's
> only this plot within a loop that's giving me trouble.
>
> Any ideas?
>
> --
> Zane Selvans
> Amateur Earthling
> za...@id...
> 303/815-6866
> http://zaneselvans.org
> PGP Key: 55E0815F
>
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: <ber...@xn...> - 2008年10月04日 23:01:47
I have a problem with every matplot version since 0.90.1. One of my
installed fonts causes afm.py to bail out. I am sure I reported this
problem before without reaction. After I installed python 1.6 and a
recent numpy 0.90.1 does not work anymore so I tried the latest again,
and get the afm error again:
> python -i -c "from matplotlib import pylab"
/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/__init__.py:96: DeprecationWarning: the md5 module is deprecated; use hashlib instead
 import md5, os, re, shutil, sys, warnings
/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated
 from sets import Set
Found an unknown keyword in AFM header (was MetricsSets)
Found an unknown keyword in AFM header (was IsBaseFont)
Found an unknown keyword in AFM header (was IsCIDFont)
Found an unknown keyword in AFM header (was StartDirection)
Found an unknown keyword in AFM header (was EndDirection)
Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/pylab.py", line 206, in <module>
 from matplotlib import mpl # pulls in most modules
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/mpl.py", line 2, in <module>
 from matplotlib import axis
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/axis.py", line 9, in <module>
 import matplotlib.font_manager as font_manager
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/font_manager.py", line 1129, in <module>
 _rebuild()
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/font_manager.py", line 1120, in _rebuild
 fontManager = FontManager()
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/font_manager.py", line 910, in __init__
 self.afmdict = createFontDict(self.afmfiles, fontext='afm')
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/font_manager.py", line 521, in createFontDict
 prop = afmFontProperty(font)
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/font_manager.py", line 420, in afmFontProperty
 name = font.get_familyname()
 File "/usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/afm.py", line 440, in get_familyname
 return self._header['FamilyName']
KeyError: 'FamilyName'
>>> import pdb
>>> pdb.pm()
> /usr/local/lib/python2.6/site-packages/matplotlib-0.98.3-py2.6-linux-i686.egg/matplotlib/afm.py(440)get_familyname()
-> return self._header['FamilyName']
(Pdb) print self._header
{'Notice': 'Copyright (c) 1999 Ministry of Education, Taipei, Taiwan. All Rights Reserved.', 'Ascender': 880.0, 'FontBBox': [-123, -250, 1000, 880], 'Weight': 'Regular', 'Descender': -250.0, 'CharacterSet': 'Adobe-CNS1-0', 'IsFixedPitch': False, 'FontName': 'MOEKai-Regular', 'StartFontMetrics': 4.0999999999999996, 'CapHeight': 880.0, 'Version': '1.000', 'UnderlinePosition': -100, 'Characters': 13699, 'UnderlineThickness': 50, 'ItalicAngle': 0.0, 'StartCharMetrics': 13699}
(Pdb) 
What is there to do?
Regards
Berthold
-- 
A: Weil es die Lesbarkeit des Textes verschlechtert.
F: Warum ist TOFU so schlimm?
A: TOFU
F: Was ist das größte Ärgernis im Usenet?
From: John H. <jd...@gm...> - 2008年10月04日 17:51:42
On Tue, Sep 30, 2008 at 5:07 PM, Jae-Joon Lee <lee...@gm...> wrote:
> The problem is already well explained by Eric. And my solution is to
> interpret the legend.pad as a fraction of the textsize (pad=0.3 seems
> to work fine in my eyes). Note that this breaks the backward
> compatibility. I personally think the original behavior may have
> produced unsatisfactory results in most of the cases and keeping it as
> a default may not be a good idea. While I hope others come out with an
> elegant solution, I prefer to break the API in this case.
How about using a new kwarg and raising an exception if the old one is
passed in, with the exception pointing to the new arg? I am a little
uncomfortable silently changing the meaning of the old arg.
JDH
From: John H. <jd...@gm...> - 2008年10月04日 17:48:19
On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <ef...@ha...> wrote:
> Good answer, but there may be one exception. The Matlab function
> description indicates that it can produce eps files with the cmyk color
> space, which is indeed something that publishers tend to want, and
> something that we don't do. Whether Matlab does it well, and whether
> with some reasonable modification to the mpl ps backend we could do at
> least as well, I don't know.
This is certainly something that would be nice to have. There was
some recent work on agg to support different colorspaces, I think CMYK
was among them, but it hasn't yet been contributed into the mainline
as far as I know. It would take quite a bit of work for us to support
a generic colorspace model, but it would be a nice feature....
JDH

Showing 6 results of 6

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 によって変換されたページ (->オリジナル) /