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





Showing results of 303

<< < 1 2 3 4 5 .. 13 > >> (Page 3 of 13)
On Wed, May 26, 2010 at 10:47 AM, Pim Schellart <p.s...@gm...> wrote:
> Dear John and George,
>
> I am happy to report that everything is now working!
> The latest SVN patch fixed the fetch problem and a complete removal of
> my custom compiled libpng and libfreetype2 followed by:
>
> sudo make -f make.osx fetch deps mpl_build mpl_install
> sudo python setup.py install
>
> did the rest.
>
> Thank you for all your help!
>
> Kind regards,
>
> Pim Schellart
>
> P.S. I am looking forward to seeing 64 binaries for Python 2.6/2.7 and
> numpy/scipy/matplotlib on OSX 10.6 at some point in the future :)
Well, now you can make them yourself :-)
 > make -f make.osx binaries
But we will try to get some official ones out in the near future.
JDH
Dear John and George,
I am happy to report that everything is now working!
The latest SVN patch fixed the fetch problem and a complete removal of
my custom compiled libpng and libfreetype2 followed by:
sudo make -f make.osx fetch deps mpl_build mpl_install
sudo python setup.py install
did the rest.
Thank you for all your help!
Kind regards,
Pim Schellart
P.S. I am looking forward to seeing 64 binaries for Python 2.6/2.7 and
numpy/scipy/matplotlib on OSX 10.6 at some point in the future :)
2010年5月26日 John Hunter <jd...@gm...>:
> On Wed, May 26, 2010 at 8:20 AM, John Hunter <jd...@gm...> wrote:
>> On Wed, May 26, 2010 at 8:14 AM, Pim Schellart <p.s...@gm...> wrote:
>>> I still get the error (after svn up to revision 8336) but strangely
>>> when I try to decompress manually I get:
>>>
>>> matplotlib $ gunzip zlib-1.2.3.tar.gz
>>>
>>> gzip: zlib-1.2.3.tar.gz: not in gzip format
>>
>> I'm getting that too -- looks like the target has moved. When I cat
>> the file I see
>
> OK, I think I have this fixed. I can now fetch valid files:
>
> jdhunter@uqbar:mpl> make -f make.osx clean
> rm -rf zlib-1.2.3.tar.gz libpng-1.2.39.tar.bz2 \
>    freetype-2.3.11.tar.bz2 bdist_mpkg-.tar.gz \
>    bdist_mpkg- \
>    zlib-1.2.3 libpng-1.2.39 freetype-2.3.11 \
>    build
> jdhunter@uqbar:mpl> make -f make.osx fetch
> python2.6 -c 'import urllib;
> urllib.urlretrieve("http://superb-sea2.dl.sourceforge.net/project/libpng/zlib/1.2.3/zlib-1.2.3.tar.gz",
> "zlib-1.2.3.tar.gz")' &&\
>    python2.6 -c 'import urllib;
> urllib.urlretrieve("http://sourceforge.net/projects/libpng/files/libpng-stable/1.2.39/libpng-1.2.39.tar.gz/download",
> "libpng-1.2.39.tar.gz")' &&\
>    python2.6 -c 'import urllib;
> urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2",
> "freetype-2.3.11.tar.bz2")'
> jdhunter@uqbar:mpl> tar xvfz zlib-1.2.3.tar.gz|head
> zlib-1.2.3/
> zlib-1.2.3/adler32.c
> zlib-1.2.3/algorithm.txt
> zlib-1.2.3/amiga/
> zlib-1.2.3/amiga/Makefile.pup
> zlib-1.2.3/amiga/Makefile.sas
> zlib-1.2.3/as400/
> zlib-1.2.3/as400/bndsrc
> zlib-1.2.3/as400/compile.clp
> zlib-1.2.3/as400/readme.txt
> jdhunter@uqbar:mpl> tar xvfz libpng-1.2.39.tar.gz |head
> libpng-1.2.39/
> libpng-1.2.39/pngpread.c
> libpng-1.2.39/pngnow.png
> libpng-1.2.39/README
> libpng-1.2.39/config.guess
> libpng-1.2.39/TODO
> libpng-1.2.39/pngrtran.c
> libpng-1.2.39/pngwutil.c
> libpng-1.2.39/configure
> libpng-1.2.39/pngtest.c
> jdhunter@uqbar:mpl> tar tvfj freetype-2.3.11.tar.bz2 |head
> tar: Record size = 8 blocks
> drwxr-xr-x wl/users     0 2009年10月10日 11:37 freetype-2.3.11/
> -rw-r--r-- wl/users   35819 2009年03月14日 06:45 freetype-2.3.11/vms_make.com
> -rw-r--r-- wl/users   91573 2009年03月14日 06:45 freetype-2.3.11/ChangeLog.20
> -rw-r--r-- wl/users    236 2009年03月14日 06:45 freetype-2.3.11/version.sed
> -rw-r--r-- wl/users    1469 2009年03月14日 06:45 freetype-2.3.11/Jamrules
> -rw-r--r-- wl/users    5687 2009年10月10日 11:21 freetype-2.3.11/Jamfile
> -rwxr-xr-x wl/users    3573 2009年07月03日 06:28 freetype-2.3.11/configure
> drwxr-xr-x wl/users     0 2009年10月10日 11:37 freetype-2.3.11/docs/
> -rw-r--r-- wl/users    1260 2009年03月14日 06:45 freetype-2.3.11/docs/LICENSE.TXT
> drwxr-xr-x wl/users     0 2009年10月10日 11:37 freetype-2.3.11/docs/reference/
>
From: Sarah G. <sf...@ca...> - 2010年05月26日 14:35:08
Brilliant, that worked perfectly!
Thanks very much,
Sarah
Jae-Joon Lee wrote:
> You need to define your own transform. And the best way is to read
> through the transforms.py. Here is a modified version of your example
> that uses a custom transform.
>
> However, often you may need to use a custom locator also for this kind
> of transform.
>
> HTH,
>
> -JJ
>
> from matplotlib.transforms import Transform, BlendedGenericTransform,
> IdentityTransform
>
> c = 3.e2
>
> class Freq2WavelengthTransform(Transform):
> input_dims = 1
> output_dims = 1
> is_separable = False
> has_inverse = True
>
> def transform(self, tr):
> return c/tr
>
> def inverted(self):
> return Wavelength2FreqTransform()
>
>
> class Wavelength2FreqTransform(Freq2WavelengthTransform):
> def inverted(self):
> return Freq2WavelengthTransform()
>
>
> import matplotlib.pyplot as plt
> from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
>
>
> aux_trans = BlendedGenericTransform(Freq2WavelengthTransform(),
> IdentityTransform())
>
> fig = plt.figure(2)
>
> ax_GHz = SubplotHost(fig, 1,1,1)
> fig.add_subplot(ax_GHz)
> ax_GHz.set_xlabel("Frequency (GHz)")
>
> import numpy as np
> xvals = np.arange(199.9, 999.9, 0.1)
> #make some test data
> data = np.sin(0.03*xvals)
>
> ax_mm = ax_GHz.twin(aux_trans)
> ax_mm.set_xlabel('Wavelength (mm)')
> ax_mm.set_viewlim_mode("transform")
> ax_mm.axis["right"].toggle(ticklabels=False)
>
> ax_GHz.plot(xvals, data)
> ax_GHz.set_xlim(200, 1000)
>
> plt.draw()
> plt.show()
>
>
>
>
> On Wed, May 26, 2010 at 7:24 AM, Sarah Graves <sf...@ca...> wrote:
> 
>> Hi,
>>
>> I've made a matplotlib plot with frequency on the x-axis, and I would
>> like to add an additional x-axis at the top that is measured in
>> wavelength , i.e. wavelength = 3e8 / frequency
>>
>> Is there anyway to do this transformation automatically in matplotlib?
>>
>> I tried to give a transformation argument to the ax.twin() axes_grid
>> command, as shown in the axes_grid parasite_simple2.py example, but
>> I've not managed to get this to work with a transformation more
>> complicated than a scaling by a constant factor. I tried looking at the
>> matplotlib.transforms documentation but I couldn't see a way to do this
>> transformation there. I'm not sure I understood it very well though. I
>> can't simply use the twiny( ) command and manually set the limits as the
>> wavelength ticks will not occur at the points corresponding to the
>> correct frequency.
>>
>> At the moment I am using the twin() command, and then I manually choose
>> a sensible set of tickvalues I want in wavelength units, calculate the
>> corresponding frequency values, and then set the tick locations to be
>> the frequency values and the tick labels to be the wavelength values.
>>
>> Thanks,
>> Sarah
>>
>> Example code:
>> import numpy as np
>> import matplotlib
>> from mpl_toolkits.axes_grid1.parasite_axes import SubplotHost
>> import matplotlib.pyplot as plt
>> #create xaxis range of values -- 200 -- 1000 Ghz
>> xvals = np.arange(199.9, 999.9, 0.1)
>> #make some test data
>> data = np.sin(0.03*xvals)
>> #set up the figure
>> fig = plt.figure()
>> ax = SubplotHost(fig, 111)
>> fig.add_subplot(ax)
>> ax2 = ax.twin()
>> #plot data
>> ax.plot(xvals, data)
>> ax.set_xlim(200.0, 1000.0)
>> #set up ax2 with chosen values
>> wavelength_labels = np.array([0.4, 0.6, 0.8,1.0,1.2, 1.4]) #in mm
>> frequency_points = 3e2/wavelength_labels #in GHz
>> ax2.set_xticks(frequency_points)
>> ax2.set_xticklabels(wavelength_labels)
>> ax2.set_xlabel('Wavelength (mm)')
>> ax.set_xlabel('Frequency (GHz)')
>> plt.show()
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>> 
From: alex a. <ai...@vi...> - 2010年05月26日 14:28:32
today i produced an image that failed to save to eps. 
i can save the file in pdf, but i get the same error if i try to use
pdf2ps. png works too, but its not vector. 
not sure if its important, but the image has 401 lines, with 500 points
each.
the image is produced from a bunch of data files and im not sure how to
most effectively send this over email ( in case you all wanted to
re-produced the error).
the main error is 
Error: /nocurrentpoint in --lineto--
here is the whole error
thanks 
alex
--------------------------------------------------------------
In [774]: savefig ('output.eps', format='eps')
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
RuntimeError: ghostscript was not able to process your image.
Here is the full report generated by ghostscript:
GPL Ghostscript 8.70 (2009年07月31日)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading CenturySchL-Roma font
from /var/lib/defoma/gs.d/dirs/fonts/c059013l.pfb... 3081280 1718017
6003072 4188814 1 done.
Error: /nocurrentpoint in --lineto--
Operand stack:
 178.896 120.362
Execution stack:
 %interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1862 1 3 %
oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop
1739 1 3 %oparray_pop --nostringval-- %
errorexec_pop .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
 --dict:1154/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)--
--dict:5/6(ro)(L)-- --dict:178/300(L)-- --dict:44/200(L)--
--dict:7/7(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 34416
From: Sandy Y. <cd...@li...> - 2010年05月26日 14:19:11
 
Yes I wrote about problem with show() , too
 
is matplotlib seriouse project????!!!!
Sandy
 
Hi,
I am a real newbie at matplotlib, so I apologize if this is an obvious
question.
I am running ipython in emacs and while the first time I use the show()
command in the ipython buffer the graph shows up fine, subsequent times that
I call the command it, the graph does not show up. I am on ubuntu 10.04
(64) and I built the matplotlib library from source.
I am trying to get the graphs to show up the subsequent times as well (sorry
for the pun).
Thanks for any help.
 
----------------------------------------
Ted Rosenbaum
Graduate Student
Department of Economics
Yale University
 
> From: mat...@li...
> Subject: Matplotlib-users Digest, Vol 48, Issue 46
> To: mat...@li...
> Date: 2010年5月26日 04:41:13 +0000
> 
> Send Matplotlib-users mailing list submissions to
> mat...@li...
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
> mat...@li...
> 
> You can reach the person managing the list at
> mat...@li...
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
> 
> 
> Today's Topics:
> 
> 1. interpolate inside a circle (Carlos Grohmann)
> 2. Re: Mac backend problems for nearly all backends.
> (Jonathan Stickel)
> 3. Re: Mac backend problems for nearly all backends. (Daniel Welling)
> 4. Show() in emacs (Ted Rosenbaum)
> 5. Re: Mac backend problems for nearly all backends.
> (Michiel de Hoon)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: 2010年5月25日 21:47:14 -0300
> From: Carlos Grohmann <car...@gm...>
> Subject: [Matplotlib-users] interpolate inside a circle
> To: matplotlib-users <mat...@li...>
> Message-ID:
> <AAN...@ma...>
> Content-Type: text/plain; charset=windows-1252
> 
> Dears, I want to interpolate some irregular data using radial basis.
> Can I interpolate only the data that falls inside a circle (or a
> polygon)?
> 
> TIA
> 
> -- 
> Prof. Carlos Henrique Grohmann - Geologist D.Sc.
> Institute of Geosciences - Univ. of S?o Paulo, Brazil
> http://www.igc.usp.br/pessoais/guano
> Linux User #89721
> ________________
> Can?t stop the signal.
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: 2010年5月25日 20:48:27 -0600
> From: Jonathan Stickel <jjs...@vc...>
> Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> backends.
> To: mat...@li...
> Message-ID: <4BF...@vc...>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 05/25/2010 mat...@li... wrote:
> > From: Christopher Barker <Chr...@no...>
> > Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> > backends.
> > To: mat...@li...
> > Message-ID: <4BF...@no...>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > 
> > Jonathan Stickel wrote:
> > > > I've experienced many of the same problems on Mac OS X 10.6.3 
> > (Snow 
> > > > Leopard). I have python/scipy/numpy/matplotlib/ipython all 
> > installed 
> > > > via Macports.
> > 
> > Just to be clear -- this sounds like a MacPorts problem, not 
> > necessarily 
> > an OS-X problem.
> > 
> > 
> > > > I finally have the WXagg backend 
> > > > working, but that required installed WXPython with the gtk/X11 
> > backend.
> > 
> > Does MacPorts not allow a native wx? Maybe becasue you're running 64 
> > bit?
> > 
> 
> Right, I am running Snow Leopard and have Python 2.6 installed 64 bit. 
> Apparently, Carbon requires 32 bit and wxWidgets/wxPython does not (yet) 
> support Cocoa. This problem will bite you in one form or another on Mac 
> OS X, regardless of whether you are using Macports or something else.
> 
> > Anyway, I guess that's why I don't use macports for python.
> 
> See above.
> 
> > 
> > 
> > >> >> In any case, I have been having royal problems with GUI 
> > backends and
> > >> >> matplotlib.
> > >> >> Some background on where I've been having these problems:
> > >> >> Machine 1: OSX 10.5.8 G5 PPC
> > 
> > That's what I've been running, and I've had no real issues (Haven't 
> > tried the OS-X back-end) -- but I'm using the python.org python.
> > 
> > >> >> Machine 2: OSX 10.5.7 Macbook pro/Intel
> > >> >> Code versions: python 2.5.4, Numpy 1.3.0, Scipy 0.7.0 (all 
> > obtained through
> > >> >> fink.)
> > 
> > OK -- then a fink issue, rather than a Macports one -- same idea, 
> > though.
> > 
> > My impression is that neither fink nor macports do well with Mac GUI 
> > stuff -- unless you're talking X11.
> 
> Not exactly true. Fink and Macports are tools and have their 
> shortcomings, but both can be immensely useful for installing all this 
> stuff. Otherwise, you do it manually, which of course can cause you 
> trouble as well. Anyway, getting off topic. I only intended to report 
> some form of success with the wx backend.
> 
> Jonathan
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: 2010年5月25日 21:23:12 -0600
> From: Daniel Welling <dan...@gm...>
> Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> backends.
> To: Jonathan Stickel <jjs...@vc...>
> Cc: mat...@li...
> Message-ID:
> <AAN...@ma...>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Thanks for the info...
> 1)The problem does manifest in the same manner through the normal python
> prompt.
> 2) I'm not sure what is meant by a "framework install." Everything (except
> MPL 99.1.1) was installed through fink.
> 3) I've never had problems with Fink software before, and I have a crapload
> (technical term) of stuff installed. This is neither here nor there,
> however, as it seems that not all Pythons are created equal.
> 4) A colleague of mine claims to have everything working on a new Intel mac
> (I'm guessing 10.5.8) right out of MacPorts; I'll talk to him more and try
> to find out what is different between our two cases.
> 5) I have yet to try installing wxPython for python 2.5; this may work in
> the end. It's not in fink, so I've put off installing it manually. I'll
> give it a shot and let you know how it works.
> 6) Although I use x11 and not the native Mac terminal, I'm not sure if this
> requires me to install different packages for the gui stuff. Could you guys
> expand on this, please?
> 
> Finally, I've had some measure of success by installing Qt4 (through Fink)
> and using the Qt4Agg backend. Because the current stable fink Qt4 release
> (4.6.1) has a bug, I need to apply the fix found here:
> http://old.nabble.com/Qt4-backend:-critical-bug-with-PyQt4-v4.6%2B-td26205716.html
> in order to allow more than one plot per session to be shown. I'll re-write
> the fix here for convenience and clarity (the original did not have the
> proper module references in it, so this saves some 5 minutes of
> tab-completion work in ipython...)
> 
> # Add this before "FigureManagerQT" class
> class FigureWindow(QtGui.QMainWindow):
> def __init__(self):
> super(FigureWindow, self).__init__()
> def closeEvent(self, event):
> super(FigureWindow, self).closeEvent(event)
> if QtCore.PYQT_VERSION_STR.startswith('4.6'):
> self.emit(QtCore.SIGNAL('destroyed()'))
> # Replace "QtGui.QMainWindow" by "FigureWindow" in
> "FigureManagerQT"'s constructor
> 
> This works perfectly on my Intel machine running MPL 99.1.1. It's fast and
> looks sharp. I'll report back on the PPC/99.0 combo tomorrow; Qt4 takes a
> thousand hours to compile.
> 
> Thanks for the input.
> 
> On Tue, May 25, 2010 at 8:48 PM, Jonathan Stickel <jjs...@vc...> wrote:
> 
> > On 05/25/2010 mat...@li... wrote:
> > > From: Christopher Barker <Chr...@no...>
> > > Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> > > backends.
> > > To: mat...@li...
> > > Message-ID: <4BF...@no...>
> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > >
> > > Jonathan Stickel wrote:
> > > > > I've experienced many of the same problems on Mac OS X 10.6.3
> > > (Snow
> > > > > Leopard). I have python/scipy/numpy/matplotlib/ipython all
> > > installed
> > > > > via Macports.
> > >
> > > Just to be clear -- this sounds like a MacPorts problem, not
> > > necessarily
> > > an OS-X problem.
> > >
> > >
> > > > > I finally have the WXagg backend
> > > > > working, but that required installed WXPython with the gtk/X11
> > > backend.
> > >
> > > Does MacPorts not allow a native wx? Maybe becasue you're running 64
> > > bit?
> > >
> >
> > Right, I am running Snow Leopard and have Python 2.6 installed 64 bit.
> > Apparently, Carbon requires 32 bit and wxWidgets/wxPython does not (yet)
> > support Cocoa. This problem will bite you in one form or another on Mac
> > OS X, regardless of whether you are using Macports or something else.
> >
> > > Anyway, I guess that's why I don't use macports for python.
> >
> > See above.
> >
> > >
> > >
> > > >> >> In any case, I have been having royal problems with GUI
> > > backends and
> > > >> >> matplotlib.
> > > >> >> Some background on where I've been having these problems:
> > > >> >> Machine 1: OSX 10.5.8 G5 PPC
> > >
> > > That's what I've been running, and I've had no real issues (Haven't
> > > tried the OS-X back-end) -- but I'm using the python.org python.
> > >
> > > >> >> Machine 2: OSX 10.5.7 Macbook pro/Intel
> > > >> >> Code versions: python 2.5.4, Numpy 1.3.0, Scipy 0.7.0 (all
> > > obtained through
> > > >> >> fink.)
> > >
> > > OK -- then a fink issue, rather than a Macports one -- same idea,
> > > though.
> > >
> > > My impression is that neither fink nor macports do well with Mac GUI
> > > stuff -- unless you're talking X11.
> >
> > Not exactly true. Fink and Macports are tools and have their
> > shortcomings, but both can be immensely useful for installing all this
> > stuff. Otherwise, you do it manually, which of course can cause you
> > trouble as well. Anyway, getting off topic. I only intended to report
> > some form of success with the wx backend.
> >
> > Jonathan
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> Message: 4
> Date: 2010年5月25日 23:40:25 -0400
> From: Ted Rosenbaum <ted...@ya...>
> Subject: [Matplotlib-users] Show() in emacs
> To: mat...@li...
> Message-ID:
> <AAN...@ma...>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
> I am a real newbie at matplotlib, so I apologize if this is an obvious
> question.
> I am running ipython in emacs and while the first time I use the show()
> command in the ipython buffer the graph shows up fine, subsequent times that
> I call the command it, the graph does not show up. I am on ubuntu 10.04
> (64) and I built the matplotlib library from source.
> I am trying to get the graphs to show up the subsequent times as well (sorry
> for the pun).
> Thanks for any help.
> 
> ----------------------------------------
> Ted Rosenbaum
> Graduate Student
> Department of Economics
> Yale University
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> Message: 5
> Date: 2010年5月25日 21:41:06 -0700 (PDT)
> From: Michiel de Hoon <mjl...@ya...>
> Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> backends.
> To: Jonathan Stickel <jjs...@vc...>, Daniel Welling
> <dan...@gm...>
> Cc: mat...@li...
> Message-ID: <812...@we...>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 
> 
> > 1)The problem does manifest in the same manner through the normal python
> prompt.
> 
> OK that is good to know.
> 
> > 2) I'm not sure what is meant by a "framework install." ?Everything 
> (except MPL 99.1.1)
> > was installed through fink.
> 
> This is important. Check where python is installed. If 'which python' shows /Library/Frameworks/Python.framework/Versions/2.6/bin/python or something similar, you have a framework version. If on the other hand it shows /usr/bin/python, /usr/local/bin/python, or something similar, you don't have a framework version. I don't know what fink installs by default. If you don't have Python installed as a framework, some backends (including the MacOSX backend) will not interact properly with the window manager. This is a Mac peculiarity. If you build Python from source, you can specify to install a framework version by passing the --enable-framework option to the configure script.
> 
> 
> 
> > 6) Although I use x11 and not the native Mac terminal, I'm not sure if this requires me to > install different packages for the gui stuff. ?Could you guys expand on this, please?
> 
> Some backends go make use of X11 (e.g., the gtkcairo backend), others do not (e.g., the MacOSX backend). The MacOSX backend should work with both the native Mac terminal and with an X11 terminal.
> 
> --Michiel.
> 
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> End of Matplotlib-users Digest, Vol 48, Issue 46
> ************************************************
 		 	 		 
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969 
From: Jae-Joon L. <lee...@gm...> - 2010年05月26日 14:14:12
There is no clear api to manage this.
Try something like
ax = gca()
for t in ax.xaxis.get_major_ticks():
 t.tick1On = False
 t.tick2On = False
-JJ
On Wed, May 26, 2010 at 6:30 AM, John Reid <j....@ma...> wrote:
> Hi,
>
> This is probably easy to do but I didn't work it out from the
> documentation so far. How do I remove the tick lines on a plot but keep
> the labels?
>
> Thanks,
> John.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Jae-Joon L. <lee...@gm...> - 2010年05月26日 14:08:19
You need to define your own transform. And the best way is to read
through the transforms.py. Here is a modified version of your example
that uses a custom transform.
However, often you may need to use a custom locator also for this kind
of transform.
HTH,
-JJ
from matplotlib.transforms import Transform, BlendedGenericTransform,
IdentityTransform
c = 3.e2
class Freq2WavelengthTransform(Transform):
 input_dims = 1
 output_dims = 1
 is_separable = False
 has_inverse = True
 def transform(self, tr):
 return c/tr
 def inverted(self):
 return Wavelength2FreqTransform()
class Wavelength2FreqTransform(Freq2WavelengthTransform):
 def inverted(self):
 return Freq2WavelengthTransform()
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
aux_trans = BlendedGenericTransform(Freq2WavelengthTransform(),
IdentityTransform())
fig = plt.figure(2)
ax_GHz = SubplotHost(fig, 1,1,1)
fig.add_subplot(ax_GHz)
ax_GHz.set_xlabel("Frequency (GHz)")
import numpy as np
xvals = np.arange(199.9, 999.9, 0.1)
#make some test data
data = np.sin(0.03*xvals)
ax_mm = ax_GHz.twin(aux_trans)
ax_mm.set_xlabel('Wavelength (mm)')
ax_mm.set_viewlim_mode("transform")
ax_mm.axis["right"].toggle(ticklabels=False)
ax_GHz.plot(xvals, data)
ax_GHz.set_xlim(200, 1000)
plt.draw()
plt.show()
On Wed, May 26, 2010 at 7:24 AM, Sarah Graves <sf...@ca...> wrote:
> Hi,
>
> I've made a matplotlib plot with frequency on the x-axis, and I would
> like to add an additional x-axis at the top that is measured in
> wavelength , i.e. wavelength = 3e8 / frequency
>
> Is there anyway to do this transformation automatically in matplotlib?
>
> I tried to give a transformation argument to the ax.twin() axes_grid
> command, as shown in the axes_grid parasite_simple2.py example, but
> I've not managed to get this to work with a transformation more
> complicated than a scaling by a constant factor. I tried looking at the
> matplotlib.transforms documentation but I couldn't see a way to do this
> transformation there. I'm not sure I understood it very well though. I
> can't simply use the twiny( ) command and manually set the limits as the
> wavelength ticks will not occur at the points corresponding to the
> correct frequency.
>
> At the moment I am using the twin() command, and then I manually choose
> a sensible set of tickvalues I want in wavelength units, calculate the
> corresponding frequency values, and then set the tick locations to be
> the frequency values and the tick labels to be the wavelength values.
>
> Thanks,
> Sarah
>
> Example code:
> import numpy as np
> import matplotlib
> from mpl_toolkits.axes_grid1.parasite_axes import SubplotHost
> import matplotlib.pyplot as plt
> #create xaxis range of values -- 200 -- 1000 Ghz
> xvals = np.arange(199.9, 999.9, 0.1)
> #make some test data
> data = np.sin(0.03*xvals)
> #set up the figure
> fig = plt.figure()
> ax = SubplotHost(fig, 111)
> fig.add_subplot(ax)
> ax2 = ax.twin()
> #plot data
> ax.plot(xvals, data)
> ax.set_xlim(200.0, 1000.0)
> #set up ax2 with chosen values
> wavelength_labels = np.array([0.4, 0.6, 0.8,1.0,1.2, 1.4]) #in mm
> frequency_points = 3e2/wavelength_labels #in GHz
> ax2.set_xticks(frequency_points)
> ax2.set_xticklabels(wavelength_labels)
> ax2.set_xlabel('Wavelength (mm)')
> ax.set_xlabel('Frequency (GHz)')
> plt.show()
>
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
On Wed, May 26, 2010 at 5:18 AM, Pim Schellart <p.s...@gm...> wrote:
> Hi John and George,
>
> I did of course rtfm :)
> However when I do this for the latest svn checkout I get:
>
> matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install
> Password:
> python2.6 -c 'import urllib;
> urllib.urlretrieve("http://www.zlib.net/zlib-1.2.3.tar.gz",
> "zlib-1.2.3.tar.gz")' &&\
>    python2.6 -c 'import urllib;
> urllib.urlretrieve("http://downloads.sourceforge.net/project/libpng/libpng-stable/1.2.39/libpng-1.2.39.tar.gz",
> "libpng-1.2.39.tar.gz")' &&\
>    python2.6 -c 'import urllib;
> urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2",
> "freetype-2.3.11.tar.bz2")'
> export PKG_CONFIG_PATH="/lib/pkgconfig" &&\
>    rm -rf zlib-1.2.3 &&\
>    tar xvfj zlib-1.2.3.tar.gz &&\
>    cd zlib-1.2.3 &&\
>    export MACOSX_DEPLOYMENT_TARGET=10.6 &&\
>    export CFLAGS="-arch i386 -arch x86_64 -I/include
> -I/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" &&\
>    export LDFLAGS="-arch i386 -arch x86_64 -L/lib
> -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" &&\
>    ./configure --prefix=&&\
>    MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -arch x86_64
> -I/include -I/include/freetype2 -isysroot
> /Developer/SDKs/MacOSX10.6.sdk" LDFLAGS="-arch i386 -arch x86_64
> -L/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" make -j3 install&&
> \
Looks like a bug in the makefile -- when un-tarring zlib, it should be
'tar xvfz' not 'tar xvfj'. I was recently tinkering with bz bs gz
files and looks like the flags got out of whack. I've patched this in
svn so you can 'svn up' and try again.
>    unset MACOSX_DEPLOYMENT_TARGET
> tar: Unrecognized archive format: Inappropriate file type or format
> tar: Error exit delayed from previous errors.
> make: *** [zlib] Error 1
>
> However I would prefer to use my independently installed freetype2 and
> libpng libraries, rather than installing them again.
> Does anyone have an idea where the architecture error comes from, or
> how to check this?
> Also, why is a separate make.osx file needed?
> Could the same functionality not have been integrated into the setup.py script?
> This is not a rant, just a question :)
You could hack through make.osx to find your own libs. We do it this
way to build distributable binaries where we can't count on targets
having the right png/freetype on their os x systems. distutils is
limited as a configure system so it is difficult to hack this kind of
stuff into setup.py. Not that what we are doing is ideal, but we have
been striving for "works" over "perfect". The former is hard enough
on OS X. Any improvements you can make to make this more general are
of course welcome.
JDH
From: Fabrice S. <si...@lm...> - 2010年05月26日 12:38:58
Le mardi 25 mai 2010 à 21:47 -0300, Carlos Grohmann a écrit :
> Dears, I want to interpolate some irregular data using radial basis.
> Can I interpolate only the data that falls inside a circle (or a
> polygon)?
May these pages help you?
http://www.scipy.org/Cookbook/RadialBasisFunctions
http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.Rbf.html
From: Sarah G. <sf...@ca...> - 2010年05月26日 11:54:28
Hi,
I've made a matplotlib plot with frequency on the x-axis, and I would 
like to add an additional x-axis at the top that is measured in 
wavelength , i.e. wavelength = 3e8 / frequency
Is there anyway to do this transformation automatically in matplotlib?
I tried to give a transformation argument to the ax.twin() axes_grid 
command, as shown in the axes_grid parasite_simple2.py example, but 
I've not managed to get this to work with a transformation more 
complicated than a scaling by a constant factor. I tried looking at the 
matplotlib.transforms documentation but I couldn't see a way to do this 
transformation there. I'm not sure I understood it very well though. I 
can't simply use the twiny( ) command and manually set the limits as the 
wavelength ticks will not occur at the points corresponding to the 
correct frequency.
At the moment I am using the twin() command, and then I manually choose 
a sensible set of tickvalues I want in wavelength units, calculate the 
corresponding frequency values, and then set the tick locations to be 
the frequency values and the tick labels to be the wavelength values.
Thanks,
Sarah
Example code:
import numpy as np
import matplotlib
from mpl_toolkits.axes_grid1.parasite_axes import SubplotHost
import matplotlib.pyplot as plt
#create xaxis range of values -- 200 -- 1000 Ghz
xvals = np.arange(199.9, 999.9, 0.1)
#make some test data
data = np.sin(0.03*xvals)
#set up the figure
fig = plt.figure()
ax = SubplotHost(fig, 111)
fig.add_subplot(ax)
ax2 = ax.twin()
#plot data
ax.plot(xvals, data)
ax.set_xlim(200.0, 1000.0)
#set up ax2 with chosen values
wavelength_labels = np.array([0.4, 0.6, 0.8,1.0,1.2, 1.4]) #in mm
frequency_points = 3e2/wavelength_labels #in GHz
ax2.set_xticks(frequency_points)
ax2.set_xticklabels(wavelength_labels)
ax2.set_xlabel('Wavelength (mm)')
ax.set_xlabel('Frequency (GHz)')
plt.show()
From: John R. <j....@ma...> - 2010年05月26日 10:30:45
Hi,
This is probably easy to do but I didn't work it out from the 
documentation so far. How do I remove the tick lines on a plot but keep 
the labels?
Thanks,
John.
Hi John and George,
I did of course rtfm :)
However when I do this for the latest svn checkout I get:
matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install
Password:
python2.6 -c 'import urllib;
urllib.urlretrieve("http://www.zlib.net/zlib-1.2.3.tar.gz",
"zlib-1.2.3.tar.gz")' &&\
	python2.6 -c 'import urllib;
urllib.urlretrieve("http://downloads.sourceforge.net/project/libpng/libpng-stable/1.2.39/libpng-1.2.39.tar.gz",
"libpng-1.2.39.tar.gz")' &&\
	python2.6 -c 'import urllib;
urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2",
"freetype-2.3.11.tar.bz2")'
export PKG_CONFIG_PATH="/lib/pkgconfig" &&\
	rm -rf zlib-1.2.3 &&\
	tar xvfj zlib-1.2.3.tar.gz &&\
	cd zlib-1.2.3 &&\
	export MACOSX_DEPLOYMENT_TARGET=10.6 &&\
	export CFLAGS="-arch i386 -arch x86_64 -I/include
-I/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" &&\
	export LDFLAGS="-arch i386 -arch x86_64 -L/lib
-syslibroot,/Developer/SDKs/MacOSX10.6.sdk" &&\
	./configure --prefix=&&\
	MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -arch x86_64
-I/include -I/include/freetype2 -isysroot
/Developer/SDKs/MacOSX10.6.sdk" LDFLAGS="-arch i386 -arch x86_64
-L/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" make -j3 install&&
\
	unset MACOSX_DEPLOYMENT_TARGET
tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
make: *** [zlib] Error 1
However I would prefer to use my independently installed freetype2 and
libpng libraries, rather than installing them again.
Does anyone have an idea where the architecture error comes from, or
how to check this?
Also, why is a separate make.osx file needed?
Could the same functionality not have been integrated into the setup.py script?
This is not a rant, just a question :)
Kind regards,
Pim Schellart
2010年5月25日 George Nurser <gn...@gm...>:
> If what John suggests doesn't work, and you really only need 64 bit,
> then the nuclear option is to remove all occurrences of
> -arch i386
> from the makefile (assuming you have a framework build) at
>
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/config/Makefile
>
> This should only generate x86_64.
>
> Obviously, save the current one, so you can go back to it.
>
> HTH, George.
>
> On 25 May 2010 16:58, John Hunter <jd...@gm...> wrote:
>> On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.s...@gm...> wrote:
>>> Hi John and George,
>>>
>>> I tried both and although it now seems to find the libraries it still
>>> fails to link something.
>>>
>>> matplotlib-0.99.1.1 $ sudo python setup.py install
>>
>> According to the README I pointed you too, this isn't the command you
>> should be running. Rather,
>>
>> Example usage::
>>
>> PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
>>
>> But I advise you work from the svn trunk if you want to go this route,
>> as I have made some updates for 64bit/python2.6 OSX there
>>
>> > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
>> matplotlib
>>
>> JDH
>>
>
>w/o seeing the entire code it is difficult to diagnose. Nothing looks
>wrong with your code. However, for full control I suggest you use the
>API; see examples at
>http://matplotlib.sourceforge.net/examples/api/index.html and take a
>look at the "artist tutorial" at
>http://matplotlib.sourceforge.net/users/artists.html.
Thank you. The tutorial was very helpful. For a moment I thought I might
have found the answer with the lines.remove() function but alas, it did not
make a difference yet again. :( I am starting to feel that this is a
problem with my setup rather than my code. I may have to try this on
someone else's computer.
>In a nutshell
>fig = plt.figure()
>ax = fig.add_subplot(111)
>for param in myparams:
> fig.clf()
> ax.plot(something_with(param))
> ax.set_ylabel('Sum Squared Error')
> ax.set_title('Plot of Iris Training Errors')
> ax.set_ylim(ymin=0)
> outfilename = '%d.png'%param
> fig.savefig(outfilename)
This is almost exactly the same as something else I have tried but this is
all to no avail. I have posted all of my code at
http://code-bin.homedns.org/653 if anyone has time to look at it.
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
View this message in context: http://old.nabble.com/Clearing-A-Figure-%28I-Know-That-This-Has-Been-Posted-Before-But-I-Does-Not-Work-For-Me%29-tp28665976p28678426.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: David R. <d.p...@sm...> - 2010年05月26日 07:44:10
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From: Daniel W. <dan...@gm...> - 2010年05月26日 04:51:14
2) In which case, it's not a framework install. Fink puts everything into
/sw/; there's nothing to do with pyton in /Library/Frameworks.
Thanks for the clarification; I'm tempted to get Python from source and try
this...
-dw
On Tue, May 25, 2010 at 10:41 PM, Michiel de Hoon <mjl...@ya...>wrote:
>
> > 1)The problem does manifest in the same manner through the normal python
> prompt.
>
> OK that is good to know.
>
>
> > 2) I'm not sure what is meant by a "framework install." Everything
> (except MPL 99.1.1)
> > was installed through fink.
>
> This is important. Check where python is installed. If 'which python' shows
> /Library/Frameworks/Python.framework/Versions/2.6/bin/python or something
> similar, you have a framework version. If on the other hand it shows
> /usr/bin/python, /usr/local/bin/python, or something similar, you don't have
> a framework version. I don't know what fink installs by default. If you
> don't have Python installed as a framework, some backends (including the
> MacOSX backend) will not interact properly with the window manager. This is
> a Mac peculiarity. If you build Python from source, you can specify to
> install a framework version by passing the --enable-framework option to the
> configure script.
>
>
> > 6) Although I use x11 and not the native Mac terminal, I'm not sure if
> this requires me to > install different packages for the gui stuff. Could
> you guys expand on this, please?
>
> Some backends go make use of X11 (e.g., the gtkcairo backend), others do
> not (e.g., the MacOSX backend). The MacOSX backend should work with both the
> native Mac terminal and with an X11 terminal.
>
> --Michiel.
>
>
From: Michiel de H. <mjl...@ya...> - 2010年05月26日 04:41:13
> 1)The problem does manifest in the same manner through the normal python
 prompt.
OK that is good to know.
> 2) I'm not sure what is meant by a "framework install." Everything 
(except MPL 99.1.1)
> was installed through fink.
This is important. Check where python is installed. If 'which python' shows /Library/Frameworks/Python.framework/Versions/2.6/bin/python or something similar, you have a framework version. If on the other hand it shows /usr/bin/python, /usr/local/bin/python, or something similar, you don't have a framework version. I don't know what fink installs by default. If you don't have Python installed as a framework, some backends (including the MacOSX backend) will not interact properly with the window manager. This is a Mac peculiarity. If you build Python from source, you can specify to install a framework version by passing the --enable-framework option to the configure script.
> 6) Although I use x11 and not the native Mac terminal, I'm not sure if this requires me to > install different packages for the gui stuff. Could you guys expand on this, please?
Some backends go make use of X11 (e.g., the gtkcairo backend), others do not (e.g., the MacOSX backend). The MacOSX backend should work with both the native Mac terminal and with an X11 terminal.
--Michiel.
 
From: Ted R. <ted...@ya...> - 2010年05月26日 03:40:52
Hi,
I am a real newbie at matplotlib, so I apologize if this is an obvious
question.
I am running ipython in emacs and while the first time I use the show()
command in the ipython buffer the graph shows up fine, subsequent times that
I call the command it, the graph does not show up. I am on ubuntu 10.04
(64) and I built the matplotlib library from source.
I am trying to get the graphs to show up the subsequent times as well (sorry
for the pun).
Thanks for any help.
----------------------------------------
Ted Rosenbaum
Graduate Student
Department of Economics
Yale University
From: Daniel W. <dan...@gm...> - 2010年05月26日 03:23:19
Thanks for the info...
1)The problem does manifest in the same manner through the normal python
prompt.
2) I'm not sure what is meant by a "framework install." Everything (except
MPL 99.1.1) was installed through fink.
3) I've never had problems with Fink software before, and I have a crapload
(technical term) of stuff installed. This is neither here nor there,
however, as it seems that not all Pythons are created equal.
4) A colleague of mine claims to have everything working on a new Intel mac
(I'm guessing 10.5.8) right out of MacPorts; I'll talk to him more and try
to find out what is different between our two cases.
5) I have yet to try installing wxPython for python 2.5; this may work in
the end. It's not in fink, so I've put off installing it manually. I'll
give it a shot and let you know how it works.
6) Although I use x11 and not the native Mac terminal, I'm not sure if this
requires me to install different packages for the gui stuff. Could you guys
expand on this, please?
Finally, I've had some measure of success by installing Qt4 (through Fink)
and using the Qt4Agg backend. Because the current stable fink Qt4 release
(4.6.1) has a bug, I need to apply the fix found here:
http://old.nabble.com/Qt4-backend:-critical-bug-with-PyQt4-v4.6%2B-td26205716.html
in order to allow more than one plot per session to be shown. I'll re-write
the fix here for convenience and clarity (the original did not have the
proper module references in it, so this saves some 5 minutes of
tab-completion work in ipython...)
# Add this before "FigureManagerQT" class
class FigureWindow(QtGui.QMainWindow):
 def __init__(self):
 super(FigureWindow, self).__init__()
 def closeEvent(self, event):
 super(FigureWindow, self).closeEvent(event)
 if QtCore.PYQT_VERSION_STR.startswith('4.6'):
 self.emit(QtCore.SIGNAL('destroyed()'))
# Replace "QtGui.QMainWindow" by "FigureWindow" in
"FigureManagerQT"'s constructor
This works perfectly on my Intel machine running MPL 99.1.1. It's fast and
looks sharp. I'll report back on the PPC/99.0 combo tomorrow; Qt4 takes a
thousand hours to compile.
Thanks for the input.
On Tue, May 25, 2010 at 8:48 PM, Jonathan Stickel <jjs...@vc...> wrote:
> On 05/25/2010 mat...@li... wrote:
> > From: Christopher Barker <Chr...@no...>
> > Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> > backends.
> > To: mat...@li...
> > Message-ID: <4BF...@no...>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Jonathan Stickel wrote:
> > > > I've experienced many of the same problems on Mac OS X 10.6.3
> > (Snow
> > > > Leopard). I have python/scipy/numpy/matplotlib/ipython all
> > installed
> > > > via Macports.
> >
> > Just to be clear -- this sounds like a MacPorts problem, not
> > necessarily
> > an OS-X problem.
> >
> >
> > > > I finally have the WXagg backend
> > > > working, but that required installed WXPython with the gtk/X11
> > backend.
> >
> > Does MacPorts not allow a native wx? Maybe becasue you're running 64
> > bit?
> >
>
> Right, I am running Snow Leopard and have Python 2.6 installed 64 bit.
> Apparently, Carbon requires 32 bit and wxWidgets/wxPython does not (yet)
> support Cocoa. This problem will bite you in one form or another on Mac
> OS X, regardless of whether you are using Macports or something else.
>
> > Anyway, I guess that's why I don't use macports for python.
>
> See above.
>
> >
> >
> > >> >> In any case, I have been having royal problems with GUI
> > backends and
> > >> >> matplotlib.
> > >> >> Some background on where I've been having these problems:
> > >> >> Machine 1: OSX 10.5.8 G5 PPC
> >
> > That's what I've been running, and I've had no real issues (Haven't
> > tried the OS-X back-end) -- but I'm using the python.org python.
> >
> > >> >> Machine 2: OSX 10.5.7 Macbook pro/Intel
> > >> >> Code versions: python 2.5.4, Numpy 1.3.0, Scipy 0.7.0 (all
> > obtained through
> > >> >> fink.)
> >
> > OK -- then a fink issue, rather than a Macports one -- same idea,
> > though.
> >
> > My impression is that neither fink nor macports do well with Mac GUI
> > stuff -- unless you're talking X11.
>
> Not exactly true. Fink and Macports are tools and have their
> shortcomings, but both can be immensely useful for installing all this
> stuff. Otherwise, you do it manually, which of course can cause you
> trouble as well. Anyway, getting off topic. I only intended to report
> some form of success with the wx backend.
>
> Jonathan
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Jonathan S. <jjs...@vc...> - 2010年05月26日 02:48:25
On 05/25/2010 mat...@li... wrote:
> From: Christopher Barker <Chr...@no...>
> Subject: Re: [Matplotlib-users] Mac backend problems for nearly all
> backends.
> To: mat...@li...
> Message-ID: <4BF...@no...>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Jonathan Stickel wrote:
> > > I've experienced many of the same problems on Mac OS X 10.6.3 
> (Snow 
> > > Leopard). I have python/scipy/numpy/matplotlib/ipython all 
> installed 
> > > via Macports.
> 
> Just to be clear -- this sounds like a MacPorts problem, not 
> necessarily 
> an OS-X problem.
> 
> 
> > > I finally have the WXagg backend 
> > > working, but that required installed WXPython with the gtk/X11 
> backend.
> 
> Does MacPorts not allow a native wx? Maybe becasue you're running 64 
> bit?
> 
Right, I am running Snow Leopard and have Python 2.6 installed 64 bit. 
Apparently, Carbon requires 32 bit and wxWidgets/wxPython does not (yet) 
support Cocoa. This problem will bite you in one form or another on Mac 
OS X, regardless of whether you are using Macports or something else.
> Anyway, I guess that's why I don't use macports for python.
See above.
> 
> 
> >> >> In any case, I have been having royal problems with GUI 
> backends and
> >> >> matplotlib.
> >> >> Some background on where I've been having these problems:
> >> >> Machine 1: OSX 10.5.8 G5 PPC
> 
> That's what I've been running, and I've had no real issues (Haven't 
> tried the OS-X back-end) -- but I'm using the python.org python.
> 
> >> >> Machine 2: OSX 10.5.7 Macbook pro/Intel
> >> >> Code versions: python 2.5.4, Numpy 1.3.0, Scipy 0.7.0 (all 
> obtained through
> >> >> fink.)
> 
> OK -- then a fink issue, rather than a Macports one -- same idea, 
> though.
> 
> My impression is that neither fink nor macports do well with Mac GUI 
> stuff -- unless you're talking X11.
Not exactly true. Fink and Macports are tools and have their 
shortcomings, but both can be immensely useful for installing all this 
stuff. Otherwise, you do it manually, which of course can cause you 
trouble as well. Anyway, getting off topic. I only intended to report 
some form of success with the wx backend.
Jonathan
From: Carlos G. <car...@gm...> - 2010年05月26日 00:47:41
Dears, I want to interpolate some irregular data using radial basis.
Can I interpolate only the data that falls inside a circle (or a
polygon)?
TIA
-- 
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
http://www.igc.usp.br/pessoais/guano
Linux User #89721
________________
Can’t stop the signal.
From: Michiel de H. <mjl...@ya...> - 2010年05月25日 23:54:11
Are you using a framework install of Python? Also, does the MacOSX backend work with plain python instead of ipython?
--Michiel.
--- On Tue, 5/25/10, Daniel Welling <dan...@gm...> wrote:
MacOSX backend: Loads plots quickly, but when I try to save, I cannot type in the file name area of the save file dialog. Furthermore, with ipython, I can continue to use the ipython prompt up until the I shut the plot window. ipython then freezes until I control-c it. This occurs in both versions.
 
From: Christopher B. <Chr...@no...> - 2010年05月25日 23:51:15
Jonathan Stickel wrote:
> I've experienced many of the same problems on Mac OS X 10.6.3 (Snow 
> Leopard). I have python/scipy/numpy/matplotlib/ipython all installed 
> via Macports.
Just to be clear -- this sounds like a MacPorts problem, not necessarily 
an OS-X problem.
> I finally have the WXagg backend 
> working, but that required installed WXPython with the gtk/X11 backend.
Does MacPorts not allow a native wx? Maybe becasue you're running 64 bit?
Anyway, I guess that's why I don't use macports for python.
>> In any case, I have been having royal problems with GUI backends and
>> matplotlib.
>> Some background on where I've been having these problems:
>> Machine 1: OSX 10.5.8 G5 PPC
That's what I've been running, and I've had no real issues (Haven't 
tried the OS-X back-end) -- but I'm using the python.org python.
>> Machine 2: OSX 10.5.7 Macbook pro/Intel
>> Code versions: python 2.5.4, Numpy 1.3.0, Scipy 0.7.0 (all obtained through
>> fink.)
OK -- then a fink issue, rather than a Macports one -- same idea, though.
My impression is that neither fink nor macports do well with Mac GUI 
stuff -- unless you're talking X11.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Kaushik G. <Kau...@hm...> - 2010年05月25日 21:44:40
Hi Gang,
I don't know if it is a problem from nabble, but the 'archives' link from the 
main matplotlib pages goes to a decidedly non-matplotlib page.
The link is http://www.nabble.com/matplotlib---users-f2906.html
Best
-Kaushik
From: Eric F. <ef...@ha...> - 2010年05月25日 20:37:36
On 05/25/2010 10:21 AM, Michael Droettboom wrote:
> There isn't a way to embed Type 1 fonts, but you can force matplotlib to
> use the core 14 Postscript fonts only by setting the rcParam "ps.useafm"
> to True.
Or for the pdf backend,
rcParams['pdf.use14corefonts'] = True
and refrain from using any mathtext formatting.
Eric
>
> Mike
>
> On 05/25/2010 04:10 PM, David Reichert wrote:
>> Hi,
>>
>> I'm writing a conference paper and I "must" use only type 1 fonts. It
>> seems
>> like matplotlib is using type 3. How can I use type 1 instead?
>>
>> Thanks,
>>
>> David
>>
>>
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>>
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> --
> Michael Droettboom
> Science Software Branch
> Space Telescope Science Institute
> Baltimore, Maryland, USA
>
>
>
> ------------------------------------------------------------------------------
>
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Michael D. <md...@st...> - 2010年05月25日 20:21:17
There isn't a way to embed Type 1 fonts, but you can force matplotlib to 
use the core 14 Postscript fonts only by setting the rcParam "ps.useafm" 
to True.
Mike
On 05/25/2010 04:10 PM, David Reichert wrote:
> Hi,
>
> I'm writing a conference paper and I "must" use only type 1 fonts. It 
> seems
> like matplotlib is using type 3. How can I use type 1 instead?
>
> Thanks,
>
> David
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
> 
>
>
> ------------------------------------------------------------------------------
>
> 
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
9 messages has been excluded from this view by a project administrator.

Showing results of 303

<< < 1 2 3 4 5 .. 13 > >> (Page 3 of 13)
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 によって変換されたページ (->オリジナル) /