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) |
|
|
|
|
|
|
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. |
|
From: Pim S. <p.s...@gm...> - 2010-05-26 10:18:37
|
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
>>
>
|
|
From: Thistleryver <mh...@ec...> - 2010-05-26 09:34:12
|
>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. |