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





Showing results of 256

<< < 1 .. 6 7 8 9 10 11 > >> (Page 8 of 11)
From: John H. <jd...@gm...> - 2011年10月13日 11:26:01
On Thu, Oct 13, 2011 at 12:42 AM, Viktor Forsman
<vik...@gm...> wrote:
> Hi,
>
> I have problems with a memory leak in a webapplication involving matplotlib.
> Basically, I have a function which usies the OO way of generating the graph,
> printing it to a StringIO object and returning that. I've posted a question
> with the details on stackoverflow
> (http://stackoverflow.com/questions/7740832/need-help-identifying-a-memory-leak-involving-matplotlib-and-flask).
> Any ideas are highly appreciated.
What version of matplotlib and numpy are you using? Does it help to do:
 import gc
 gc.collect()
after a call to plot total or plot month?
Also, you appear to be adding data to "plot_values" and storing this
on every call. Are you sure the leak is in mpl and not here?
JDH
From: Durrieu Jean-L. <jea...@ep...> - 2011年10月13日 08:47:17
Dear all, matplotlib users and devs,
I have been trying the latest announced version of Matplotlib (1.1.0). The new feature that attracted me is the PySide support. 
However, I tried to install it under Ubuntu 11.04, but I needed pyqt4 installed in order to install it from source. Is there a way to install it with only pyside installed? 
Once installed, I could uninstall pyqt4, and run my python scripts, with replacing pyqt4 by pyside. However, I am not sure what the "ETS environment variable" is (yes, it s related to the enthought tool suite, but what if I do not want it - for now), and I had to set the QT_API variable on the command line call to python: setting it as a "normal" environment variable does not work. So, to be able to use "only" pyside, I need to do:
QT_API=pyside python myscript.py
Is that the right way to do so? Is there any way of setting the QT_API more "definitely", and not having to change the call to python?
So far, my program (I really have only one at the moment) seems to work well, using QtCore, QtGui and phonon, except for phonon, where it seems that "seeking" in a file does not really work under Ubuntu... if anyone has an idea (I know, not the right mailing list, but just in case).
At last, probably a question that will solve all the above ones: when is the new Matplotlib version going to be included in EPD? That's, by the way, mainly the reason why I consider using PySide instead of PyQt4. 
Thanks for reading!
Cheers,
Jean-Louis
From: Viktor F. <vik...@gm...> - 2011年10月13日 05:42:43
Hi,
I have problems with a memory leak in a webapplication involving matplotlib.
Basically, I have a function which usies the OO way of generating the graph,
printing it to a StringIO object and returning that. I've posted a question
with the details on stackoverflow (
http://stackoverflow.com/questions/7740832/need-help-identifying-a-memory-leak-involving-matplotlib-and-flask).
Any ideas are highly appreciated.
From: List C. <lis...@gm...> - 2011年10月13日 05:36:52
Hello, I am interested in plotting two (x) axes for the same figure (one of
is just showing linearly transformed values of the other); one of them
offset from the plot if possible. For instance, I have the following code:
import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.axisartist as AA
## define data
x = np.array(range(11))
xlab = x*2
y = np.random.random(len(x))
fig = plt.figure()
## first axes which is only for drawing the axis
axsecond = AA.Subplot(fig, 1,1,1)
fig.add_subplot(axsecond)
axsecond.set_xlim([min(xlab),max(xlab)])
axsecond.set_xticks(np.linspace(min(xlab),max(xlab),5))
axsecond.axis["bottom", "top", "left", "right"].set_visible(False)
axsecond.axis["newx"] = axsecond.new_floating_axis(nth_coord=0, value=1)
axsecond.axis["newx"].set_axis_direction("top")
axsecond.set_clip_on(False)
axsecond.axis["newx"].toggle(all=True)
axsecond.axis["newx"].set_visible(True)
plt.draw()
## the main set of axes containing the data
axmain = fig.add_subplot(1,1,1)
plt.plot(x,y)
In this example I wonder
1) How to turn off the top axis of axmain so the ticks from axsecond are
visible? Something like axmain["top"].set_visible(False) (which does not
work of course).
2) If I wanted to include an offset (below the main axis), I feel like
something like the following should work but doesn't:
ax.axis["newx"] = ax.new_floating_axis(nth_coord=0, value=-0.2) ## outside
of (0,1)
ax.axis["newx"].set_axis_direction("bottom")
ax.set_clip_on(False)
Thanks in advance!
From: questions a. <que...@gm...> - 2011年10月13日 02:20:25
Hi All,
I keep receiving a memory error when processing many netcdf files. I assumed
it had something to do with how I loop things and maybe needed to close
things off properly but I recently received an error that made me think it
might be because of matplotlib.
In the code below I am looping through a bunch of netcdf files (each file is
hourly data for one month) and within each netcdf file I am outputting a
*png file every three hours. This works for one netcdf file (therefore one
month) but when it begins to process the next netcdf file I receive a memory
error (see below). Since I have tidied some of my code up it seems to
process partly into the second file but then I still receive the memory
error.
I have tried a few suggestions such as:
-Combining the dataset using MFDataset (using NETCDF4) is not an option
because the files do not have unlimited dimension.
- gc.collect() but that just results in a *GEOS_ERROR: bad allocation error*.
-only open LAT and LON once (which worked)
System Details:
Python 2.7.2 |EPD 7.1-2 (32-bit)| (default, Jul 3 2011, 15:13:59) [MSC
v.1500 32 bit (Intel)] on win32
Any feedback will be greatly appreciated as I seem to keep ending up with
memory errors when working with netcdf files this even happens if I am using
a much better computer.
*Most recent error: *
Traceback (most recent call last):
 File "C:\plot_netcdf_merc_multiplot_across_multifolders_TSFC.py", line 78,
in <module>
 plt.savefig((os.path.join(outputfolder, 'TSFC'+date_string+'UTC.png')))
 File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 363, in
savefig
 return fig.savefig(*args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 1084, in
savefig
 self.canvas.print_figure(*args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_wxagg.py",
line 100, in print_figure
 FigureCanvasAgg.print_figure(self, filename, *args, **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line
1923, in print_figure
 **kwargs)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 438, in print_png
 FigureCanvasAgg.draw(self)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 393, in draw
 self.renderer = self.get_renderer()
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 404, in get_renderer
 self.renderer = RendererAgg(w, h, self.figure.dpi)
 File "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py",
line 59, in __init__
 self._renderer = _RendererAgg(int(width), int(height), dpi, debug=False)
RuntimeError: Could not allocate memory for image
*Error when I added gc.collect()*
GEOS_ERROR: bad allocation
*Old error (before adding gc.collect() )*
*Traceback (most recent call last):
 File "d:/plot_netcdf_merc_multiplot_across_multifolders__memoryerror.py",
line 44, in <module>
 TSFC=ncfile.variables['T_SFC'][1::3]
 File "netCDF4.pyx", line 2473, in netCDF4.Variable.__getitem__
(netCDF4.c:23094)
MemoryError*
from netCDF4 import Dataset
import numpy as N
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from netcdftime import utime
from datetime import datetime
import os
import gc
shapefile1="E:/
>
> griddeddatasamples/GIS/DSE_REGIONS"
> MainFolder=r"E:/griddeddatasamples/GriddedData/InputsforValidation/T_SFC/"
> OutputFolder=r"E:/griddeddatasamples/GriddedData/OutputsforValidation"
> fileforlatlon=Dataset("E:/griddeddatasamples/GriddedData/InputsforValidation/T_SFC/TSFC_1974_01/IDZ00026_VIC_ADFD_T_SFC.nc",
> 'r+', 'NETCDF4')
> LAT=fileforlatlon.variables['latitude'][:]
> LON=fileforlatlon.variables['longitude'][:]
>
> for (path, dirs, files) in os.walk(MainFolder):
> for dir in dirs:
> print dir
> path=path+'/'
> for ncfile in files:
> if ncfile[-3:]=='.nc':
> print "dealing with ncfiles:", ncfile
> ncfile=os.path.join(path,ncfile)
> ncfile=Dataset(ncfile, 'r+', 'NETCDF4')
> TSFC=ncfile.variables['T_SFC'][1::3]
> TIME=ncfile.variables['time'][1::3]
> ncfile.close()
> gc.collect()
>
> for TSFC, TIME in zip((TSFC[:]),(TIME[:])):
> cdftime=utime('seconds since 1970年01月01日 00:00:00')
> ncfiletime=cdftime.num2date(TIME)
> print ncfiletime
> timestr=str(ncfiletime)
> d = datetime.strptime(timestr, '%Y-%m-%d %H:%M:%S')
> date_string = d.strftime('%Y%m%d_%H%M')
>
> map =
> Basemap(projection='merc',llcrnrlat=-40,urcrnrlat=-33,
>
> llcrnrlon=139.0,urcrnrlon=151.0,lat_ts=0,resolution='i')
> x,y=map(*N.meshgrid(LON,LAT))
> map.drawcoastlines(linewidth=0.5)
> map.readshapefile(shapefile1, 'DSE_REGIONS')
> map.drawstates()
>
> plt.title('Surface temperature at %s UTC'%ncfiletime)
> ticks=[-5,0,5,10,15,20,25,30,35,40,45,50]
> CS = map.contourf(x,y,TSFC, ticks, cmap=plt.cm.jet)
> l,b,w,h =0.1,0.1,0.8,0.8
> cax = plt.axes([l+w+0.025, b, 0.025, h], )
> cbar=plt.colorbar(CS, cax=cax, drawedges=True)
>
> plt.savefig((os.path.join(OutputFolder,
> 'TSFC'+date_string+'UTC.png')))
> plt.close()
> gc.collect()
>
>
>
From: Keith J. <K....@ir...> - 2011年10月13日 00:41:13
Matplotlib 1.1 fixes the NavigationToolbar2Wx issue with saving the .png image.
Thanks for the excellent support.
Regards.
Keith
________________________________
From: ben...@gm... [mailto:ben...@gm...] On Behalf Of Benjamin Root
Sent: Saturday, 24 September 2011 2:59 a.m.
To: Keith Jones
Cc: mat...@li...
Subject: Re: [Matplotlib-users] NavigationToolbar2Wx with mplot3d
On Wednesday, September 21, 2011, Benjamin Root <ben...@ou...<mailto:ben...@ou...>> wrote:
>
>
> On Wednesday, September 21, 2011, Keith Jones <K....@ir...<mailto:K....@ir...>> wrote:
>> Hi,
>>
>> I have two questions about using NavigationToolbar2Wx with mplot3d.
>>
>>
>>
>> 1/ Initially the 3D scatter plot will rotate as usual with a mouse, but after selecting the 'pan' or 'zoom' buttons the plot responds with some confusion. How can I restore it to rotation only, i.e. disconnect the zoom or pan behaviour?
>>
>
> That is a bug that should be resolved in the upcoming release. Use the right mouse button for zooming instead. In the upcoming release, the zoom and pan button should have no effect on axes3d objects, if I remember correctly.
>
>
>>
>>
>> 2/ When using the 'save' button I get different behaviours depending on the backend. With 'WXAgg' the saved png image shows only the axes, not the scatter points. The scatter points and axes do appear correctly in a pdf file. Using the 'WX' backend gives both scatter points and axes for the png file.
>>
>
> I dont use WxAgg regularly. I will use your code to test this.
>
> Ben Root
I could not reproduce your problem with WxAgg backend on the development branch. I could only test on Linux, though. However, if there is a difference between platforms with WxAgg backend, then it is likely a Wx bug and not a mpl bug (although the fact that the Wx backend worked is odd).
We are putting out an RC of v1.1.0 later today. Could you try out that version within the next few days and let me know if it still happens for you?
Ben Root
________________________________
This electronic transmission and any documents accompanying this electronic transmission contain confidential information belonging to the sender. This information may be legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited.
From: Benjamin R. <ben...@ou...> - 2011年10月12日 05:24:54
On Thu, Oct 6, 2011 at 3:36 PM, Benjamin Root <ben...@ou...> wrote:
> On Thu, Oct 6, 2011 at 2:56 PM, David Pine <dj...@gm...> wrote:
>
>> I need help on how to remove the ticks and axes lines on a 3d plot. I got
>> rid of the tick labels using
>> ax.w_xaxis.set_ticklabels(['']) but I haven't been able to figure out how
>> to do the ticks themselves.
>>
>> Also, is there a way to remove the gray background & grid to have a free
>> standing 3d plot?
>>
>>
>>
> In v1.0.1, there is no easy way to do this. However, when v1.1.0 gets
> officially released and the documentation is uploaded, I will post some
> links to show how to do this.
>
> Cheers!
> Ben Root
>
>
David,
In v1.1.0, you can use ax.set_frame_on(False) to keep the panels from being
drawn. This will also prevent the ticks, ticklabels, axis labels and such
from being drawn.
http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/api.html#mpl_toolkits.mplot3d.axes3d.Axes3D.set_frame_on
I hope this helps!
Ben Root
From: Russell E. O. <ro...@uw...> - 2011年10月11日 20:23:59
I was hoping to build a matplotlib binary installer for python.org's 
64-bit Python (MacOS X 10.6 and later). But I've run into problems that 
make me think python.org's python is not fully compatible with 
ActiveState Tcl/Tk.
Here's what I have:
MacOS X 10.6.8
Python: python-2.7.2-macosx10.6.dmg
Tcl/TK: ActiveTcl8.5.10.1.295062-macosx10.5-i386-x86_64-threaded.dmg
XCode 3.2.6
matplotlib 1.1.0
I edited setupext.py in the matplotlib source directory to set darwin to:
  'darwin' : ['/usr', '/usr/X11'],
The idea was to use only Apple's own libraries for the dependencies.
I did not install wxPython because, as I understand it, there is no 
64-bit version.
matplotlib seems to build OK (see appended log) though there are 
disturbing messages such as these:
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
I can import and run Tkinter, though I've not done anything beyond 
putting up a root window.
But when I try to import pylab I get:
objc[1083]: Class TKApplication is implemented in both 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two 
will be used. Which one is undefined.
objc[1083]: Class TKMenu is implemented in both 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two 
will be used. Which one is undefined.
objc[1083]: Class TKContentView is implemented in both 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two 
will be used. Which one is undefined.
objc[1083]: Class TKWindow is implemented in both 
/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two 
will be used. Which one is undefined.
Any idea how to deal with this? I've never seen this before and google 
was no help. Others have seen this problem but I saw no solution.
-- Russell
P.S. partial log of build (not install) of matplotlib:
BUILDING MATPLOTLIB
      matplotlib: 1.1.0
        python: 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
            [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
       platform: darwin
REQUIRED DEPENDENCIES
        numpy: 1.6.1
      freetype2: found, but unknown version (no pkg-config)
OPTIONAL BACKEND DEPENDENCIES
        libpng: found, but unknown version (no pkg-config)
       Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
         Gtk+: no
            * Building for Gtk+ requires pygtk; you must be 
able
            * to "import gtk" in your build/install 
environment
   Mac OS X native: yes
          Qt: no
         Qt4: no
        Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
       datetime: present, version unknown
       dateutil: matplotlib will provide
         pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
        dvipng: no
     ghostscript: /bin/sh: gs: command not found
        latex: no
[Edit setup.cfg to suppress the above messages]
=========================================================================
===
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 
'matplotlib.backends.qt4_editor', 'matplotlib.projections', 
'matplotlib.testing', 'matplotlib.testing.jpl_units', 
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 
'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']
running build
running build_py
...
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Tcl.framework/Headers 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
-I/Library/Frameworks/Tk.framework/Headers 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
-I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Tcl.framework/Headers/freetype2 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2 
-Iagg24/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2 
-I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
src/agg_py_transforms.cpp -o 
build/temp.macosx-10.6-intel-2.7/src/agg_py_transforms.o -framework Tcl 
-framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Tcl.framework/Headers 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
-I/Library/Frameworks/Tk.framework/Headers 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
-I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Tcl.framework/Headers/freetype2 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2 
-Iagg24/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2 
-I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
src/_tkagg.cpp -o build/temp.macosx-10.6-intel-2.7/src/_tkagg.o 
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Tcl.framework/Headers 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
-I/Library/Frameworks/Tk.framework/Headers 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
-I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Tcl.framework/Headers/freetype2 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2 
-Iagg24/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2 
-I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
CXX/cxx_extensions.cxx -o 
build/temp.macosx-10.6-intel-2.7/CXX/cxx_extensions.o -framework Tcl 
-framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Tcl.framework/Headers 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
-I/Library/Frameworks/Tk.framework/Headers 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
-I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Tcl.framework/Headers/freetype2 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2 
-Iagg24/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2 
-I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
CXX/cxxsupport.cxx -o build/temp.macosx-10.6-intel-2.7/CXX/cxxsupport.o 
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Tcl.framework/Headers 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
-I/Library/Frameworks/Tk.framework/Headers 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
-I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Tcl.framework/Headers/freetype2 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2 
-Iagg24/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2 
-I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
CXX/IndirectPythonInterface.cxx -o 
build/temp.macosx-10.6-intel-2.7/CXX/IndirectPythonInterface.o 
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Tcl.framework/Headers 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
-I/Library/Frameworks/Tk.framework/Headers 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
-I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Tcl.framework/Headers/freetype2 
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2 
-Iagg24/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2 
-I/usr/X11/include/freetype2 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
CXX/cxxextensions.c -o 
build/temp.macosx-10.6-intel-2.7/CXX/cxxextensions.o -framework Tcl 
-framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because 
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused 
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because 
linking not done
c++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk 
-g build/temp.macosx-10.6-intel-2.7/src/agg_py_transforms.o 
build/temp.macosx-10.6-intel-2.7/src/_tkagg.o 
build/temp.macosx-10.6-intel-2.7/CXX/cxx_extensions.o 
build/temp.macosx-10.6-intel-2.7/CXX/cxxsupport.o 
build/temp.macosx-10.6-intel-2.7/CXX/IndirectPythonInterface.o 
build/temp.macosx-10.6-intel-2.7/CXX/cxxextensions.o -L/usr/lib 
-L/usr/X11/lib -L/usr/lib -L/usr/X11/lib -lstdc++ -lm -lfreetype -lz 
-lstdc++ -lm -o 
build/lib.macosx-10.6-intel-2.7/matplotlib/backends/_tkagg.so -framework 
Tcl -framework Tk
building 'matplotlib.backends._macosx' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG 
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
src/_macosx.m -o build/temp.macosx-10.6-intel-2.7/src/_macosx.o
src/_macosx.m: In function ŒFigureManager_init1:
src/_macosx.m:3755: warning: class 'View' does not implement the 
'NSWindowDelegate' protocol
src/_macosx.m: In function ŒFigureManager_init1:
src/_macosx.m:3755: warning: class 'View' does not implement the 
'NSWindowDelegate' protocol
From: Christoph G. <cg...@uc...> - 2011年10月11日 17:20:46
The minimum versions of numpy required for the matplotlib-1.1.0 Windows 
installers are:
numpy-1.4.1 win32-py2.5
numpy-1.5.1 win32-py2.6
numpy-1.5.1 win32-py2.7
numpy-1.6.1 win-amd64-py2.x
Christoph
On 10/11/2011 6:00 AM, John Hunter wrote:
> A new release of matplotlib is available for download at
>
> https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0
>
> There are lots of nifty new features like Sankey diagrams, an API for
> animations and movie making, enhanced 3D support, support for
> auto-layout of subplots with titles, xlabels and ylabels to prevent
> text from running off the edge of the figure (tight_layout), pyside
> supoprt, enhanced legends, and tons of other minor features and
> bug-fixes. See what's new at
>
> http://matplotlib.sourceforge.net/users/whats_new.html
>
> and the CHANGELOG at
>
> https://github.com/matplotlib/matplotlib/blob/v1.1.x/CHANGELOG
>
> and the commit history at
>
> https://github.com/matplotlib/matplotlib/commits/v1.1.x/
>
> Please post issues on the github issue tracker and questions on the mailing list
>
> https://github.com/matplotlib/matplotlib/issues
>
> Thanks to all the matplotlib developers who contributed to this
> release, with special thanks to Michael Droettboom, Eric Firing,
> Benjamin Root, Jouni Seppänen, Kevin Davies and Jae-Joon Lee for lots
> of code contributions and bug fixes and to Christoph Gohlke and
> Russell Owen for the windows and OX X binary installers.
>
> JDH
>
From: Keith H. <kei...@gm...> - 2011年10月11日 16:09:41
Hi all,
Does anyone know of a good way to create a new LinearSegmentedColormap based
off an existing one?
I have a function which attempts to generate N "optimal" color map indices
for a given data array. In cases where the number of values specified
in _segmentdata is the same as N, then I can simply copy _segmentdata and
modify the indices and create a new color map. In many cases, however, the
segment data has far fewer interpolation points, e.g.:
In [52]: cm.gray._segmentdata
Out[52]:
{'blue': ((0.0, 0, 0), (1.0, 1, 1)),
 'green': ((0.0, 0, 0), (1.0, 1, 1)),
 'red': ((0.0, 0, 0), (1.0, 1, 1))}
Other colormaps may have an arbitrary number of interpolation points.
Ideally, what I would like is a way to expand this into N points (e.g. 256)
so that I use that as input for my new map.
Any suggestions? I found a similar
post<http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTik0v7nh4NB1rOBCP_dFQfS2JJoe0S6NeUrw0p6k%40mail.gmail.com&forum_name=matplotlib-users>from
last year, but that doesn't seem to be applicable in the version of
Matplotlib I'm using (1.1.0).
Thanks,
Keith
From: John H. <jd...@gm...> - 2011年10月11日 13:01:12
A new release of matplotlib is available for download at
 https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0
There are lots of nifty new features like Sankey diagrams, an API for
animations and movie making, enhanced 3D support, support for
auto-layout of subplots with titles, xlabels and ylabels to prevent
text from running off the edge of the figure (tight_layout), pyside
supoprt, enhanced legends, and tons of other minor features and
bug-fixes. See what's new at
 http://matplotlib.sourceforge.net/users/whats_new.html
and the CHANGELOG at
 https://github.com/matplotlib/matplotlib/blob/v1.1.x/CHANGELOG
and the commit history at
 https://github.com/matplotlib/matplotlib/commits/v1.1.x/
Please post issues on the github issue tracker and questions on the mailing list
 https://github.com/matplotlib/matplotlib/issues
Thanks to all the matplotlib developers who contributed to this
release, with special thanks to Michael Droettboom, Eric Firing,
Benjamin Root, Jouni Seppänen, Kevin Davies and Jae-Joon Lee for lots
of code contributions and bug fixes and to Christoph Gohlke and
Russell Owen for the windows and OX X binary installers.
JDH
From: Chang, C. <Chr...@nr...> - 2011年10月11日 03:37:51
Hi,
 Trying to install 1.0.1 on OSX 10.6, with python 2.7 (built from source), GCC 4.6.1 built from source (to get Fortran compiler), numpy 1.6.1, and libpng 1.4.8. Modified setup.cfg to specify TkAgg backend, and setupext.py line 832 (remove the "[-2]" to get around list indexing error, maybe a change in Tkinter output?). During build, I'm getting the following death:
g++ -bundle -undefined dynamic_lookup build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o build/temp.macosx-10.6-x86_64-2.7/CXX/cxx_extensions.o build/temp.macosx-10.6-x86_64-2.7/CXX/cxxextensions.o build/temp.macosx-10.6-x86_64-2.7/CXX/cxxsupport.o build/temp.macosx-10.6-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.macosx-10.6-x86_64-2.7/src/agg_py_transforms.o build/temp.macosx-10.6-x86_64-2.7/src/path_cleanup.o -lstdc++ -lm -o build/lib.macosx-10.6-x86_64-2.7/matplotlib/backends/_macosx.so -framework Cocoa
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: warning: -fwritable-strings not compatible with literal CF/NSString in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o
ld: in build/temp.macosx-10.6-x86_64-2.7/src/_macosx.o, S_LITERAL_POINTERS section __DATA,__objc_selrefs missing relocs
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
I don't know if the "writable-strings" business is a practical problem, but the "missing relocs" seems to be a deal-breaker. Any suggestions?
Thanks,
Chris
--
Christopher H. Chang, Ph.D.
Scientist IV, Computational Science
Conputational Sciences Center
National Renewable Energy Laboratory
1617 Cole Blvd., MS 1608
Golden, CO 80401
Phone (303) 275-3751
Fax (303) 275-4007
From: Michael D. <md...@st...> - 2011年10月10日 23:08:28
How does one reproduce this?
Mike
On 10/09/2011 04:32 AM, Nils Wagner wrote:
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/backend_qt4.py",
> line 463, in edit_parameters
> figureoptions.figure_edit(axes, self)
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/figureoptions.py",
> line 132, in figure_edit
> icon=get_icon('qt4_editor_options.svg'),
> apply=apply_callback)
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 511, in fedit
> dialog = FormDialog(data, title, comment, icon,
> parent, apply)
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 416, in __init__
> parent=self)
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 390, in __init__
> widget = FormComboWidget(data, comment=comment,
> parent=self)
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 368, in __init__
> widget = FormWidget(data, comment=comment,
> parent=self)
> File
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 233, in __init__
> self.data = deepcopy(data)
> File "/usr/lib64/python2.6/copy.py", line 162, in
> deepcopy
> y = copier(x, memo)
> File "/usr/lib64/python2.6/copy.py", line 228, in
> _deepcopy_list
> y.append(deepcopy(a, memo))
> File "/usr/lib64/python2.6/copy.py", line 162, in
> deepcopy
> y = copier(x, memo)
> File "/usr/lib64/python2.6/copy.py", line 235, in
> _deepcopy_tuple
> y.append(deepcopy(a, memo))
> File "/usr/lib64/python2.6/copy.py", line 162, in
> deepcopy
> y = copier(x, memo)
> File "/usr/lib64/python2.6/copy.py", line 228, in
> _deepcopy_list
> y.append(deepcopy(a, memo))
> File "/usr/lib64/python2.6/copy.py", line 162, in
> deepcopy
> y = copier(x, memo)
> File "/usr/lib64/python2.6/copy.py", line 292, in
> _deepcopy_inst
> state = deepcopy(state, memo)
> File "/usr/lib64/python2.6/copy.py", line 162, in
> deepcopy
> y = copier(x, memo)
> File "/usr/lib64/python2.6/copy.py", line 255, in
> _deepcopy_dict
> y[deepcopy(key, memo)] = deepcopy(value, memo)
> File "/usr/lib64/python2.6/copy.py", line 189, in
> deepcopy
> y = _reconstruct(x, rv, 1, memo)
> File "/usr/lib64/python2.6/copy.py", line 323, in
> _reconstruct
> y = callable(*args)
> File "/usr/lib64/python2.6/copy_reg.py", line 93, in
> __newobj__
> return cls.__new__(cls, *args)
> TypeError: instancemethod expected at least 2 arguments,
> got 0
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Jeff W. <js...@fa...> - 2011年10月10日 21:37:48
On 10/9/11 6:38 AM, Filipe Pires Alvarenga Fernandes wrote:
> On Thu, Oct 6, 2011 at 14:50, Jeff Whitaker<js...@fa...> wrote:
>> On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote:
>>> Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with
>>> the pure python shapelib.py. However, that did break some of my
>>> scripts when I use custom shapefiles.
>>>
>>> Here is a picture from Basemap 1.0.1,
>>>
>>> http://imageshack.us/photo/my-images/69/basemap101.png/
>>>
>>> and here the same script under Basemap 1.0.2,
>>>
>>> http://imageshack.us/photo/my-images/854/basemap102.png/
>>>
>>> and here is the script:
>>> http://pastebin.com/WfePCFJi
>>>
>>> It probably has something to do with the way shapelib.py handle the
>>> lines, As soon as I have some time I'll take a better look into that,
>>> but I would like to ask if anyone has seen this before and/or if you
>>> have a suggestion/solution for it.
>>>
>>> Thanks, Filipe
>> Filipe: Were you able to resolve this? I just updated shapefile.py in the
>> git repository, so you might try again on the off chance a bug was fixed.
>> If the problem still persists, please point me to a shapefile that triggers
>> the problem.
>>
>> -Jeff
> Thanks, but the problem persists. I haven't got time to look into it
> yet, as soon as I do I'll get back to you.
>
> Regarding the shapefile, I do not remember the official source
> anymore, but you can get a copy here:
> https://build.opensuse.org/package/files?package=python-basemap&project=home%3Aocefpaf
>
> Thanks again, Filipe
>
Filipe: I believe I've fixed it - your shapefile now displays correctly 
for me. Please try updating from https://github.com/matplotlib/basemap.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Benjamin R. <ben...@ou...> - 2011年10月10日 17:20:18
On Fri, Oct 7, 2011 at 3:40 PM, Paul Hobson <pmh...@gm...> wrote:
> Hey folks,
>
> I'm working on a patch to axes.boxplot that will allow the user to
> manually specify the median and confidence intervals (notches) on a
> boxplot. My need for this arises since I compute the notch locations
> using the BCa-method, which depends on Scipy.
>
> My question relates to how to best have users input their predefined
> median and its confidence interval. In my use case, I'm always calling
> boxplot one data set at a time and so it has made sense for me pass
> the values as a dictionary to my locally-modified boxplot function.
> This is probably a quite unique use case.
>
> In the more general use case where an arbitrary number of boxplots
> will be generated on a single axes object, what would be the best
> method of input? My initial though is to specify a list-of-tuples in
> the form: [(lower1, median1, upper1), (lower2, median2, upper2), ...,
> (lowerN, medianN, upperN)]. The modified function signature would be:
> def boxplot(self, x, notch=0, sym='b+', vert=1, whis=1.5,
> positions=None, widths=None, patch_artist=False,
> bootstrap=None, manualVals=None):
>
> The other best option that comes to mind would be to pass each value
> as an individual numpy array with dimensions that are compatible with
> the data (x), i.e.,
> def boxplot(self, x, notch=0, sym='b+', vert=1, whis=1.5,
> positions=None, widths=None, patch_artist=False,
> bootstrap=None, lowerCIs=None, medians=None, upperCIs=None):
>
> This seems a bit cumbersome both to use and implement, though quite
> flexible as the user would not be forced to supply all three arrays.
>
> Any advice, requests, or general input would be much appreciated.
>
> Cheers,
> -Paul H.
>
>
Just a thought to throw out there... maybe the call
signatures/functionalities of boxplot() and errorbar() should get merged?
To me, I imagine these kinds of plots as being two sides of the same coin.
Cheers!
Ben Root
From: Michael D. <md...@st...> - 2011年10月10日 16:37:11
Using anything but the CM and STIX fonts in mathtext ultimately leads to 
a world of pain and I consider it "unsupported", because there are 
custom tweaks to get the alignment working that end up being missing.
However, if you really want to try it you can set the following rcParams:
 mathtext.default: regular # Use the same font for math as regular text
 mathtext.fontset: custom # Don't pull any glyphs from cm or stix
Then you can write your string entirely in math syntax, eg.:
 r"$VCD_{strat} O_3 [DU]$"
Mike
On 10/10/2011 12:17 PM, Andreas H. wrote:
>>> I would like to use .otf fonts for typesetting text (axes, titles,
>>> labels,
>>> legends, ...) in matplotlib. Is this possible? If yes, how?
>> Yes. Put the font somewhere in your font search path. (Where that
>> would be depends on your platform, but for user-local fonts, use
>> "~/.fonts" on Linux, "~/Library/Fonts" on OS-X, I don't recall on
>> Windows, but Googling should give you something). You will need to
>> delete the matplotlib font cache so that it will discover new fonts.
>> This lives in "~/.matplotlib/fontList.cache" on Unix platforms. Then
>> you can change the default font family by setting the "font.family"
>> rcParam to the name of the font.
> Cool, this seems to work :)
>
> Now, I only have one issue:
>
> If I set a text, for example via
>
> ylabel(r"VCD$_{\sf strat}$ O$_{\sf 3}$ [DU]")
>
> the subscript "strat" actually gets typeset in my OTF font, but the subset
> "3" gets typeset in the standard math font (the fonts Cmr10 and Cmss10 get
> embedded in the PDF file). This doesn't look nice, because I am using
> MyriadPro, which is a sans-serif, while the CMR/CMSS fonts are serif fonts
> ...
>
> Any ideas how to solve this?
>
> Cheers!
> Andreas.
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Andreas H. <li...@hi...> - 2011年10月10日 16:17:53
>> I would like to use .otf fonts for typesetting text (axes, titles,
>> labels,
>> legends, ...) in matplotlib. Is this possible? If yes, how?
> Yes. Put the font somewhere in your font search path. (Where that
> would be depends on your platform, but for user-local fonts, use
> "~/.fonts" on Linux, "~/Library/Fonts" on OS-X, I don't recall on
> Windows, but Googling should give you something). You will need to
> delete the matplotlib font cache so that it will discover new fonts.
> This lives in "~/.matplotlib/fontList.cache" on Unix platforms. Then
> you can change the default font family by setting the "font.family"
> rcParam to the name of the font.
Cool, this seems to work :)
Now, I only have one issue:
If I set a text, for example via
 ylabel(r"VCD$_{\sf strat}$ O$_{\sf 3}$ [DU]")
the subscript "strat" actually gets typeset in my OTF font, but the subset
"3" gets typeset in the standard math font (the fonts Cmr10 and Cmss10 get
embedded in the PDF file). This doesn't look nice, because I am using
MyriadPro, which is a sans-serif, while the CMR/CMSS fonts are serif fonts
...
Any ideas how to solve this?
Cheers!
Andreas.
From: Michael D. <md...@st...> - 2011年10月10日 15:45:50
On 10/10/2011 08:25 AM, Andreas H. wrote:
> Hi,
>
> I would like to use .otf fonts for typesetting text (axes, titles, labels,
> legends, ...) in matplotlib. Is this possible? If yes, how?
Yes. Put the font somewhere in your font search path. (Where that 
would be depends on your platform, but for user-local fonts, use 
"~/.fonts" on Linux, "~/Library/Fonts" on OS-X, I don't recall on 
Windows, but Googling should give you something). You will need to 
delete the matplotlib font cache so that it will discover new fonts. 
This lives in "~/.matplotlib/fontList.cache" on Unix platforms. Then 
you can change the default font family by setting the "font.family" 
rcParam to the name of the font.
Note that matplotlib does not support all of the features of otf fonts, 
like glyph substitution etc. -- it really only uses the basic 
"TrueType-like" parts of the font file.
> If not directly, perhaps via XeTeX?
>
This is another avenue, and has the potential to use the advanced 
features of otf. I've never attempted this myself, but perhaps one of 
the other users on this list who uses usetex more often can comment.
Mike
From: Andreas H. <li...@hi...> - 2011年10月10日 12:42:18
Hi,
I would like to use .otf fonts for typesetting text (axes, titles, labels,
legends, ...) in matplotlib. Is this possible? If yes, how?
If not directly, perhaps via XeTeX?
Cheers,
Andreas.
From: Benjamin R. <ben...@ou...> - 2011年10月10日 04:58:51
This would only happen if the program explicitly calls for macosx backend
with the use() function, or you have macosx backend selected in your
.matplotlibrc file.
Ben Root
On Sunday, October 9, 2011, Shuo Deng <den...@gm...> wrote:
> Hi All,
>
> I am using a Ubuntu 10.04 machine (Linux 2.6.32-28-generic #55-Ubuntu SMP
Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux)
>
> And I am running Matplotlib version 0.99.1.1.
>
> I got following errors when I am trying to run a program:
>
> Traceback (most recent call last):
> File "PS3_audionoise.py", line 11, in <module>
> import matplotlib.pyplot as p
> File "/usr/lib/pymodules/python2.6/matplotlib/pyplot.py", line 78, in
<module>
> new_figure_manager, draw_if_interactive, show = pylab_setup()
> File "/usr/lib/pymodules/python2.6/matplotlib/backends/__init__.py",
line 25, in pylab_setup
> globals(),locals(),[backend_name])
> File
"/usr/lib/pymodules/python2.6/matplotlib/backends/backend_macosx.py", line
20, in <module>
> from matplotlib.backends import _macosx
> ImportError: cannot import name _macosx
>
>
> Seems the _macosx is for Mac, not Ubuntu.
>
> I tried to install matplotlib both from source and using apt-get. But this
error happens every time. Does any one know how to fix this?
>
> Thanks!
>
>
From: Shuo D. <den...@gm...> - 2011年10月10日 04:51:37
Hi All,
I am using a Ubuntu 10.04 machine (Linux 2.6.32-28-generic #55-Ubuntu SMP
Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux)
And I am running Matplotlib version 0.99.1.1.
I got following errors when I am trying to run a program:
Traceback (most recent call last):
 File "PS3_audionoise.py", line 11, in <module>
 import matplotlib.pyplot as p
 File "/usr/lib/pymodules/python2.6/matplotlib/pyplot.py", line 78, in
<module>
 new_figure_manager, draw_if_interactive, show = pylab_setup()
 File "/usr/lib/pymodules/python2.6/matplotlib/backends/__init__.py", line
25, in pylab_setup
 globals(),locals(),[backend_name])
 File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_macosx.py",
line 20, in <module>
 from matplotlib.backends import _macosx
ImportError: cannot import name _macosx
Seems the _macosx is for Mac, not Ubuntu.
I tried to install matplotlib both from source and using apt-get. But this
error happens every time. Does any one know how to fix this?
Thanks!
From: Filipe P. A. F. <oc...@gm...> - 2011年10月09日 12:39:32
On Thu, Oct 6, 2011 at 14:50, Jeff Whitaker <js...@fa...> wrote:
> On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote:
>>
>> Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with
>> the pure python shapelib.py. However, that did break some of my
>> scripts when I use custom shapefiles.
>>
>> Here is a picture from Basemap 1.0.1,
>>
>> http://imageshack.us/photo/my-images/69/basemap101.png/
>>
>> and here the same script under Basemap 1.0.2,
>>
>> http://imageshack.us/photo/my-images/854/basemap102.png/
>>
>> and here is the script:
>> http://pastebin.com/WfePCFJi
>>
>> It probably has something to do with the way shapelib.py handle the
>> lines, As soon as I have some time I'll take a better look into that,
>> but I would like to ask if anyone has seen this before and/or if you
>> have a suggestion/solution for it.
>>
>> Thanks, Filipe
>
> Filipe: Were you able to resolve this? I just updated shapefile.py in the
> git repository, so you might try again on the off chance a bug was fixed.
> If the problem still persists, please point me to a shapefile that triggers
> the problem.
>
> -Jeff
Thanks, but the problem persists. I haven't got time to look into it
yet, as soon as I do I'll get back to you.
Regarding the shapefile, I do not remember the official source
anymore, but you can get a copy here:
https://build.opensuse.org/package/files?package=python-basemap&project=home%3Aocefpaf
Thanks again, Filipe
> --
> Jeffrey S. Whitaker     Phone : (303)497-6313
> Meteorologist        FAX  : (303)497-6449
> NOAA/OAR/PSD R/PSD1    Email : Jef...@no...
> 325 Broadway        Office : Skaggs Research Cntr 1D-113
> Boulder, CO, USA 80303-3328 Web  : http://tinyurl.com/5telg
>
>
From: Nils W. <nw...@ia...> - 2011年10月09日 09:06:59
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/backend_qt4.py", 
line 463, in edit_parameters
 figureoptions.figure_edit(axes, self)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/figureoptions.py", 
line 132, in figure_edit
 icon=get_icon('qt4_editor_options.svg'), 
apply=apply_callback)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py", 
line 511, in fedit
 dialog = FormDialog(data, title, comment, icon, 
parent, apply)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py", 
line 416, in __init__
 parent=self)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py", 
line 390, in __init__
 widget = FormComboWidget(data, comment=comment, 
parent=self)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py", 
line 368, in __init__
 widget = FormWidget(data, comment=comment, 
parent=self)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/backends/qt4_editor/formlayout.py", 
line 233, in __init__
 self.data = deepcopy(data)
 File "/usr/lib64/python2.6/copy.py", line 162, in 
deepcopy
 y = copier(x, memo)
 File "/usr/lib64/python2.6/copy.py", line 228, in 
_deepcopy_list
 y.append(deepcopy(a, memo))
 File "/usr/lib64/python2.6/copy.py", line 162, in 
deepcopy
 y = copier(x, memo)
 File "/usr/lib64/python2.6/copy.py", line 235, in 
_deepcopy_tuple
 y.append(deepcopy(a, memo))
 File "/usr/lib64/python2.6/copy.py", line 162, in 
deepcopy
 y = copier(x, memo)
 File "/usr/lib64/python2.6/copy.py", line 228, in 
_deepcopy_list
 y.append(deepcopy(a, memo))
 File "/usr/lib64/python2.6/copy.py", line 162, in 
deepcopy
 y = copier(x, memo)
 File "/usr/lib64/python2.6/copy.py", line 292, in 
_deepcopy_inst
 state = deepcopy(state, memo)
 File "/usr/lib64/python2.6/copy.py", line 162, in 
deepcopy
 y = copier(x, memo)
 File "/usr/lib64/python2.6/copy.py", line 255, in 
_deepcopy_dict
 y[deepcopy(key, memo)] = deepcopy(value, memo)
 File "/usr/lib64/python2.6/copy.py", line 189, in 
deepcopy
 y = _reconstruct(x, rv, 1, memo)
 File "/usr/lib64/python2.6/copy.py", line 323, in 
_reconstruct
 y = callable(*args)
 File "/usr/lib64/python2.6/copy_reg.py", line 93, in 
__newobj__
 return cls.__new__(cls, *args)
TypeError: instancemethod expected at least 2 arguments, 
got 0
From: Daniel H. <dh...@gm...> - 2011年10月08日 19:29:43
The pick radius for the X and Y axis artists are one-sided; is that
intentional?
Original (in class XAxis), file axis.py:
 def contains(self,mouseevent):
 """Test whether the mouse event occured in the x axis.
 """
 if callable(self._contains): return self._contains(self,mouseevent)
 x,y = mouseevent.x,mouseevent.y
 try:
 trans = self.axes.transAxes.inverted()
 xaxes,yaxes = trans.transform_point((x,y))
 except ValueError:
 return False, {}
 l,b = self.axes.transAxes.transform_point((0,0))
 r,t = self.axes.transAxes.transform_point((1,1))
 inaxis = xaxes>=0 and xaxes<=1 and (
 (y<b and y>b-self.pickradius) or
 (y>t and y<t+self.pickradius))
 return inaxis, {}
Corrected:
 def contains(self,mouseevent):
 """Test whether the mouse event occured in the x axis.
 """
 if callable(self._contains): return self._contains(self,mouseevent)
 x,y = mouseevent.x,mouseevent.y
 try:
 trans = self.axes.transAxes.inverted()
 xaxes,yaxes = trans.transform_point((x,y))
 except ValueError:
 return False, {}
 l,b = self.axes.transAxes.transform_point((0,0))
 r,t = self.axes.transAxes.transform_point((1,1))
 inaxis = xaxes>=0 and xaxes<=1 and (
 (y<b+self.pickradius and y>b-self.pickradius) or # <---
change on this line
 (y>t-self.pickradius and y<t+self.pickradius)) # <---
change on this line
 return inaxis, {}
-- 
Daniel Hyams
dh...@gm...
From: Matt E. <ma...@ea...> - 2011年10月08日 17:41:39
Hi Stoyan,
I had this problem, refer to
http://sourceforge.net/mailarchive/forum.php?thread_name=1315605880.26850.7.camel%40GARDEN&forum_name=matplotlib-users
It was dismissed as a code error (which I would perhaps dispute).
You have two options:-
- Adopt the approach seen here:
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html
- Or use the work around:
import matplotlib
# Free memory
matplotlib.pyplot.close()
Regards
Matt Earnshaw
On Sat, Oct 8, 2011 at 9:22 PM, <sto...@ma...> wrote:
> ------------------------------
> Message: 7
> Date: 2011年10月08日 21:22:45 +0400
> From: ????? ???????<sto...@ma...>
> Subject: [Matplotlib-users] Memory leak - canvas.draw() + pyqt4
> To:mat...@li...
> Message-ID:<E1R...@f2...>
> Content-Type: text/plain; charset="utf-8"
>
> Memory leak - canvas.draw() + pyqt4
> Hi, my name is Stoyan.
> ??? I use the following packages: python 2.6 , PyQt 4.8.5-1, numpy 1.6 and matplotlib 1.0.1. In my program Matplotlib library I have used a GUI application created by "PyQt". In the program there is a loop that updates a graph by calling:
> ?self.fig.canvas.draw()
> ?? But every time the graph is updated, the memory usage goes up.I the address listed bellow there is an explanation of the reason for the issue however, even though
> https://github.com/matplotlib/matplotlib/pull/89?
> ?? I have followed all instructions that have been specified in link,there is still a flaw in the programme due to a memory leak, though not a big one.?? I wondere whether there is alternative way to discharge this leak of memory and if so could you assist in solving it.
3 messages has been excluded from this view by a project administrator.

Showing results of 256

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