Re: [Matplotlib-users] Color in 3d plots
I have been looking at this for the past day and in am pretty sure I could replace the instance of polyc by the "cmap if statements" my colour array and I should be able to get close to what I want. However I am new to both python & mpl, and I am not entirely sure in how I would go about testing my hypothesis. Furthermore I am also relatively new to submitting fixes to open-source projects so I have lots of questions about how I would go about suggesting a modification. 1.)can I just modify the file in the C:\python26\Lib\site-packages\mpl-toolkits\mplot3d\axes3d.py file to do my tests? a. Also, where are these files usually kept in a linux environment ? b. What do I do with the. pyc files with the same name? are they re-complied automatically when I call the function externally? 2.)Is this capability already built in with the colour argument ? if so how do I properly call it? 3.)If I do make a modification should it be as a separate function with the additional variable or should I try to stuff the new capability into the old function 4.)is there a clean easy to follow tutorial for submitting changes via svn or can I rely on someone else to do the final commit? I have attached the function in question for reference to save others from digging down into their python directories Again thanks for taking your time to help me figure this out Mike Alger < Code> def plot_surface(self, X, Y, Z, *args, **kwargs): ''' Create a surface plot. By default it will be colored in shades of a solid color, but it also supports color mapping by supplying the *cmap* argument. == ArgumentDescription == *X*, *Y*, Data values as numpy.arrays *Z* *rstride* Array row stride (step size) *cstride* Array column stride (step size) *color* Color of the surface patches *cmap* A colormap for the surface patches. == ''' had_data = self.has_data() rows, cols = Z.shape tX, tY, tZ = np.transpose(X), np.transpose(Y), np.transpose(Z) rstride = kwargs.pop('rstride', 10) cstride = kwargs.pop('cstride', 10) color = kwargs.pop('color', 'b') color = np.array(colorConverter.to_rgba(color)) cmap = kwargs.get('cmap', None) polys = [] normals = [] avgz = [] for rs in np.arange(0, rows-1, rstride): for cs in np.arange(0, cols-1, cstride): ps = [] corners = [] for a, ta in [(X, tX), (Y, tY), (Z, tZ)]: ztop = a[rs][cs:min(cols, cs+cstride+1)] zleft = ta[min(cols-1, cs+cstride)][rs:min(rows, rs+rstride+1)] zbase = a[min(rows-1, rs+rstride)][cs:min(cols, cs+cstride+1):] zbase = zbase[::-1] zright = ta[cs][rs:min(rows, rs+rstride+1):] zright = zright[::-1] corners.append([ztop[0], ztop[-1], zbase[0], zbase[-1]]) z = np.concatenate((ztop, zleft, zbase, zright)) ps.append(z) # The construction leaves the array with duplicate points, which # are removed here. ps = zip(*ps) lastp = np.array([]) ps2 = [] avgzsum = 0.0 for p in ps: if p != lastp: ps2.append(p) lastp = p avgzsum += p[2] polys.append(ps2) avgz.append(avgzsum / len(ps2)) v1 = np.array(ps2[0]) - np.array(ps2[1]) v2 = np.array(ps2[2]) - np.array(ps2[0]) normals.append(np.cross(v1, v2)) polyc = art3d.Poly3DCollection(polys, *args, **kwargs) ## this is where a modification could be made to allow for a separate colour matrix if cmap is not None: polyc.set_array(np.array(avgz)) polyc.set_linewidth(0) else: colors = self._shade_colors(color, normals) polyc.set_facecolors(colors) self.add_collection(polyc) self.auto_scale_xyz(X, Y, Z, had_data) return polyc From: Mike Alger [mailto:mike.al...@ngcaerospace.com] Sent: November-23-09 3:42 PM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] Color in 3d plots This may be a dumb question, however I have been scratching my head trying to figure out how to plot a 3 dimensional plot with with a colour map different from the elevation(Z) parameter. An ex
Re: [Matplotlib-users] Large figure sizes get squashed or clipped?
Yes, I should have mentioned that; saving an image works fine. But then if I want to display it 1:1 with figimage() or such, I can't. :( Silly GUIs, not wanting to display a window larger than my screen On Wed, Nov 25, 2009 at 9:43 AM, Michael Droettboom wrote: > There may be a limitation on window sizes in the various GUI backends. Have > you tried using the non-GUI backend (agg), and now "show"ing it, but just > using "savefig"? > > Mike > > doct...@users.sourceforge.net wrote: >> >> I'm trying to make a 10 inch wide by 30 inch high, 72 dpi figure and >> display it interactively. Matplotlib seems to squash the height for >> anything over a certain size, depending on the backend: >> >> --- >> #!/usr/bin/env python >> >> import sys, os, matplotlib >> matplotlib.use('TkAgg') >> import matplotlib.pyplot as plt >> >> print os.uname() >> print sys.version >> print matplotlib.__version__ >> print >> >> f = plt.figure(figsize=(10,30), dpi=72) >> print "figheight before show(): %f" % f.get_figheight() >> plt.show() >> print "figheight after show(): %f" % f.get_figheight() >> -- >> >> Prints this: >> >> == >> ('Linux', 'prime', '2.6.31-14-generic', '#48-Ubuntu SMP Fri Oct 16 >> 14:05:01 UTC 2009', 'x86_64') >> 2.6.4 (r264:75706, Nov 2 2009, 14:44:17) >> [GCC 4.4.1] >> 0.99.0 >> >> figheight before show(): 30.00 >> figheight after show(): 22.027778 >> == >> >> Tk squashes heights over 12 inches (the heights do get larger as you >> request larger figures, but not as large as what you request); GTK >> goes up to 11; and Qt4Agg only goes up to 7.3. WX seems to be the >> only backend that will give me a 30 inch figure, but even then I have >> to manually resize the window to make it fit. This happens in scripts >> with pyplot, in ipython with or without -pylab, and via the matplotlib >> API. >> >> Is there some limitation on figure sizes? >> >> >> -- >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment - and >> focus on what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> ___ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] _path.so: undefined symbol: PyArray_API
Yes that was the bug. Please commit the fix. Xavier > Revision 7985 contains a typo (see bug tracker). Try replace the string > PY_ARRAYAUNIQUE_SYMBOL with PY_ARRAY_UNIQUE_SYMBOL in setupext.py. > > Christoph > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] _path.so: undefined symbol: PyArray_API
Revision 7985 contains a typo (see bug tracker). Try replace the string PY_ARRAYAUNIQUE_SYMBOL with PY_ARRAY_UNIQUE_SYMBOL in setupext.py. Christoph -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] _path.so: undefined symbol: PyArray_API
Hi, I'm trying to compile numpy/scipy and matplotlib (I did it N times without any problem). Numpy and scipy are ok (.test() is fine). However, from pylab import * fails with way: /usr/local/lib/python2.6/dist-packages/pylab.py in () > 1 2 3 from matplotlib.pylab import * 4 import matplotlib.pylab 5 __doc__ = matplotlib.pylab.__doc__ /usr/local/lib/python2.6/dist-packages/matplotlib/pylab.py in () 204 silent_list, iterable, dedent 205 --> 206 from matplotlib import mpl # pulls in most modules 207 208 from matplotlib.dates import date2num, num2date,\ /usr/local/lib/python2.6/dist-packages/matplotlib/mpl.py in () > 1 2 3 from matplotlib import artist 4 from matplotlib import axis 5 from matplotlib import axes 6 from matplotlib import cbook 7 from matplotlib import collections /usr/local/lib/python2.6/dist-packages/matplotlib/artist.py in () 4 import matplotlib.cbook as cbook 5 from matplotlib import docstring > 6 from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath 7 from path import Path 8 /usr/local/lib/python2.6/dist-packages/matplotlib/transforms.py in () 32 import numpy as np 33 from numpy import ma ---> 34 from matplotlib._path import affine_transform 35 from numpy.linalg import inv 36 ImportError: /usr/local/lib/python2.6/dist-packages/matplotlib/_path.so: undefined symbol: PyArray_API I may have a problem with the svn update but I'm not quite sure. Maybe it is just a temporary compatibility problem in between matplotlib and numpy. Can someone comment on that? I'm using: numpy At revision 7773. scipy At revision 6120. matplotlib At revision 7985. Xavier -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] encoding of files included in sphinx
Hi, just wanted to raise this problem on the devel list, where it probably belongs. Also, if nobody has time to look at it now and you prefer me to file a bug, please don't hesitate to tell it. the original post is there: http://thread.gmane.org/gmane.comp.python.matplotlib.general/20411 Cheers Le 21 novembre 2009 17:50, Sébastien Barthélemy a écrit : > Le 18 novembre 2009 17:24, Michael Droettboom a écrit : > > This is a bug -- but it has a fairly straightforward fix: to use Sphinx's >> "include" directive rather than roll our own as we currently do. This has >> been fixed in SVN r7972. plot-directive now takes an "encoding" option, >> exactly like the Sphinx include directive. It does not do automatic >> encoding detection (meaning it ignores the "# coding: latin1" comments), >> just as the Sphinx include directive does. >> > > Hello Michael, > > thank you for your fast reply and action. I just tried with the version > from trunk (r7978) and I still have an encoding problem on the same test > case. It seems to happen when the file is ran (to produce the figure) rather > than when it is included. I had a look at the code, but cannot understand > what is happenning, I would have expected imp to proprely guess the > encoding. > > Could you tell me if you have the same problem ? Do you have any idea of > what is going on ? > > Thanks ! > > $ git clone git://github.com/sbarthelemy/SphinxEncoding.git > $ cd SphinxEncoding/ > $ make html > sphinx-build -b html -d _build/doctrees . _build/html > Making output directory... > Running Sphinx v0.6.2 > loading pickled environment... not found > building [html]: targets for 1 source files that are out of date > updating environment: 1 added, 0 changed, 0 removed > /home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py:273: > UserWarning: Exception running plot ./fileutf8.py > Traceback (most recent call last): > File > "/home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", > line 270, in render_figures > run_code(plot_path, function_name, plot_code) > File > "/home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", > line 182, in run_code > "__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE)) > File "fileutf8.py", line 2, in > print(u"accent aigus é") > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in > position 13: ordinal not in range(128) > -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Compiling on Solaris
FWIW: It comes from a set of OpenSolaris patches to Python here: http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python-02-pycc.diff http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python-03-distutils-pycc.diff Mike Michael Droettboom wrote: > Where is it from? Can you send it as an attachment? Googling doesn't > reveal anything. > > Mike > > David Trethewey wrote: > >> Looking at it, it describes itself as a script for running the C/C++ >> compiler when building python modules. >> >> David >> >> Michael Droettboom wrote: >> >>> What is /usr/lib/python2.4/pycc? Some sort of wrapper around the >>> compiler? I don't have it on my Sun machine. I would start by >>> looking at that to see what it's doing. It may not be passing the >>> source file along to the compiler. >>> >>> Mike >>> >>> David Trethewey wrote: >>> I am trying to compile matplotlib on Solaris, I have run into problems as below compiling the ft2fonts extension. Anyone know why? David python setup.py build BUILDING MATPLOTLIB matplotlib: 0.99.1.1 python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] platform: sunos5 REQUIRED DEPENDENCIES numpy: 1.1.0 freetype2: 9.8.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.35 Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 * Guessing the library and include directories for * Tcl and Tk because the tclConfig.sh and * tkConfig.sh could not be found and/or parsed. wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: no 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: 8.15.4 latex: 3.14159 [Edit setup.cfg to suppress the above messages] pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension /usr/lib/python2.4/pycc -DNDEBUG -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. -I/usr/include/python2.4 -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o cc: No input file specified, no output generated error: command '/usr/lib/python2.4/pycc' failed with exit status 1 >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Compiling on Solaris
Where is it from? Can you send it as an attachment? Googling doesn't reveal anything. Mike David Trethewey wrote: > Looking at it, it describes itself as a script for running the C/C++ > compiler when building python modules. > > David > > Michael Droettboom wrote: >> What is /usr/lib/python2.4/pycc? Some sort of wrapper around the >> compiler? I don't have it on my Sun machine. I would start by >> looking at that to see what it's doing. It may not be passing the >> source file along to the compiler. >> >> Mike >> >> David Trethewey wrote: >>> I am trying to compile matplotlib on Solaris, I have run into >>> problems as below compiling the ft2fonts extension. Anyone know why? >>> >>> David >>> >>> >>> python setup.py build >>> >>> >>> >>> BUILDING MATPLOTLIB >>> matplotlib: 0.99.1.1 >>> python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] >>> platform: sunos5 >>> >>> REQUIRED DEPENDENCIES >>> numpy: 1.1.0 >>> freetype2: 9.8.3 >>> >>> OPTIONAL BACKEND DEPENDENCIES >>> libpng: 1.2.35 >>>Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 >>> * Guessing the library and include >>> directories for >>> * Tcl and Tk because the tclConfig.sh and >>> * tkConfig.sh could not be found and/or parsed. >>> wxPython: no >>> * wxPython not found >>> Gtk+: no >>> * Building for Gtk+ requires pygtk; you must >>> be able >>> * to "import gtk" in your build/install >>> environment >>>Mac OS X native: no >>> 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: 8.15.4 >>> latex: 3.14159 >>> >>> [Edit setup.cfg to suppress the above messages] >>> >>> >>> >>> pymods ['pylab'] >>> packages ['matplotlib', 'matplotlib.backends', >>> 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', >>> 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', >>> 'matplotlib.numerix', 'matplotlib.numerix.mlab', >>> 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', >>> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', >>> 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] >>> running build >>> running build_py >>> copying lib/matplotlib/mpl-data/matplotlibrc -> >>> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >>> copying lib/matplotlib/mpl-data/matplotlib.conf -> >>> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >>> running build_ext >>> building 'matplotlib.ft2font' extension >>> /usr/lib/python2.4/pycc -DNDEBUG >>> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API >>> -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include >>> -I/usr/sfw/include/freetype2 -I/usr/local/include -I. >>> -I/usr/include/python2.4 -c src/ft2font.cpp -o >>> build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o >>> cc: No input file specified, no output generated >>> error: command '/usr/lib/python2.4/pycc' failed with exit status 1 >>> >>> >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Compiling on Solaris
Looking at it, it describes itself as a script for running the C/C++ compiler when building python modules. David Michael Droettboom wrote: > What is /usr/lib/python2.4/pycc? Some sort of wrapper around the > compiler? I don't have it on my Sun machine. I would start by > looking at that to see what it's doing. It may not be passing the > source file along to the compiler. > > Mike > > David Trethewey wrote: >> I am trying to compile matplotlib on Solaris, I have run into >> problems as below compiling the ft2fonts extension. Anyone know why? >> >> David >> >> >> python setup.py build >> >> >> BUILDING MATPLOTLIB >> matplotlib: 0.99.1.1 >> python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] >> platform: sunos5 >> >> REQUIRED DEPENDENCIES >> numpy: 1.1.0 >> freetype2: 9.8.3 >> >> OPTIONAL BACKEND DEPENDENCIES >> libpng: 1.2.35 >>Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 >> * Guessing the library and include >> directories for >> * Tcl and Tk because the tclConfig.sh and >> * tkConfig.sh could not be found and/or parsed. >> wxPython: no >> * wxPython not found >> Gtk+: no >> * Building for Gtk+ requires pygtk; you must >> be able >> * to "import gtk" in your build/install >> environment >>Mac OS X native: no >> 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: 8.15.4 >> latex: 3.14159 >> >> [Edit setup.cfg to suppress the above messages] >> >> >> pymods ['pylab'] >> packages ['matplotlib', 'matplotlib.backends', >> 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', >> 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', >> 'matplotlib.numerix', 'matplotlib.numerix.mlab', >> 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', >> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', >> 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] >> running build >> running build_py >> copying lib/matplotlib/mpl-data/matplotlibrc -> >> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >> copying lib/matplotlib/mpl-data/matplotlib.conf -> >> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >> running build_ext >> building 'matplotlib.ft2font' extension >> /usr/lib/python2.4/pycc -DNDEBUG >> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API >> -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include >> -I/usr/sfw/include/freetype2 -I/usr/local/include -I. >> -I/usr/include/python2.4 -c src/ft2font.cpp -o >> build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o >> cc: No input file specified, no output generated >> error: command '/usr/lib/python2.4/pycc' failed with exit status 1 >> >> > -- David Trethewey Institute of Astronomy http://www.ast.cam.ac.uk/~dlrt2 Phone: 01223 339277 (office at IoA) Mobile: 07817 775159 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Compiling on Solaris
What is /usr/lib/python2.4/pycc? Some sort of wrapper around the compiler? I don't have it on my Sun machine. I would start by looking at that to see what it's doing. It may not be passing the source file along to the compiler. Mike David Trethewey wrote: > I am trying to compile matplotlib on Solaris, I have run into problems > as below compiling the ft2fonts extension. Anyone know why? > > David > > > python setup.py build > > BUILDING MATPLOTLIB > matplotlib: 0.99.1.1 > python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] > platform: sunos5 > > REQUIRED DEPENDENCIES > numpy: 1.1.0 > freetype2: 9.8.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.35 >Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 > * Guessing the library and include directories for > * Tcl and Tk because the tclConfig.sh and > * tkConfig.sh could not be found and/or parsed. > wxPython: no > * wxPython not found > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment >Mac OS X native: no > 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: 8.15.4 > latex: 3.14159 > > [Edit setup.cfg to suppress the above messages] > > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', > 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', > 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', > 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', > 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', > 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> > build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > /usr/lib/python2.4/pycc -DNDEBUG -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API > -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include > -I/usr/sfw/include/freetype2 -I/usr/local/include -I. > -I/usr/include/python2.4 -c src/ft2font.cpp -o > build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o > cc: No input file specified, no output generated > error: command '/usr/lib/python2.4/pycc' failed with exit status 1 > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Compiling on Solaris
I am trying to compile matplotlib on Solaris, I have run into problems as below compiling the ft2fonts extension. Anyone know why? David python setup.py build BUILDING MATPLOTLIB matplotlib: 0.99.1.1 python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] platform: sunos5 REQUIRED DEPENDENCIES numpy: 1.1.0 freetype2: 9.8.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.35 Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 * Guessing the library and include directories for * Tcl and Tk because the tclConfig.sh and * tkConfig.sh could not be found and/or parsed. wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: no 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: 8.15.4 latex: 3.14159 [Edit setup.cfg to suppress the above messages] pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension /usr/lib/python2.4/pycc -DNDEBUG -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. -I/usr/include/python2.4 -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o cc: No input file specified, no output generated error: command '/usr/lib/python2.4/pycc' failed with exit status 1 -- David Trethewey Institute of Astronomy http://www.ast.cam.ac.uk/~dlrt2 Phone: 01223 339277 (office at IoA) Mobile: 07817 775159 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] _backend_gdk not found
On Wed, Nov 25, 2009 at 8:01 AM, federico roncarolo wrote: > Hi, > > I'm new with matplotlib and > I'm trying to embed matplotlib objects into pygtk. > > I tried different backend imports (GTKAgg, GTK, GTKCairo) and always > get the same error (attached below) referring to the missing > _backend_gdk package. > > I work with MAC os x 10.6, python 2.6, pygtk2, matplotlib 0.99.1.1, > all installed via macports , even though I tried to install matplotlib > from source via the setup.py script and I get exactely the same problem. > > Could you help? > matplotlib is probably not finding pygtk at build time -- you need have pkg-config installed, and locate your pygtk-2.0.pc file and then add that path to your PKG_CONFIG_PATH. You can check the output of the build script at the beginning in the section OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.27 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.8.0 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.14.4, glib: 2.18.2, pygtk: 2.13.0, pygobject: 2.15.3 Mac OS X native: no Qt: Qt: 3.3.8, PyQt: 3.17.4 Qt4: Qt: 4.4.3, PyQt4: 4.4.4 Cairo: 1.4.12 You need to have an entry for Gtk or else the backend will not be built. JDH -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib for py 2.3
On Mon, Nov 23, 2009 at 3:09 PM, Olof Werneman wrote: > Hello! > > I am forced to use py version 2.3.3 (included in other software). I would > like to use matplotlib but can not find the version for py 2.3 on > sourceforge. I think it should be version 0.90.1? > Do you know how I can get hold of a copy of that version? If you have access to svn, you can do: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib mpl90.1 -r3352 If not, I can upload a tarball somewhere. JDH -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Line chart - want to show value of last data point
On Tue, Nov 24, 2009 at 5:38 PM, thumperj wrote: > > I'm certain this is in an example somewhere but I can't seem to find it. If > someone can just point me to the example I'll take it from there. Thank > you! > > I have a line chart. I just want to add text or callout box that shows the > last value in the line. Use "text" or "annotate", eg http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html Let us know if you need any more help JDH -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] matplotlib for py 2.3
Hello! I am forced to use py version 2.3.3 (included in other software). I would like to use matplotlib but can not find the version for py 2.3 on sourceforge. I think it should be version 0.90.1? Do you know how I can get hold of a copy of that version? Thanks! Best Ŕegards, Olof Werneman -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Color in 3d plots
This may be a dumb question, however i have been scratching my head trying to figure out how to plot a 3 dimensional plot with with a colour map different from the elevation(Z) parameter. An example of this done in Matlab would be [X,Y,Z] = peaks(30); C=Z'% could be anything other than Z as long as it has the same dimensions surf(X,Y,Z,C) axis([-3 3 -3 3 -10 5]) Is this possible with matplotlib '0.99.1' If so how do i go about doing this is there some sample code? Mike Alger, M.A.Sc mal...@ryerson.ca -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] _backend_gdk not found
Hi, I'm new with matplotlib and I'm trying to embed matplotlib objects into pygtk. I tried different backend imports (GTKAgg, GTK, GTKCairo) and always get the same error (attached below) referring to the missing _backend_gdk package. I work with MAC os x 10.6, python 2.6, pygtk2, matplotlib 0.99.1.1, all installed via macports , even though I tried to install matplotlib from source via the setup.py script and I get exactely the same problem. Could you help? Many thans in advance, Federico --- ImportError Traceback (most recent call last) /Volumes/froncaro/LINAC4/SOURCE/python/maplotlib_test.py in () 9 #from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar 10 ---> 11 from matplotlib.backends.backend_gtkcairo import FigureCanvasGTKCairo as FigureCanvas 12 13 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/matplotlib/backends/backend_gtkcairo.py in () 8 9 from matplotlib.backends import backend_cairo ---> 10 from matplotlib.backends.backend_gtk import * 11 12 backend_version = 'PyGTK(%d.%d.%d) ' % gtk.pygtk_version + \ /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/matplotlib/backends/backend_gtk.py in () 23 from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \ 24 FigureManagerBase, FigureCanvasBase, NavigationToolbar2, cursors ---> 25 from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK 26 from matplotlib.cbook import is_string_like, is_writable_file_like 27 from matplotlib.colors import colorConverter /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/matplotlib/backends/backend_gdk.py in () 27 from matplotlib.mathtext import MathTextParser 28 from matplotlib.transforms import Affine2D ---> 29 from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array 30 31 ImportError: No module named _backend_gdk -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Line chart - want to show value of last data point
I'm certain this is in an example somewhere but I can't seem to find it. If someone can just point me to the example I'll take it from there. Thank you! I have a line chart. I just want to add text or callout box that shows the last value in the line. Thank you very much, Chris -- View this message in context: http://old.nabble.com/Line-chart---want-to-show-value-of-last-data-point-tp26505250p26505250.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] python crashes on from matplotlib import pyplot
Windows XP Windows NT 5.1 Build 2600 matplotlib version 0.99.1 python version 2.6.4 Code that will crash python on my machine: >>> from matplotlib import pyplot as plt Error signature AppName: python.exe AppVer 0.0.0.0 aModName: _path.pyd ModVer: 0.0.0.0 Offset a09b Error report attached. Thank you, Gary Williams -- Gary Williams Clearwater Instrumentation, Inc. 304 Pleasant St., Watertown, MA 02472 USA +1 617 9242708 tel. +1 617 9242724 fax http://www.clearwater-inst.com ��<�?�x�m�l� �v�e�r�s�i�o�n�=�"�1�.�0�"� �e�n�c�o�d�i�n�g�=�"�U�T�F�-�1�6�"�?�>� � �<�D�A�T�A�B�A�S�E�>� � �<�E�X�E� �N�A�M�E�=�"�p�y�t�h�o�n�.�e�x�e�"� �F�I�L�T�E�R�=�"�G�R�A�B�M�I�_�F�I�L�T�E�R�_�P�R�I�V�A�C�Y�"�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�p�y�t�h�o�n�.�e�x�e�"� �S�I�Z�E�=�"�2�6�6�2�4�"� �C�H�E�C�K�S�U�M�=�"�0�x�7�C�C�0�1�8�E�2�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�7�F�8�5�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�5�:�0�2�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�5�:�0�2�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�p�y�t�h�o�n�w�.�e�x�e�"� �S�I�Z�E�=�"�2�7�1�3�6�"� �C�H�E�C�K�S�U�M�=�"�0�x�E�A�E�3�0�8�C�5�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�E�E�4�9�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�7�:�0�5�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�7�:�0�5�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�R�e�m�o�v�e�i�p�y�t�h�o�n�.�e�x�e�"� �S�I�Z�E�=�"�6�1�4�4�0�"� �C�H�E�C�K�S�U�M�=�"�0�x�E�5�8�9�B�8�A�D�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�0�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�2�:�4�5�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�2�:�4�5�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�R�e�m�o�v�e�m�a�t�p�l�o�t�l�i�b�.�e�x�e�"� �S�I�Z�E�=�"�1�9�6�0�9�6�"� �C�H�E�C�K�S�U�M�=�"�0�x�7�1�4�1�4�A�4�7�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�3�9�0�F�C�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�0�1�/�2�9�/�2�0�0�9� �1�1�:�5�7�:�0�9�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�0�1�/�2�9�/�2�0�0�9� �1�1�:�5�7�:�0�9�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�R�e�m�o�v�e�n�u�m�p�y�.�e�x�e�"� �S�I�Z�E�=�"�6�6�0�4�8�"� �C�H�E�C�K�S�U�M�=�"�0�x�A�0�3�2�9�9�3�F�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�1�C�7�E�5�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�1�:�4�2�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�1�:�4�2�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�R�e�m�o�v�e�p�y�r�e�a�d�l�i�n�e�.�e�x�e�"� �S�I�Z�E�=�"�6�1�4�4�0�"� �C�H�E�C�K�S�U�M�=�"�0�x�F�0�A�3�B�1�E�4�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�0�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�0�2�/�0�3�/�2�0�0�5� �2�0�:�3�7�:�4�3�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�0�2�/�0�3�/�2�0�0�5� �2�0�:�3�7�:�4�3�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�R�e�m�o�v�e�s�c�i�p�y�.�e�x�e�"� �S�I�Z�E�=�"�6�6�0�4�8�"� �C�H�E�C�K�S�U�M�=�"�0�x�A�0�3�2�9�9�3�F�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�1�C�7�E�5�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�1�:�4�2�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�1�:�4�2�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�R�e�m�o�v�e�t�a�b�l�e�s�.�e�x�e�"� �S�I�Z�E�=�"�6�6�0�4�8�"� �C�H�E�C�K�S�U�M�=�"�0�x�A�0�3�2�9�9�3�F�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�1�C�7�E�5�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�1�:�4�2�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�0�5�/�3�1�/�2�0�0�8� �0�4�:�5�1�:�4�2�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�w�9�x�p�o�p�e�n�.�e�x�e�"� �S�I�Z�E�=�"�4�9�6�6�4�"� �C�H�E�C�K�S�U�M�=�"�0�x�4�E�2�9�8�D�A�0�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�1�3�9�6�F�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�3�:�1�1�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�3�:�1�1�"� �/�>� � � � � � �<�M�A�T�C�H�I�N�G�_�F�I�L�E� �N�A�M�E�=�"�D�L�L�s�\�s�q�l�i�t�e�3�.�d�l�l�"� �S�I�Z�E�=�"�5�7�2�9�2�8�"� �C�H�E�C�K�S�U�M�=�"�0�x�9�5�E�E�1�9�8�3�"� �M�O�D�U�L�E�_�T�Y�P�E�=�"�W�I�N�3�2�"� �P�E�_�C�H�E�C�K�S�U�M�=�"�0�x�9�0�0�9�6�"� �L�I�N�K�E�R�_�V�E�R�S�I�O�N�=�"�0�x�0�"� �L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�9� �0�7�:�2�4�:�5�6�"� �U�P�T�O�_�L�I�N�K�_�D�A�T�E�=�"�1�0�/�2�6�/�2�0�0�
Re: [Matplotlib-users] Large figure sizes get squashed or clipped?
There may be a limitation on window sizes in the various GUI backends. Have you tried using the non-GUI backend (agg), and now "show"ing it, but just using "savefig"? Mike doct...@users.sourceforge.net wrote: > I'm trying to make a 10 inch wide by 30 inch high, 72 dpi figure and > display it interactively. Matplotlib seems to squash the height for > anything over a certain size, depending on the backend: > > --- > #!/usr/bin/env python > > import sys, os, matplotlib > matplotlib.use('TkAgg') > import matplotlib.pyplot as plt > > print os.uname() > print sys.version > print matplotlib.__version__ > print > > f = plt.figure(figsize=(10,30), dpi=72) > print "figheight before show(): %f" % f.get_figheight() > plt.show() > print "figheight after show(): %f" % f.get_figheight() > -- > > Prints this: > > == > ('Linux', 'prime', '2.6.31-14-generic', '#48-Ubuntu SMP Fri Oct 16 > 14:05:01 UTC 2009', 'x86_64') > 2.6.4 (r264:75706, Nov 2 2009, 14:44:17) > [GCC 4.4.1] > 0.99.0 > > figheight before show(): 30.00 > figheight after show(): 22.027778 > == > > Tk squashes heights over 12 inches (the heights do get larger as you > request larger figures, but not as large as what you request); GTK > goes up to 11; and Qt4Agg only goes up to 7.3. WX seems to be the > only backend that will give me a 30 inch figure, but even then I have > to manually resize the window to make it fit. This happens in scripts > with pyplot, in ipython with or without -pylab, and via the matplotlib > API. > > Is there some limitation on figure sizes? > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users