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





Showing results of 315

<< < 1 .. 11 12 13 (Page 13 of 13)
From: Alan G I. <ala...@gm...> - 2011年01月03日 17:07:22
On 1/3/2011 11:41 AM, Keld Lundgaard wrote:
> I have found that the pdf/eps backend make my plots in a too low resolution (meaning do not uses enough points in the vector description).
"path.simplify" must be set to True in your matplotlibrc?
Alan Isaac
From: Keld L. <kel...@gm...> - 2011年01月03日 16:41:19
Dear mailing list,
I have found that the pdf/eps backend make my plots in a too low resolution
(meaning do not uses enough points in the vector description).
Is there any way to change this? (simply making the DPI higher does not
change the case)
Right now I have to save to png and then convert to pdf, which is not
elegant!
I appreciate any help
Keld
From: Ryan M. <rm...@gm...> - 2011年01月03日 16:29:59
On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale <dsd...@gm...> wrote:
> On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rm...@gm...> wrote:
>> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote:
>>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
>>> line 59, in <module>
>>>   from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
>>> ImportError: cannot import name QString
>>>
>>> Looks like this backend hasn't been ported yet.
>>
>> I remember seeing this on Gentoo and, unfortunately, never tracked it
>> down. However, it seems to me this is a problem with your PyQt4
>> install and Python 3, as QString should be found.
>
> It's not a problem with the PyQt4 installation. PyQt on python-3 uses
> PyQt's new API, which uses python strings and does not provide
> QString, QChar, and friends.
> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis
I stand corrected. I don't know what's worse, being so blatently
wrong, or having wasted a bunch of time in the past trying to "fix" a
"broken" install.
Time to don ye olde paper bag...
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Darren D. <dsd...@gm...> - 2011年01月03日 15:28:19
On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rm...@gm...> wrote:
> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote:
>> which backend should we use?
>> It does not work with pyqt4
>>
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
>> <module>
>>   from matplotlib.pylab import *
>>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
>> line 259, in <module>
>>   from matplotlib.pyplot import *
>>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py",
>> line 95, in <module>
>>   new_figure_manager, draw_if_interactive, show = pylab_setup()
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line
>> 25, in pylab_setup
>>   globals(),locals(),[backend_name])
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py",
>> line 12, in <module>
>>   from .backend_qt4 import QtCore, QtGui, FigureManagerQT,
>> FigureCanvasQT,\
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py",
>> line 16, in <module>
>>   import matplotlib.backends.qt4_editor.figureoptions as figureoptions
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py",
>> line 11, in <module>
>>   import matplotlib.backends.qt4_editor.formlayout as formlayout
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
>> line 59, in <module>
>>   from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
>> ImportError: cannot import name QString
>>
>> Looks like this backend hasn't been ported yet.
>
> I remember seeing this on Gentoo and, unfortunately, never tracked it
> down. However, it seems to me this is a problem with your PyQt4
> install and Python 3, as QString should be found.
It's not a problem with the PyQt4 installation. PyQt on python-3 uses
PyQt's new API, which uses python strings and does not provide
QString, QChar, and friends.
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis
Darren
From: Ryan M. <rm...@gm...> - 2011年01月03日 14:45:48
On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote:
> which backend should we use?
> It does not work with pyqt4
>
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
> <module>
>   from matplotlib.pylab import *
>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
> line 259, in <module>
>   from matplotlib.pyplot import *
>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py",
> line 95, in <module>
>   new_figure_manager, draw_if_interactive, show = pylab_setup()
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line
> 25, in pylab_setup
>   globals(),locals(),[backend_name])
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py",
> line 12, in <module>
>   from .backend_qt4 import QtCore, QtGui, FigureManagerQT,
> FigureCanvasQT,\
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py",
> line 16, in <module>
>   import matplotlib.backends.qt4_editor.figureoptions as figureoptions
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py",
> line 11, in <module>
>   import matplotlib.backends.qt4_editor.formlayout as formlayout
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 59, in <module>
>   from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
> ImportError: cannot import name QString
>
> Looks like this backend hasn't been ported yet.
I remember seeing this on Gentoo and, unfortunately, never tracked it
down. However, it seems to me this is a problem with your PyQt4
install and Python 3, as QString should be found.
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Jeff W. <js...@fa...> - 2011年01月03日 05:20:41
On 1/2/11 9:17 PM, Linuxer Wang wrote:
>
> Hi, Jeff
>
> Sorry for the confusion. Yes, I mean to draw the black/white border 
> (called fancy box in m_map). Drawing the maps is really easy to use, 
> thanks for your great Api. Is there plan to support the fancy border 
> feature in near future?
No, but patches are welcome.
-Jeff
>
> Thank you for replying.
>
>
> On 01/02/2011 06:09 PM, Jeff Whitaker wrote:
>> On 1/2/11 1:01 PM, Linuxer Wang wrote:
>>> This may be a question for Jeffrey Whitaker but welcome anyone's help.
>>>
>>> I used to use the m_map tool for matlab 
>>> (http://www.eos.ubc.ca/~rich/map.html 
>>> <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to 
>>> draw the same maps in matplotlib (BaseMap)? Specifically, how to 
>>> draw axes in such figures: 
>>> http://www.eos.ubc.ca/~rich/private/extblueocean.gif 
>>> <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or 
>>> http://www.eos.ubc.ca/~rich/private/exmiller.gif 
>>> <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ?
>>>
>>> Thanks a lot.
>>
>> Can you be more specific about what you need help with? Is it 
>> drawing the map itself, or drawing the lines on the map? 
>> examples/nytolondon.py shows how to draw great circles, which is 
>> similar to the extblueocean.gif example.
>>
>>
>> If you are asking how to draw that black and white border around the 
>> map, that is not supported. However, it is easy to draw labelled 
>> meridians and parallels (with the drawparallels and drawmeridians 
>> class methods). Docs are at 
>> http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, 
>> and there are lots of examples in the 'examples' directory of the 
>> source distribution.
>>
>> HTH,
>>
>> -Jeff
>>
>>
>> ------------------------------------------------------------------------------
>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
>> to consolidate database storage, standardize their database environment, and,
>> should the need arise, upgrade to a full multi-node Oracle RAC database
>> without downtime or disruption
>> http://p.sf.net/sfu/oracle-sfdevnl
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li... <mailto:Mat...@li...>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Linuxer W. <lin...@gm...> - 2011年01月03日 04:17:16
Hi, Jeff
Sorry for the confusion. Yes, I mean to draw the black/white border 
(called fancy box in m_map). Drawing the maps is really easy to use, 
thanks for your great Api. Is there plan to support the fancy border 
feature in near future?
Thank you for replying.
On 01/02/2011 06:09 PM, Jeff Whitaker wrote:
> On 1/2/11 1:01 PM, Linuxer Wang wrote:
>> This may be a question for Jeffrey Whitaker but welcome anyone's help.
>>
>> I used to use the m_map tool for matlab 
>> (http://www.eos.ubc.ca/~rich/map.html 
>> <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to 
>> draw the same maps in matplotlib (BaseMap)? Specifically, how to draw 
>> axes in such figures: 
>> http://www.eos.ubc.ca/~rich/private/extblueocean.gif 
>> <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or 
>> http://www.eos.ubc.ca/~rich/private/exmiller.gif 
>> <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ?
>>
>> Thanks a lot.
>
> Can you be more specific about what you need help with? Is it drawing 
> the map itself, or drawing the lines on the map? 
> examples/nytolondon.py shows how to draw great circles, which is 
> similar to the extblueocean.gif example.
>
>
> If you are asking how to draw that black and white border around the 
> map, that is not supported. However, it is easy to draw labelled 
> meridians and parallels (with the drawparallels and drawmeridians 
> class methods). Docs are at 
> http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, and 
> there are lots of examples in the 'examples' directory of the source 
> distribution.
>
> HTH,
>
> -Jeff
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
ayg256 wrote:
> 
> First of all, thanks to the matplotlib developers for all the great job. 
> I
> have just successfully installed matplotlib from source (r8827) in my
> macbook for python 2.7. However, I found a couple of bumps in the road
> that
> I'd like to share:
> 
> ...
> 
> Cheers,
> 
> AY
> 
Dear AY,
Thanks so much for posting your followup. I just went through building
matplotlib 1.0.0 from source on my new iMac and your directions were
invaluable. I did need to make some minor modifications to match the
peculiarities of my setup - for example I am installing it with python 2.6. 
PYC FILE ISSUES
After install and the manual copy to /Library/Python/2.6/site-packages
(which is where numpy and scipy get built on this machine), the pyc files
are pointing to /usr/local/lib still, which is something that shows up in
ipython when browsing functions, and in backtraces... apparently this is a
bug in python that got fixed in 2.7. To work around, I just remade the pyc
files. I recompiled them all with compileall.compile_dir. The copying and
pyc compilation had to be done with sudo commands since I didn't have
permissions.
FOURIER DEMO - PROBLEM AND FIX IN "lines.py"
Next I tried my wx-based gui http://wiki.wxpython.org/MatplotlibFourierDemo.
It raised assertions in lines.py, particularly the part where it tries to
access
 path, affine =
self._transformed_path.get_transformed_path_and_affine()
(line 286) 
since self._transformed_path is None.
When I fixed that by inserting
 if self._transformed_path is None:
 self._transform_path()
then it ran into problems with
 ind += self.ind_offset
since ind_offset didn't exist.
I fixed that by adding 
 if hasattr(self, 'ind_offset'): 
Is modifying lines.py the only way to fix this, or should I do something
else in the fourier demo?
Best regards, Happy New Year to all, etc, 
 - Tom K.
-- 
View this message in context: http://old.nabble.com/caveats-found-installing-matplotlib-from-svn-source-on-python-2.7-in-mac-os-x-Leopard-tp30478244p30575604.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Jeff W. <js...@fa...> - 2011年01月03日 02:23:33
On 1/2/11 1:01 PM, Linuxer Wang wrote:
> This may be a question for Jeffrey Whitaker but welcome anyone's help.
>
> I used to use the m_map tool for matlab 
> (http://www.eos.ubc.ca/~rich/map.html 
> <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to 
> draw the same maps in matplotlib (BaseMap)? Specifically, how to draw 
> axes in such figures: 
> http://www.eos.ubc.ca/~rich/private/extblueocean.gif 
> <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or 
> http://www.eos.ubc.ca/~rich/private/exmiller.gif 
> <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ?
>
> Thanks a lot.
Can you be more specific about what you need help with? Is it drawing 
the map itself, or drawing the lines on the map? examples/nytolondon.py 
shows how to draw great circles, which is similar to the 
extblueocean.gif example.
If you are asking how to draw that black and white border around the 
map, that is not supported. However, it is easy to draw labelled 
meridians and parallels (with the drawparallels and drawmeridians class 
methods). Docs are at 
http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, and 
there are lots of examples in the 'examples' directory of the source 
distribution.
HTH,
-Jeff
From: Linuxer W. <lin...@gm...> - 2011年01月02日 20:01:57
This may be a question for Jeffrey Whitaker but welcome anyone's help.
I used to use the m_map tool for matlab 
(http://www.eos.ubc.ca/~rich/map.html 
<http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to draw 
the same maps in matplotlib (BaseMap)? Specifically, how to draw axes in 
such figures: http://www.eos.ubc.ca/~rich/private/extblueocean.gif or 
http://www.eos.ubc.ca/~rich/private/exmiller.gif ?
Thanks a lot.
From: Zhong W. <zhwang@u.washington.edu> - 2011年01月02日 19:59:43
This may be a question for Jeffrey Whitaker but welcome anyone's help.
I used to use the m_map tool for matlab 
(http://www.eos.ubc.ca/~rich/map.html 
<http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to draw 
the same maps in matplotlib (BaseMap)? Specifically, how to draw axes in 
such figures: http://www.eos.ubc.ca/~rich/private/extblueocean.gif or 
http://www.eos.ubc.ca/~rich/private/exmiller.gif ?
Thanks a lot.
From: Xavier G. <xav...@gm...> - 2011年01月02日 18:24:15
which backend should we use?
It does not work with pyqt4
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in 
<module>
 from matplotlib.pylab import *
 File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py", 
line 259, in <module>
 from matplotlib.pyplot import *
 File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py", 
line 95, in <module>
 new_figure_manager, draw_if_interactive, show = pylab_setup()
 File 
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line 
25, in pylab_setup
 globals(),locals(),[backend_name])
 File 
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py", 
line 12, in <module>
 from .backend_qt4 import QtCore, QtGui, FigureManagerQT, 
FigureCanvasQT,\
 File 
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py", 
line 16, in <module>
 import matplotlib.backends.qt4_editor.figureoptions as figureoptions
 File 
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py", 
line 11, in <module>
 import matplotlib.backends.qt4_editor.formlayout as formlayout
 File 
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py", 
line 59, in <module>
 from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString
Looks like this backend hasn't been ported yet.
Xavier
> Thank you for your fast reply and suggestion. I downloaded the GNU tar
> ball and looked at it. Unfortunately due to my own limitations, I need
> a win32 installer.
> I'll have to bide my time I guess.
>
> RDY
>
> -----Original Message-----
> From: Christoph Gohlke [mailto:cg...@uc...]
> Sent: Thursday, December 23, 2010 2:47 PM
> To: mat...@li...
> Subject: Re: [Matplotlib-users] Python 3
>
>
>
> On 12/23/2010 1:01 PM, Robert Young wrote:
>> Hi, I have used Matplotlib extensively now for 2 years with python
> 2.x.
>> I recently needed to move to python 3.1 which was greatly facilitated
> by
>> numpy and scipy being ported to python 3. I was lucky in that all I
> have
>> to change is many print statements. All on a Windows OS.
>>
>> But my progress is severely limited by having no port of Matplotlib to
>> python 3. I am definitely a user so have contributed twice to
> Matplotlib
>> development.
>>
>> Plea: If the stars align properly, I would be so grateful for a port
> of
>> matplotlib to python 3.
>>
>> Thanks for hearing me.
>>
> Did you try the py3k branch at
> <http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/>
> ? It
> does work for simple plots.
>
> --
> Christoph
>
> ------------------------------------------------------------------------
> ------
> Learn how Oracle Real Application Clusters (RAC) One Node allows
> customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Friedrich R. <fri...@gm...> - 2011年01月02日 13:24:03
2010年12月13日 Steve Nicholes <ema...@ya...>:
> Hello,
>
> I recently upgraded matplotlib v0.98.5 to 1.0. Now when I try to plot data using latex for the figure labels my scripts fail. I have not changed my code so I'm not sure where the error is coming from. I have tried reinstalling and updating MikTex and Ghostscript but that has not helped (I'm running Windows 7 and Python 2.6). The actual error I get is below. Any thoughts?
It tries to find some .tfm font file from LaTeX via ``kpsewhich
<filename>``. The result of this might be '' (the empty string),
indicating that there was no output on stdout, meaning it couldn't run
``kpsewhich <filename>``. ``kpsewhich`` is used to find files on most
TeX distributions, but:
dviread.py:812:
 I hear MikTeX (a popular distribution on Windows)
 doesn't use kpathsea, so what do we do? (TODO)
Can you please try to find an executable ``kpsewhich`` or look for
some "kpathsea" keyword in the MikTeX docs, to find out if MikTeX uses
the kpathsea library to find files.
You said, it worked before, so maybe you have some PATH problem? Did
you change anything else besides the mpl version?
Friedrich
> Traceback (most recent call last):
>  File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py", line 215, in resizeEvent
>   self.draw()
>  File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 130, in draw
>   FigureCanvasAgg.draw(self)
>  File "C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py", line 394, in draw
>   self.figure.draw(self.renderer)
>  File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
>   draw(artist, renderer, *args, **kwargs)
>  File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 798, in draw
>   func(*args)
>  File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
>   draw(artist, renderer, *args, **kwargs)
>  File "C:\Python26\lib\site-packages\matplotlib\axes.py", line 1934, in draw
>   a.draw(renderer)
>  File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
>   draw(artist, renderer, *args, **kwargs)
>  File "C:\Python26\lib\site-packages\matplotlib\axis.py", line 1017, in draw
>   tick.draw(renderer)
>  File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
>   draw(artist, renderer, *args, **kwargs)
>  File "C:\Python26\lib\site-packages\matplotlib\axis.py", line 236, in draw
>   self.label2.draw(renderer)
>  File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
>   draw(artist, renderer, *args, **kwargs)
>  File "C:\Python26\lib\site-packages\matplotlib\text.py", line 524, in draw
>   bbox, info = self._get_layout(renderer)
>  File "C:\Python26\lib\site-packages\matplotlib\text.py", line 307, in _get_layout
>   ismath=ismath)
>  File "C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py", line 171, in get_text_width_height_descent
>   renderer=self)
>  File "C:\Python26\lib\site-packages\matplotlib\texmanager.py", line 608, in get_text_width_height_descent
>   page = iter(dvi).next()
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 65, in __iter__
>   have_page = self._read()
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 121, in _read
>   self._dispatch(byte)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 209, in _dispatch
>   self._fnt_def(k, c, s, d, a, l, n)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 370, in _fnt_def
>   vf = _vffile(n[-l:])
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 871, in _vffile
>   return _fontfile(texname, Vf, '.vf', _vfcache)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 860, in _fontfile
>   result = class_(filename)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 479, in __init__
>   self._read()
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 121, in _read
>   self._dispatch(byte)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 508, in _dispatch
>   Dvi._dispatch(self, byte)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 209, in _dispatch
>   self._fnt_def(k, c, s, d, a, l, n)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 546, in _fnt_def
>   Dvi._fnt_def(self, k, *args)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 372, in _fnt_def
>   self.fonts[k] = DviFont(scale=s, tfm=tfm, texname=n, vf=vf)
>  File "C:\Python26\lib\site-packages\matplotlib\dviread.py", line 418, in __init__
>   nchars = max(tfm.width.iterkeys()) + 1
> AttributeError: 'NoneType' object has no attribute 'width'
From: OKB (n. okblacke) <bre...@br...> - 2011年01月01日 22:30:21
 	I noticed that the boxplot function incorrectly calculates the 
location of the median line in each box. As a simple example, plotting 
the dataset [1, 2, 3, 4] incorrectly plots the median line at 3.
 	It also seems that the quartile calculations for the box are a 
little peculiar. I have seen some discussion in old mailing list 
postings about mlab.prctile and its ways of calculating percentiles, 
which are different than those of some other software.
 	I'm aware that there is legitimate disagreement about the "best" 
way to calculate the quartiles. However, it seems to me that mlab's way 
is still not any of these possibly-correct ways, because it uses int() 
or nparray.astype(int) to coerce the percentile result to an integer 
index. This TRUNCATES the floating-point result. No accepted quantile-
calculating method that I'm aware of does this; they all ROUND instead 
of truncating (if they want to coerce to an integer index at all, in 
order to produce a quantile value that is an element of the data set), 
or in some cases they round uniformly up for the lower quartile and 
down for the upper. You can see a summary of different methods at 
http://www.amstat.org/publications/jse/v14n3/langford.html ; the method 
used by mlab does not appear to agree with any of these.
 	I would suggest that mlab.prctile be fixed to conform to some one 
or other of these methods, rather than adding to the proliferation of 
approaches to quantile-calculation. Is there any motivation for always 
truncating to integer (other that "it's quicker to type" :-)?
 	Also, regardless of these quartile issues, there is, as far as I'm 
aware, no one who denies that the median of a (sorted) data set with an 
even number of values is the mean of the middle two values. Since numpy 
is already a dependency for matplotlib, boxplot shouldn't use 
mlab.prctile at all to decide where to plot the median line -- just use 
numpy.median.
Thanks,
-- 
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
	--author unknown
On Fri, Dec 31, 2010 at 11:42 AM, Benjamin Root <ben...@ou...> wrote:
>
> On Sun, Dec 19, 2010 at 3:34 AM, Sylvain Munaut <24...@gm...> wrote:
>>
>> Hi,
>>
>> I was wondering if you ever found a solution to this problem ?
>>
>> I have the exact same issue with GTK (Agg or cairo) and WX backends
>> ... I'm also under gentoo using ipython-0.10.1 and matplotlib-1.0.0
>> I don't have the warnings you have but same behavior, I have to call
>> show (if I don't a blank 'frozen' window is all that appears) but then
>> the ipython doesn't have control anymore.
>>
>> Cheers,
>>
>>  Sylvain
>>
>
> It is very possible that this problem was fixed shortly after the 1.0.0 release. Another possibility is that ipython might be causing an issue where it is loading some older matplotlib codes before the rest of matplotlib 1.0.0 is loaded (I have seen this happen once).
>
> You can test for this theory by seeing if you have the same problem when using the regular python shell. If not, then it is likely to be a problem with ipython. If you do have the same problem in regular python, then the problem is with matplotlib and you will need to build the latest from svn.
>
> Ben Root
>
If the issue was GTK only - it is a known problem with IPython 0.10.1
for which the fix is waiting to be merged here:
https://github.com/ipython/ipython/issues/issue/237
but if you think the WX backend is also affected - it might just be
that you're not starting ipython with the -pylab flag to get the
threading to work without blocking. Can you try starting "ipython
-pylab -gthread" and "ipython -pylab -wthread" to see if that fixes
the issue? Make sure that you change the backend accordingly - and use
plt.get_backend() to ensure the appropriate one is being used.
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
6 messages has been excluded from this view by a project administrator.

Showing results of 315

<< < 1 .. 11 12 13 (Page 13 of 13)
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 によって変換されたページ (->オリジナル) /