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



Showing 3 results of 3

From: Bobby W. <bob...@gm...> - 2015年09月18日 07:02:40
Thank you Christoph, and thank you for the extensive package builds!
I did update to matplotlib 1.5 and it seems to address the error; I get all
of my plots and they look correct, though I did get the following warning
on Python 2.7.10:
[c:\python\dev\homework1] python PHYS404-homework1-problem3-rev05.py
C:\Python27\lib\site-packages\numpy\core\fromnumeric.py:2648:
RuntimeWarning: invalid value encountered in rint
 return round(decimals, out)
... and the same on CPython 3.4 (do you think 3.5 is stable enough to move
to?):
[c:\python\dev\homework1] python PHYS404-homework1-problem3-rev05.py
C:\Python34\lib\site-packages\numpy\core\fromnumeric.py:2648:
RuntimeWarning: invalid value encountered in rint
 return round(decimals, out)
Many thanks again,
Bobby
On Thu, Sep 17, 2015 at 11:23 PM, <
mat...@li...> wrote:
> Today's Topics:
>
> 1. Re: bug report (Christoph Gohlke)
> 2. Re: bug report (Bobby Wilkins)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: 2015年9月17日 10:30:30 -0700
> From: Christoph Gohlke <cg...@uc...>
> Subject: Re: [Matplotlib-users] bug report
> To: mat...@li...
> Message-ID: <55F...@uc...>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> I can reproduce the AttributeError on all Python versions and the crash
> (in Python's _tkinter.pyd extension) on Python 3.4.
>
> As a workaround you might try to upgrade to matplotlib 1.5, which seems
> to work for me.
>
> Christoph
>
>
From: Bobby W. <bob...@gm...> - 2015年09月18日 06:32:49
One more note: changing the plot type from loglog to just plot, the errors
also go away.
On Thu, Sep 17, 2015 at 11:23 PM, Bobby Wilkins <bob...@gm...>
wrote:
> I installed CPython 2.7.10, and the appropriate versions of the same
> packages, and I still get the same error:
>
From: Bobby W. <bob...@gm...> - 2015年09月18日 06:23:11
I installed CPython 2.7.10, and the appropriate versions of the same
packages, and I still get the same error:
[c:\python\dev\homework1] pip list
backports.ssl-match-hostname (3.4.0.2)
certifi (2015年9月6日.2)
decorator (4.0.2)
functools32 (3.2.3.post2)
ipykernel (4.0.3)
ipyparallel (4.0.2)
ipython (4.0.0)
ipython-genutils (0.1.0)
ipywidgets (4.0.2)
Jinja2 (2.8)
jsonschema (2.5.1)
jupyter (1.0.0)
jupyter-client (4.0.0)
jupyter-console (4.0.2)
jupyter-core (4.0.5)
MarkupSafe (0.23)
matplotlib (1.4.3)
mistune (0.7.1)
nbconvert (4.0.0)
nbformat (4.0.0)
notebook (4.0.4)
numpy (1.9.2)
path.py (8.1.1)
pickleshare (0.5)
Pillow (2.9.0)
pip (7.1.2)
Pygments (2.0.2)
pyparsing (2.0.3)
pyreadline (2.1)
python-dateutil (2.4.2)
pytz (2015.4)
pyzmq (14.7.0)
qtconsole (4.0.0)
scipy (0.16.0)
setuptools (18.3)
simplegeneric (0.8.1)
six (1.9.0)
tornado (4.2.1)
traitlets (4.0.0)
Note: the program does not error if last "if" in the source reads:
if (maxTerm<32)#: or ((myFigBase<4) and (maxTerm<64)):
If I change it to something like this:
if (maxTerm<32) or ((myFigBase<4) and (maxTerm<64)):
... I get the below error:
[c:\python\dev\homework1] python PHYS404-homework1-problem3-rev05.py
Traceback (most recent call last):
 File "PHYS404-homework1-problem3-rev05.py", line 196, in <module>
 graphMyetoNegX(mySlices,myRuns,0,1,0)
 File "PHYS404-homework1-problem3-rev05.py", line 185, in graphMyetoNegX
plt.savefig(figStrName+str(myFigBase*3+3).zfill(2)+figStrExt,bbox_inches='tight')
 File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 577, in
savefig
 res = fig.savefig(*args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 1476, in
savefig
 self.canvas.print_figure(*args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line
2158, in print_figure
 **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 521, in print_png
 FigureCanvasAgg.draw(self)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 469, in draw
 self.figure.draw(self.renderer)
 File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 59, in
draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 1085, in
draw
 func(*args)
 File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 59, in
draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\axes\_base.py", line 2110,
in draw
 a.draw(renderer)
 File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 59, in
draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\text.py", line 642, in draw
 ismath=ismath, mtext=mtext)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 206, in draw_text
 font.get_image(), np.round(x - xd), np.round(y + yd) + 1, angle, gc)
 File "C:\Python27\lib\site-packages\numpy\core\fromnumeric.py", line
2648, in round_
 return round(decimals, out)
 File "C:\Python27\lib\site-packages\numpy\ma\core.py", line 4903, in round
 result._mask = self._mask
AttributeError: 'numpy.float64' object has no attribute '_mask'
On Thu, Sep 17, 2015 at 6:46 AM, Bobby Wilkins <bob...@gm...>
wrote:
> Thank you all.
>
> I am using Python 3.4.3.
>
> I meant to include a pip list:
>
> Assimulo (2.8)
> decorator (4.0.2)
> gmpy2 (2.0.7)
> ipykernel (4.0.3)
> ipython (4.0.0)
> ipython-genutils (0.1.0)
> ipywidgets (4.0.2)
> Jinja2 (2.8)
> jsonschema (2.5.1)
> jupyter-client (4.0.0)
> jupyter-core (4.0.4)
> MarkupSafe (0.23)
> matplotlib (1.4.3)
> mistune (0.7.1)
> nbconvert (4.0.0)
> nbformat (4.0.0)
> nose (1.3.7)
> notebook (4.0.4)
> numpy (1.9.2)
> pandas (0.16.2)
> path.py (8.1)
> pickleshare (0.5)
> pip (7.1.2)
> Pygments (2.0.2)
> pyparsing (2.0.3)
> pyreadline (2.0)
> python-dateutil (2.4.2)
> pytz (2015.4)
> pyzmq (14.7.0)
> requests (2.7.0)
> scipy (0.16.0)
> setuptools (18.2)
> simplegeneric (0.8.1)
> six (1.9.0)
> sympy (0.7.6)
> testpath (0.2)
> tornado (4.2.1)
> traitlets (4.0.0)
>
> So, if the program works for Python 2.7 but not 3.4.3, maybe that is the
> problem? Let me try to install Python 2.7 tonight and see what that does.
>
> On Wed, Sep 16, 2015 at 8:39 AM, Sterling Smith <sm...@fu...>
> wrote:
>
>> Works fine for
>>
>> {{{
>> : python
>> Python 2.7.10 (default, Sep 15 2015, 11:26:42)
>> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> /Users/smithsp/.pyhistory
>> >>> import matplotlib
>> >>> matplotlib.__version__
>> '1.4.3'
>> >>> import numpy
>> >>> numpy.__version__
>> '1.9.2'
>> >>> matplotlib.get_backend()
>> u’MacOSX'
>> }}}
>>
>> All are obtained through MacPorts on OSX 10.9.5.
>>
>> -Sterling
>>
>>
>>
>> On Sep 16, 2015, at 6:50AM, Benjamin Root <ben...@gm...> wrote:
>>
>> > Btw, I can't reproduce the problem using matplotlib master, numpy
>> master and linux. I know it isn't at all similar to your setup, but it is a
>> data point.
>> >
>> > On Wed, Sep 16, 2015 at 9:43 AM, Benjamin Root <ben...@gm...>
>> wrote:
>> > What version of numpy do you have installed?
>> >
>> > On Wed, Sep 16, 2015 at 5:35 AM, Bobby Wilkins <bob...@gm...>
>> wrote:
>> > OS: Windows 8.1 Pro
>> >
>> > matplotlib version: 1.4.3
>> >
>> > where obtained: http://www.lfd.uci.edu/~gohlke/pythonlibs/
>> >
>> > customizations: none
>> >
>> > Sample Program: attached py file; this is a Physics homework problem; I
>> have the answers I need, but would like to fix the errors to be able to
>> label all lines.
>> >
>> > Debug output in attached output.txt file
>> >
>> > If you uncomment line 180, the error is reported as if it came from
>> that line even though there is no float64 on that line (savefig). If
>> commented, it does not report a line from my .py file...
>> >
>> > If you make line 170 read as follows, the error goes away:
>> >
>> > if (maxTerm<32):
>> >
>> > This suggests to me that the additional labels for the 32, 64, 128, and
>> 154 term runs is what is triggering the bug, but I cannot figure out what
>> it is.
>> >
>> > Also, separate note, just about any time I make figures, when closing
>> the last figure I get a python.exe app crash and this message:
>> >
>> > alloc: invalid block: 00000000044E7680: 0 d
>> >
>> >
>> > Thank you for any help,
>> > Bobby
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> > Get real-time metrics from all of your servers, apps and tools
>> > in one place.
>> > SourceForge users - Click here to start your Free Trial of Datadog now!
>> > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> > _______________________________________________
>> > Matplotlib-users mailing list
>> > Mat...@li...
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> > Get real-time metrics from all of your servers, apps and tools
>> > in one place.
>> > SourceForge users - Click here to start your Free Trial of Datadog now!
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________
>> > Matplotlib-users mailing list
>> > Mat...@li...
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>

Showing 3 results of 3

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