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






Showing 7 results of 7

From: Benjamin R. <ben...@ou...> - 2010年10月09日 17:46:52
On Sat, Oct 9, 2010 at 7:41 AM, Paul Leopardi <pau...@ii...>wrote:
> On Saturday 09 October 2010 22:58:04 Paul Leopardi wrote:
> > Hello all
> > I am seeing a problem similar to that seen by Jorge Scandaliaris.
>
> I downgraded from matplotlib 1.0.0 to matplotlib 0.99 and my original
> problem
> no longer appears:
>
> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a |
> grep matplotlib | sort
> python-matplotlib-0.99.1.1-0.pm.1.8.x86_64
> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython
> -pylab
> Your PyGtk has set_interactive(), so you can use the
> more stable single-threaded Gtk mode.
> See https://bugs.launchpad.net/ipython/+bug/270856
> Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> Welcome to pylab, a matplotlib-based Python environment.
> For more information, type 'help(pylab)'.
>
> In [1]: from mpl_toolkits.mplot3d import Axes3D
>
> In [2]: import matplotlib.pyplot as plt
>
> In [3]: fig=plt.figure()
> /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621:
> DeprecationWarning: Use the new widget gtk.Tooltip
> self.tooltips = gtk.Tooltips()
>
> In [4]: ax=Axes3D(fig)
>
> In [5]: plt.show()
>
> In [6]: quit()
> Do you really want to exit ([y]/n)? y
> Closing threads... Done.
>
> After upgrading to Matplotlib 0.99:
>
> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a |
> grep matplotlib | sort
> python-matplotlib-1.0.0-9.2.x86_64
> python-matplotlib-tk-1.0.0-9.2.x86_64
> python-matplotlib-wx-1.0.0-9.2.x86_64
>
> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython
> -pylab
> Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> Welcome to pylab, a matplotlib-based Python environment.
> For more information, type 'help(pylab)'.
>
> In [1]: from mpl_toolkits.mplot3d import Axes3D
>
> In [2]: import matplotlib.pyplot as plt
>
> In [3]: fig=plt.figure()
>
> In [4]: ax=Axes3D(fig)
>
> In [5]: plt.show()
> ^CERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (206, 0))
>
> ---------------------------------------------------------------------------
> KeyboardInterrupt Traceback (most recent call last)
>
> /home/leopardi/src/Working/Working-0.5.1/glucat/pyclical/<ipython console>
> in
> <module>()
>
> /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc in
> show()
> 72 for manager in Gcf.get_all_fig_managers():
> 73 manager.show()
> ---> 74 Tk.mainloop()
> 75
> 76 def new_figure_manager(num, *args, **kwargs):
>
> /usr/lib64/python2.6/lib-tk/Tkinter.pyc in mainloop(n)
> 323 def mainloop(n=0):
> 324 """Run the main loop of Tcl."""
> --> 325 _default_root.tk.mainloop(n)
> 326
> 327 getint = int
>
> KeyboardInterrupt:
>
> In [6]:
> In [6]: quit()
> Do you really want to exit ([y]/n)? y
>
>
I believe this was a known issue that came about from some fixes made to the
behavior of show() for the 1.0 release. It was patched shortly thereafter
and the maintenance branch was also patched. As a workaround, I believe you
can try one of the other backends or install matplotlib from source.
Does anybody know who maintains the packages for OpenSUSE? It would
probably be prudent to poke them to update.
Ben Root
From: Paul L. <pau...@ii...> - 2010年10月09日 12:42:03
On Saturday 09 October 2010 22:58:04 Paul Leopardi wrote:
> Hello all
> I am seeing a problem similar to that seen by Jorge Scandaliaris.
I downgraded from matplotlib 1.0.0 to matplotlib 0.99 and my original problem 
no longer appears:
leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | 
grep matplotlib | sort
python-matplotlib-0.99.1.1-0.pm.1.8.x86_64
leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython -pylab
Your PyGtk has set_interactive(), so you can use the
more stable single-threaded Gtk mode.
See https://bugs.launchpad.net/ipython/+bug/270856
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) 
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
 Welcome to pylab, a matplotlib-based Python environment.
 For more information, type 'help(pylab)'.
In [1]: from mpl_toolkits.mplot3d import Axes3D
In [2]: import matplotlib.pyplot as plt
In [3]: fig=plt.figure()
/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: 
DeprecationWarning: Use the new widget gtk.Tooltip
 self.tooltips = gtk.Tooltips()
In [4]: ax=Axes3D(fig)
In [5]: plt.show()
In [6]: quit()
Do you really want to exit ([y]/n)? y
Closing threads... Done.
After upgrading to Matplotlib 0.99:
leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | 
grep matplotlib | sort
python-matplotlib-1.0.0-9.2.x86_64
python-matplotlib-tk-1.0.0-9.2.x86_64
python-matplotlib-wx-1.0.0-9.2.x86_64
leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython -pylab
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) 
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
 Welcome to pylab, a matplotlib-based Python environment.
 For more information, type 'help(pylab)'.
In [1]: from mpl_toolkits.mplot3d import Axes3D
In [2]: import matplotlib.pyplot as plt
In [3]: fig=plt.figure()
In [4]: ax=Axes3D(fig)
In [5]: plt.show()
^CERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (206, 0))
---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
/home/leopardi/src/Working/Working-0.5.1/glucat/pyclical/<ipython console> in 
<module>()
/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc in 
show()
 72 for manager in Gcf.get_all_fig_managers():
 73 manager.show()
---> 74 Tk.mainloop()
 75 
 76 def new_figure_manager(num, *args, **kwargs):
/usr/lib64/python2.6/lib-tk/Tkinter.pyc in mainloop(n)
 323 def mainloop(n=0):
 324 """Run the main loop of Tcl."""
--> 325 _default_root.tk.mainloop(n)
 326 
 327 getint = int
KeyboardInterrupt: 
In [6]: 
In [6]: quit()
Do you really want to exit ([y]/n)? y
From: Paul L. <pau...@ii...> - 2010年10月09日 11:58:15
Hello all
I am seeing a problem similar to that seen by Jorge Scandaliaris.
When I run python or ipython -pylab, show() apparently hangs. When I enter 
CTRL-C, the cursor re-appars, but show() now gives an error message, until I 
call figure(). This behaviour is repeatable. See trace below.
Matplotlib version 1.0.0 from openSUSE RPMs. Other versions:
libpython2_6-1_0-2.6.2-6.5.1.x86_64
libpython2_6-1_0-32bit-2.6.2-6.5.1.x86_64
python-2.6.2-6.5.1.x86_64
python-base-2.6.2-6.5.1.x86_64
python-matplotlib-1.0.0-5.1.x86_64
python-matplotlib-tk-1.0.0-5.1.x86_64
python-matplotlib-wx-1.0.0-5.1.x86_64
python-numpy-1.5.0-17.1.x86_64
python-scipy-0.8.0-12.1.x86_64
python-tk-2.6.2-6.5.1.x86_64
tk-8.5.7-3.1.x86_64
Best, Paul
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) 
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> fig=plt.figure()
>>> plt.show()
^CTraceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib64/python2.6/site-
packages/matplotlib/backends/backend_tkagg.py", line 74, in show
 Tk.mainloop()
 File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop
 _default_root.tk.mainloop(n)
KeyboardInterrupt
>>> plt.show()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib64/python2.6/site-
packages/matplotlib/backends/backend_tkagg.py", line 74, in show
 Tk.mainloop()
 File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop
 _default_root.tk.mainloop(n)
AttributeError: 'NoneType' object has no attribute 'tk'
>>> fig=plt.figure()
>>> plt.show()
^CTraceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib64/python2.6/site-
packages/matplotlib/backends/backend_tkagg.py", line 74, in show
 Tk.mainloop()
 File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop
 _default_root.tk.mainloop(n)
KeyboardInterrupt
>>> import matplotlib
>>> matplotlib.__version__
'1.0.0'
From: Sebastian B. <web...@th...> - 2010年10月09日 10:53:06
Attachments: signature.asc
hey pau!
On 10/09/2010 08:04 AM, Pau wrote:
> ...
> ImportError: No module named scipy.special
> ...
do you have scipy installed? i.e. does
import scipy
work? if so, what is
scipy.__version__
? here, it's 0.7.0...
if scipy is not installed, i think you need to install it in order to
access ellipk.
good luck :)
sebastian.
From: Pau <vim...@go...> - 2010年10月09日 06:05:02
Hi,
didn't work...
ImportError: No module named scipy.special
this is fedora13...
thanks!
Pau
2010年10月8日, Sebastian Busch <web...@th...>:
> hey pau,
>
> ellipk is in scipy.special:
>
> #!/usr/bin/env python
> from pylab import *
> from scipy.special import ellipk
>
> e=1.
> a_mpc = 4.0
> p = a_mpc * (1 - e**2.)
> Phase = 4.*sqrt(p/(p -6. - 2.*e)) * ellipk(-4.*e/(p - 6. -2.*e))
>
>
> greetings,
> sebastian.
>
>
2010年10月8日, Sebastian Busch <web...@th...>:
> hey pau,
>
> ellipk is in scipy.special:
>
> #!/usr/bin/env python
> from pylab import *
> from scipy.special import ellipk
>
> e=1.
> a_mpc = 4.0
> p = a_mpc * (1 - e**2.)
> Phase = 4.*sqrt(p/(p -6. - 2.*e)) * ellipk(-4.*e/(p - 6. -2.*e))
>
>
> greetings,
> sebastian.
>
>
From: Jae-Joon L. <lee...@gm...> - 2010年10月09日 04:33:14
Eric,
ax = subplot(111)
ax.tick_params(labelsize='x-small')
print ax.xaxis.majorTicks[0]._size
it sets Tick._size instead of Tick._labelsize, which seems to be a bug.
I think the below patch fixes this. Can you check (and commit if correct)?
Regards,
-JJ
diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py
index 585c1a2..05e7bec 100644
--- a/lib/matplotlib/axis.py
+++ b/lib/matplotlib/axis.py
@@ -299,7 +299,7 @@ class Tick(artist.Artist):
 label_kw = dict([(k[5:], v) for (k, v) in label_list])
 self.label1.set(**label_kw)
 self.label2.set(**label_kw)
- for k, v in label_kw.items():
+ for k, v in label_list:
 setattr(self, '_'+k, v)
On Sat, Oct 9, 2010 at 12:10 PM, Jae-Joon Lee <lee...@gm...> wrote:
> The label_mode need to be capital "L", instead of "l". I guess this
> will fix your first problem.
> While we make "l" same as "L", but I think it actually degrade the
> readability of the code, and I;m inclined to leave it as is. Let me
> know if you have any suggestions though.
>
> On Sat, Oct 9, 2010 at 5:43 AM, Justin McCann <jn...@gm...> wrote:
>> # Let's try explicitly setting all of the xtick sizes. Kablooie.
>> for ax in grid.axes_all:
>>   ax.tick_params(direction='out', labelsize='x-small')
>>
>
> The second one is not actually related with axes_grid1 toolkit. The
> error can be reproduced with the code below.
>
> ax = subplot(111)
> ax.tick_params(direction='out', labelsize='x-small')
> ax.tick_params(direction='out', labelsize='x-small')
>
> The 1st tick_params is okay, but the 2nd one raises an error.
> I'll take a look into it soon. Meanwhile, you may use a numeric
> argument for the labelsize.
>
> Regards,
>
> -JJ
>
From: Jae-Joon L. <lee...@gm...> - 2010年10月09日 03:10:47
The label_mode need to be capital "L", instead of "l". I guess this
will fix your first problem.
While we make "l" same as "L", but I think it actually degrade the
readability of the code, and I;m inclined to leave it as is. Let me
know if you have any suggestions though.
On Sat, Oct 9, 2010 at 5:43 AM, Justin McCann <jn...@gm...> wrote:
> # Let's try explicitly setting all of the xtick sizes. Kablooie.
> for ax in grid.axes_all:
>   ax.tick_params(direction='out', labelsize='x-small')
>
The second one is not actually related with axes_grid1 toolkit. The
error can be reproduced with the code below.
ax = subplot(111)
ax.tick_params(direction='out', labelsize='x-small')
ax.tick_params(direction='out', labelsize='x-small')
The 1st tick_params is okay, but the 2nd one raises an error.
I'll take a look into it soon. Meanwhile, you may use a numeric
argument for the labelsize.
Regards,
-JJ

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