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 4 results of 4

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'

Showing 4 results of 4

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