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
(13) |
3
(13) |
4
(11) |
5
(15) |
6
(16) |
7
(1) |
|
8
(2) |
9
(1) |
10
(16) |
11
(19) |
12
(8) |
13
(20) |
14
(9) |
|
15
(2) |
16
(9) |
17
(29) |
18
(14) |
19
(13) |
20
(10) |
21
(1) |
|
22
(3) |
23
(4) |
24
(26) |
25
(11) |
26
(11) |
27
(8) |
28
(4) |
|
29
(2) |
30
(10) |
31
(17) |
|
|
|
|
|
From: Robert K. <rk...@uc...> - 2005-05-06 21:58:13
|
Darren Dale wrote:
> I see that passing normed=True to the hist function is supposed scale the
> histogram counts to represent a probability distribution. Presently, this
> renormalizes the counts such that the most popular bin is 1, but I would
> argue that this does not represent a probability distribution. I think it
> would be more appropriate to renormalize such that integrating over the whole
> distribution yields 1.
Are you sure? With CVS matplotlib:
In [6]:hist(y)
Out[6]:
(array([ 17, 44, 130, 244, 260, 176, 91, 29, 8, 1]),
array([-2.85420394, -2.18336129, -1.51251864, -0.841676 ,
-0.17083335, 0.5000093 ,
1.17085195, 1.84169459, 2.51253724, 3.18337989]))
In [7]:hist(y, normed=True)
Out[7]:
(array([ 0.02534126, 0.06558915, 0.19378613, 0.36372166, 0.38757226,
0.26235661,
0.13565029, 0.04322921, 0.0119253 , 0.00149066]),
array([-2.85420394, -2.18336129, -1.51251864, -0.841676 ,
-0.17083335, 0.5000093 ,
1.17085195, 1.84169459, 2.51253724, 3.18337989]))
--
Robert Kern
rk...@uc...
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
|
|
From: George N. <ag...@no...> - 2005-05-06 19:41:33
|
The problem I have seems more fundamental than Darren's.
Even if I start pythonw, and then do from pylab import *, I still get
the warning messages about being unable to open the type 1 fonts,
System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/matplotlib/font_manager.py:465: UserWarning: Could not
open font file /Users/agn/Library/Fonts/GillSanBol
warnings.warn("Could not open font file %s"%fpath)
etc...
and then the program crash in font_manager.py with
Traceback (most recent call last):
...............
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/axis.py", line 20, in ?
from font_manager import FontProperties
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 991, in ?
fontManager = FontManager()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 835, in
__init__
rebuild()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 828, in
rebuild
self.ttfdict = createFontDict(self.ttffiles)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 467, in
createFontDict
prop = ttfFontProperty(font)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 347, in
ttfFontProperty
size = str(float(font.get_fontsize()))
AttributeError: get_fontsize
George Nurser.
|
|
From: Darren D. <dd...@co...> - 2005-05-06 16:17:35
|
I see that passing normed=True to the hist function is supposed scale the histogram counts to represent a probability distribution. Presently, this renormalizes the counts such that the most popular bin is 1, but I would argue that this does not represent a probability distribution. I think it would be more appropriate to renormalize such that integrating over the whole distribution yields 1. Maybe there are other schools of thought on this subject? Is there a way that I can generate a physicists probability distribution with the existing function? Thanks, Darren |
|
From: Matt N. <new...@ca...> - 2005-05-06 14:55:24
|
Fernando, Darren,
For me, on Mac OS X changing IPython/Shell.py to
if ver[:3] >= '2.5':
does suppress the warning about the version of wx. But 'ipython
-pylab' still hangs on startup with a message that the program
should be run with 'pythonw', not 'python'. This was from a
clean install with
~> sudo pythonw setup.py install
This installs ipython into
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/ipython
which is not typically in the shells PATH.
The shebang line for the ipython script reads
#!/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/Python
Changing that to
#!/usr/bin/env pythonw
makes 'ipython -pylab' run fine.
Maybe you want to make Mac installs put ipython in /usr/bin and
point to pythonw (which is admittedly just a bash wrapper around
/System/Library/..../Python.app/Contents/MacOS/Python)??
Hope that helps,
--Matt
|
|
From: Darren D. <dd...@co...> - 2005-05-06 12:49:51
|
On Friday 06 May 2005 12:19 am, Fernando Perez wrote: > Matt Newville wrote: > > Darren, > > > >>I just upgraded wxPython a couple days ago, and got error > >>messages about not finding wxpython 2.4 or 2.5. Can anyone say > >>whether the wx backend and IPython are compatible with the new > >>wxpython release? > > > > The wx backend from matplotlib 0.80 works fine for me with > > wxPython 2.6.0.0 on OS X 10.3.9. > > > > I also get messages about not finding wxpython 2.4 or 2.5 from > > Ipython, and on Mac OS X also have Ipython hang when started > > with 'ipython -wthread -pylab' or 'ipython -pylab', probably > > because it's using 'python' not 'pythonw'. I haven't tracked it > > down beyond that. > > Could you try to change in IPython/Shell.py, the line (around line 555): > > if ver[:3] == '2.5': > import wx > > to > > if ver[:3] >= '2.5': > import wx > > and let me know if it works again? In that case, I'll make that change > before the bugfix .14 release. > Fernando, Thank you, this solves it. -- Darren S. Dale Bard Hall Department of Materials Science and Engineering Cornell University Ithaca, NY. 14850 dd...@co... |
|
From: John H. <jdh...@ac...> - 2005-05-06 12:11:48
|
>>>>> "N" == N Volbers <mit...@we...> writes:
N> Hello everyone on the list, I try to use the matplotlib class
N> interface for my plotting application. I have a question which
N> I hope you can help me with. The attached file contains a test
N> case for my problem. From the example 'embedding_in_gtk2.py' I
N> figured the proper way to use the class interface was to
N> 1. create a Figure() instance 2. create a FigureCanvas
N> instance, using the Figure as argument 3. create a subplot by
N> using FigureCanvas.subplot
I think you mean "create a subplot by using Figure.add_subplot"
N> This works fine; however now I was trying to set the limits of
N> the plot using the Axes.set_xlim and Axes.set_ylim functions.
Call set_xlim and set_ylim after calling plot. Plot automatically
calls autoscale on the axes to incorporate the new data into its
range. This should become an rc param and a kwarg (and this question
will soon become a FAQ!)
N> As you can see from the test, it won't affect the plot! On the
N> other hand, this method works fine if you use the pylab 'show'
N> method as in 'poly_editor.py'. Is this a bug or should I use
N> another function to set the limits?
It has nothing to do with show and everything to do that setting the
lim come after creating the plot elements
N> BTW, the documentation recommends passing two arguments to
N> set_xlim, set_ylim, while the examples pass a list/tuple. Are
N> both ways correct?
Yes.
JDH
|
|
From: Carl M. <car...@bi...> - 2005-05-06 09:33:55
|
So obvious when someone tells you! Thanks for this, it is exactly what I was looking for. Carl ----- Original Message ----- From: "John Hunter" <jdh...@ac...> To: "Carl Mouser" <car...@bi...> Cc: <mat...@li...> Sent: Thursday, May 05, 2005 11:55 PM Subject: Re: [Matplotlib-users] Deleting lines from a plot > > If you know which line you want to delete, you can call > ax.lines.remove(line) where line is a line instance. > > In [1]: line1, = plot(rand(10), 'ro') > In [2]: line2, = plot(rand(20), 'b--s') > In [3]: ax = gca() > In [4]: ax.lines.remove(line1) > In [5]: draw() > > If you haven't saved the line instance, but can otherwise identify it > (eg you know it was the first line you plotted), you can do something > like > > ax.lines.remove(ax.lines[0]) > > or if you have labeled the line, you can identify and remove it with > > plot(x,y,label='my line') > line = [line for line in ax.lines if line.get_label()=='my line'][0] > ax.lines.remove(line) > > JDH |
|
From: N. V. <mit...@we...> - 2005-05-06 09:17:11
|
Hello everyone on the list, I try to use the matplotlib class interface for my plotting application. I have a question which I hope you can help me with. The attached file contains a test case for my problem. From the example 'embedding_in_gtk2.py' I figured the proper way to use the class interface was to 1. create a Figure() instance 2. create a FigureCanvas instance, using the Figure as argument 3. create a subplot by using FigureCanvas.subplot This works fine; however now I was trying to set the limits of the plot using the Axes.set_xlim and Axes.set_ylim functions. As you can see from the test, it won't affect the plot! On the other hand, this method works fine if you use the pylab 'show' method as in 'poly_editor.py'. Is this a bug or should I use another function to set the limits? BTW, the documentation recommends passing two arguments to set_xlim, set_ylim, while the examples pass a list/tuple. Are both ways correct? Thanks, Niklas Volbers. |
|
From: Fernando P. <Fer...@co...> - 2005-05-06 06:13:13
|
Matt Newville wrote: > John, > > Hmm, I just installerd ipython-0.6.13 on OS X 10.3.9. For me it > created ipython with [...] > /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py in mainloop(self=<IPShellMatplotlibWX(Thread-1, started)>) > 712 def OnTimer(self, event): > 713 update_tk(self.tk) > 714 self.IP.runcode() > 715 > 716 class App(self.wx.wxApp): > 717 wx = self.wx > 718 TIMEOUT = self.TIMEOUT > 719 def OnInit(self): > 720 'Create the main window and insert the custom frame' > 721 self.agent = TimerAgent(None, self.TIMEOUT) > 722 self.agent.Show(self.wx.false) > 723 self.agent.StartWork() > 724 return self.wx.true > 725 > 726 self.app = App(redirect=False) > --> 727 self.wx_mainloop(self.app) > self.wx_mainloop = None > self.app = <IPython.Shell.App; proxy of C++ wxPyApp instance at _05a3a8e0_p_wxPyApp> > 728 self.join() > 729 > 730 # A set of matplotlib public IPython shell classes, for single-threaded > 731 # (Tk* and FLTK* backends) and multithreaded (GTK* and WX* backends) use. > 732 class IPShellMatplotlib(IPShell): > 733 """Subclass IPShell with MatplotlibShell as the internal shell. > 734 > 735 Single-threaded class, meant for the Tk* and FLTK* backends. > 736 > 737 Having this on a separate class simplifies the external driver code.""" > 738 > 739 def __init__(self,argv=None,user_ns=None,debug=1): > 740 IPShell.__init__(self,argv,user_ns,debug,shell_class=MatplotlibShell) > 741 > 742 class IPShellMatplotlibGTK(IPShellGTK): > > TypeError: 'NoneType' object is not callable Could you try the change I suggested in my last email? That might fix this crash as well, as it will prevent the None object from being returned for wx 2.6. Let me know if it helps, f |
|
From: Matt N. <new...@ca...> - 2005-05-06 04:19:59
|
John,
Hmm, I just installerd ipython-0.6.13 on OS X 10.3.9. For me it
created ipython with
#!/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Content
s/MacOS/Python
Changing that to
#!/usr/bin/env pythonw
caused ipython to crash, with IPython_crash_report.txt below.
--Matt
***************************************************************************
IPython post-mortem report
IPython version: 0.6.13
Platform info : os.name -> posix, sys.platform -> darwin
***************************************************************************
Current user configuration structure:
{'Version': 0,
'alias': [''],
'args': [],
'autocall': 1,
'autoindent': 1,
'automagic': 1,
'banner': 1,
'c': '',
'cache_size': 1000,
'classic': 0,
'color_info': 1,
'colors': 'Linux',
'confirm_exit': 1,
'debug': 0,
'deep_reload': 0,
'editor': 'vi',
'execfile': [],
'execute': [''],
'gthread': 0,
'help': 0,
'ignore': 0,
'import_all': [],
'import_mod': [],
'import_some': [[]],
'include': [],
'ipythondir': '/Users/newville/.ipython',
'log': 0,
'logfile': '',
'logplay': '',
'magic_docstrings': 0,
'messages': 1,
'multi_line_specials': 1,
'nosep': 0,
'opts': Struct({'pylab': 1}),
'pdb': 0,
'pprint': 1,
'profile': '',
'prompt_in1': 'In [\\#]:',
'prompt_in2': ' .\\D.:',
'prompt_out': 'Out[\\#]:',
'prompts_pad_left': 1,
'pylab': 1,
'quick': 0,
'rcfile': 'ipythonrc',
'readline': 1,
'readline_merge_completions': 1,
'readline_omit__names': 0,
'readline_parse_and_bind': ['tab: complete',
'"\\C-l": possible-completions',
'set show-all-if-ambiguous on',
'"\\C-o": tab-insert',
'"\\M-i": " "',
'"\\M-o": "\\d\\d\\d\\d"',
'"\\M-I": "\\d\\d\\d\\d"',
'"\\C-r": reverse-search-history',
'"\\C-s": forward-search-history',
'"\\C-p": history-search-backward',
'"\\C-n": history-search-forward'],
'readline_remove_delims': '\'"-/~',
'screen_length': -2,
'separate_in': '\n',
'separate_out': '',
'separate_out2': '',
'system_verbose': 0,
'tk': 0,
'upgrade': 0,
'wthread': 0,
'xmode': 'Context'}
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
exceptions.TypeErrorPython 2.3: /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/Python
Thu May 5 23:13:31 2005
A problem occured executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/Users/newville/bin/ipython
-2 import IPython
-1
0 IPython.Shell.start().mainloop()
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py in mainloop(self=<IPShellMatplotlibWX(Thread-1, started)>)
712 def OnTimer(self, event):
713 update_tk(self.tk)
714 self.IP.runcode()
715
716 class App(self.wx.wxApp):
717 wx = self.wx
718 TIMEOUT = self.TIMEOUT
719 def OnInit(self):
720 'Create the main window and insert the custom frame'
721 self.agent = TimerAgent(None, self.TIMEOUT)
722 self.agent.Show(self.wx.false)
723 self.agent.StartWork()
724 return self.wx.true
725
726 self.app = App(redirect=False)
--> 727 self.wx_mainloop(self.app)
self.wx_mainloop = None
self.app = <IPython.Shell.App; proxy of C++ wxPyApp instance at _05a3a8e0_p_wxPyApp>
728 self.join()
729
730 # A set of matplotlib public IPython shell classes, for single-threaded
731 # (Tk* and FLTK* backends) and multithreaded (GTK* and WX* backends) use.
732 class IPShellMatplotlib(IPShell):
733 """Subclass IPShell with MatplotlibShell as the internal shell.
734
735 Single-threaded class, meant for the Tk* and FLTK* backends.
736
737 Having this on a separate class simplifies the external driver code."""
738
739 def __init__(self,argv=None,user_ns=None,debug=1):
740 IPShell.__init__(self,argv,user_ns,debug,shell_class=MatplotlibShell)
741
742 class IPShellMatplotlibGTK(IPShellGTK):
TypeError: 'NoneType' object is not callable
***************************************************************************
History of session input:
*** Last line of input (may not be in above history):
|
|
From: Fernando P. <Fer...@co...> - 2005-05-06 04:19:50
|
Matt Newville wrote:
> Darren,
>
>
>>I just upgraded wxPython a couple days ago, and got error
>>messages about not finding wxpython 2.4 or 2.5. Can anyone say
>>whether the wx backend and IPython are compatible with the new
>>wxpython release?
>
>
> The wx backend from matplotlib 0.80 works fine for me with
> wxPython 2.6.0.0 on OS X 10.3.9.
>
> I also get messages about not finding wxpython 2.4 or 2.5 from
> Ipython, and on Mac OS X also have Ipython hang when started
> with 'ipython -wthread -pylab' or 'ipython -pylab', probably
> because it's using 'python' not 'pythonw'. I haven't tracked it
> down beyond that.
Could you try to change in IPython/Shell.py, the line (around line 555):
if ver[:3] == '2.5':
import wx
to
if ver[:3] >= '2.5':
import wx
and let me know if it works again? In that case, I'll make that change before
the bugfix .14 release.
Cheers,
f
|
|
From: John H. <jdh...@ac...> - 2005-05-06 03:54:56
|
>>>>> "Matt" == Matt Newville <new...@ca...> writes:
Matt> The wx backend from matplotlib 0.80 works fine for me with
Matt> wxPython 2.6.0.0 on OS X 10.3.9.
Matt> I also get messages about not finding wxpython 2.4 or 2.5
Matt> from Ipython, and on Mac OS X also have Ipython hang when
Matt> started with 'ipython -wthread -pylab' or 'ipython -pylab',
Matt> probably because it's using 'python' not 'pythonw'. I
Matt> haven't tracked it down beyond that.
ipython 0.6.13 on OSX uses
#!/usr/bin/env pythonw
I don't get the warning when using ipython -wthread on OSX with
wxpython 2.5.4.1 or linux with wxpython 2.5.3.2. Both are using
ipython 0.6.13.
JDH
|
|
From: Matt N. <new...@ca...> - 2005-05-06 03:47:19
|
Darren, > I just upgraded wxPython a couple days ago, and got error > messages about not finding wxpython 2.4 or 2.5. Can anyone say > whether the wx backend and IPython are compatible with the new > wxpython release? The wx backend from matplotlib 0.80 works fine for me with wxPython 2.6.0.0 on OS X 10.3.9. I also get messages about not finding wxpython 2.4 or 2.5 from Ipython, and on Mac OS X also have Ipython hang when started with 'ipython -wthread -pylab' or 'ipython -pylab', probably because it's using 'python' not 'pythonw'. I haven't tracked it down beyond that. --Matt |
|
From: Fernando P. <Fer...@co...> - 2005-05-05 23:22:18
|
Darren Dale wrote: > I just upgraded wxPython a couple days ago, and got error messages about not > finding wxpython 2.4 or 2.5. Can anyone say whether the wx backend and > IPython are compatible with the new wxpython release? On the ipython side, no idea. I don't use wx myself much, so I can't say (and I can't upgrade right now to test, sorry). f |
|
From: Darren D. <dd...@co...> - 2005-05-05 23:15:49
|
On Thursday 05 May 2005 6:55 pm, George Nurser wrote: > I believe I have got all the prerequisites, but it might not be so... > > old Powerbook, 400 MHz, 10.3.9. > > zlib, libpng, tk_inter, freetype 2.1.9, wx-2.6-mac-unicode, standard > Apple Python 2.3, updated to MacPython, Numeric. > > matplotlib compiled & installed apparently fine. No warnings that I > could see. > > > Fairly drastic problem occurs when I do > import from pylab * > in the python shell. [...] > > Anybody have any idea of what I have missed doing? > I just upgraded wxPython a couple days ago, and got error messages about not finding wxpython 2.4 or 2.5. Can anyone say whether the wx backend and IPython are compatible with the new wxpython release? -- Darren S. Dale Bard Hall Department of Materials Science and Engineering Cornell University Ithaca, NY. 14850 dd...@co... |
|
From: George N. <ag...@no...> - 2005-05-05 22:55:20
|
I believe I have got all the prerequisites, but it might not be so...
old Powerbook, 400 MHz, 10.3.9.
zlib, libpng, tk_inter, freetype 2.1.9, wx-2.6-mac-unicode, standard
Apple Python 2.3, updated to MacPython, Numeric.
matplotlib compiled & installed apparently fine. No warnings that I
could see.
Fairly drastic problem occurs when I do
import from pylab *
in the python shell.
1. get stream of warnings about type 1 fonts...
e.g.
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/matplotlib/font_manager.py:465: UserWarning: Could not
open font file /Users/agn/Library/Fonts/Euclid Math Two
warnings.warn("Could not open font file %s"%fpath)
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/matplotlib/font_manager.py:465: UserWarning: Could not
open font file /Library/Fonts/EucliSymIta
Think I can understand why this might be, as neither TT or X11.
One only of the .dfonts in /System/Library/Fonts fails--
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/matplotlib/font_manager.py:465: UserWarning: Could not
open font file /System/Library/Fonts/LastResort.dfont
warnings.warn("Could not open font file %s"%fpath)
-- no warnings from rest of .dfonts.
2. More seriously, loading from pylab fails with FontManager error:
raceback (most recent call last):
File "/usr/local/bin/ipython", line 28, in ?
IPython.Shell.start().mainloop()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/IPython/Shell.py", line 809, in start
return shell()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/IPython/Shell.py", line 740, in __init__
IPShell.__init__(self,argv,user_ns,debug,shell_class=MatplotlibShell)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/IPython/Shell.py", line 54, in __init__
shell_class=shell_class)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/IPython/ipmaker.py", line 85, in make_IPython
IP = shell_class('__IP',user_ns=user_ns,**kw)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/IPython/Shell.py", line 493, in __init__
user_ns,b2 = self._matplotlib_config(name)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/IPython/Shell.py", line 373, in
_matplotlib_config
from matplotlib import backends
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/backends/__init__.py", line 19, in ?
globals(),locals(),[backend_name])
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/backends/backend_tkagg.py", line 9,
in ?
from backend_agg import FigureCanvasAgg
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/backends/backend_agg.py", line 82,
in ?
from matplotlib.figure import Figure
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/figure.py", line 3, in ?
from axes import Axes, Subplot, PolarSubplot, PolarAxes
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/axes.py", line 12, in ?
from axis import XAxis, YAxis
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/axis.py", line 20, in ?
from font_manager import FontProperties
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 991, in ?
fontManager = FontManager()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 835, in
__init__
rebuild()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 828, in
rebuild
self.ttfdict = createFontDict(self.ttffiles)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 467, in
createFontDict
prop = ttfFontProperty(font)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/matplotlib/font_manager.py", line 347, in
ttfFontProperty
size = str(float(font.get_fontsize()))
AttributeError: get_fontsize
Anybody have any idea of what I have missed doing?
Regards, George Nurser.
|
|
From: Chris B. <Chr...@no...> - 2005-05-05 18:05:07
|
Vidar Gundersen wrote:
> i want to create a new vector containing the minimum value
> from each row in a matrix, and i've tried
>
> from pylab import *
> xmin = min(x, axis=1)
> xmin = min(transpose(x))
there may be a shortcut on numerix, but he Numeric way to write this is:
xmin = minimum.reduce(x, axis=1)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|
|
From: John H. <jdh...@ac...> - 2005-05-05 16:40:25
|
>>>>> "Darren" == Darren Dale <dd...@co...> writes:
Darren> In CVS, I added a file to the examples called
Darren> newscalarformatter_demo.py, which shows how to use the
Darren> NewScalarFormatter without renaming anything in
Darren> ticker.py. It also illustrates the different options and
Darren> improvements over the original formatter.
Well, you're "old formatter" example certainly makes a compelling case
for the new one :-)
The cm fonts are a bit irritating though, eg the \times symbol appears
fainter than the numbers.
Darren> I felt I was posting too frequently to this list, so I
Darren> opened a bugreport at the sourceforge website (which
Darren> includes images from the new demo). Please direct future
Darren> comments and reports to the bugreport page.
I don't think posting new features and bug fixes constitutes spam :-)
JDH
|
|
From: Darren D. <dd...@co...> - 2005-05-05 16:33:59
|
In CVS, I added a file to the examples called newscalarformatter_demo.py, which shows how to use the NewScalarFormatter without renaming anything in ticker.py. It also illustrates the different options and improvements over the original formatter. I felt I was posting too frequently to this list, so I opened a bugreport at the sourceforge website (which includes images from the new demo). Please direct future comments and reports to the bugreport page. Thanks, Darren |
|
From: Robert K. <rk...@uc...> - 2005-05-05 15:12:39
|
Florian Lindner wrote:
> Hello,
> I'm using matplotlib like that:
>
> import matplotlib
> matplotlib.use("Agg")
> import pylab
> pylab.plot(*values)
> pylab.savefig("testfig.png")
>
> print values gives this output:
>
> [['1', '2', '3', '4', '5'], ['11', '12', '13', '14', '15']]
> What am I doing wrong?
Passing strings. Use numbers.
--
Robert Kern
rk...@uc...
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
|
|
From: Florian L. <mai...@xg...> - 2005-05-05 14:58:33
|
Hello,
I'm using matplotlib like that:
import matplotlib
matplotlib.use("Agg")
import pylab
pylab.plot(*values)
pylab.savefig("testfig.png")
print values gives this output:
[['1', '2', '3', '4', '5'], ['11', '12', '13', '14', '15']]
But the pylab.plot(*values) gives a traceback:
Traceback (most recent call last):
File "visualizer.py", line 8, in ?
main()
File "visualizer.py", line 6, in main
g.createGraphs()
File "/home/florian/visualizer/GraphCreator.py", line 21, in createGraphs
pylab.plot(*values)
File "/usr/lib/python2.3/site-packages/matplotlib/pylab.py", line 1899, in
plot
ret = gca().plot(*args, **kwargs)
File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 2409, in
plot
for line in self._get_lines(*args, **kwargs):
File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 271, in
_grab_next_args
yield self._plot_2_args(remaining, **kwargs)
File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 226, in
_plot_2_args
markerfacecolor = c,
File "/usr/lib/python2.3/site-packages/matplotlib/lines.py", line 135, in
__init__
self.set_data(xdata, ydata)
File "/usr/lib/python2.3/site-packages/matplotlib/lines.py", line 202, in
set_data
raise RuntimeError('xdata and ydata must be the same length')
RuntimeError: xdata and ydata must be the same length
What am I doing wrong?
Thanks,
Florian
|
|
From: John H. <jdh...@ac...> - 2005-05-05 13:55:26
|
If you know which line you want to delete, you can call
ax.lines.remove(line) where line is a line instance.
In [1]: line1, = plot(rand(10), 'ro')
In [2]: line2, = plot(rand(20), 'b--s')
In [3]: ax = gca()
In [4]: ax.lines.remove(line1)
In [5]: draw()
If you haven't saved the line instance, but can otherwise identify it
(eg you know it was the first line you plotted), you can do something
like
ax.lines.remove(ax.lines[0])
or if you have labeled the line, you can identify and remove it with
plot(x,y,label='my line')
line = [line for line in ax.lines if line.get_label()=='my line'][0]
ax.lines.remove(line)
JDH
|
|
From: Wendell C. <wcr...@uf...> - 2005-05-05 11:31:20
|
Hi, One way of doing this is to plot the same line again with the color set to the background color. Wendell Cropper At 05:56 PM 5/5/2005 +1000, you wrote: >Is it possible to delete a line from a plot without clearing the entire >axis, or effecting >any other lines that may be their? In Matlab, it is possible to delete(h) >where h is >the handle to a line. However, I can't seem to find an equivelent command in >Matplotlib (either in the Pylab or OO interface). > >Thanks, >Carl > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: NEC IT Guy Games. >Get your fingers limbered up and give it your best shot. 4 great events, 4 >opportunities to win big! Highest score wins.NEC IT Guy Games. Play to >win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > University of Florida School of Forest Resources and Conservation 214 Newins-Ziegler PO Box 110410 Gainesville, FL 32611-0410 352-846-0859 phone 352-392-1707 fax wcr...@uf... |
|
From: Vidar G. <vid...@37...> - 2005-05-05 10:18:19
|
===== Original message from John Hunter | Wed, 04 May 2005: > Amazing so few lines produce such a cool looking figure, no? yes, the transparency is useful for giving the plotted data an extra dimension, both aesthetic and beeing able to show more in one plot. try doing this in MATLAB, R or gnuplot. i'm struggling with something related to this plot i'm working on, and it's a bit stupid, i think, to ask, and i don't know if it's a matplotlib problem: i want to create a new vector containing the minimum value from each row in a matrix, and i've tried from pylab import * xmin = min(x, axis=1) xmin = min(transpose(x)) but either i get error messages, or unexpected results. |
|
From: Carl M. <car...@bi...> - 2005-05-05 07:50:11
|
Is it possible to delete a line from a plot without clearing the entire axis, or effecting any other lines that may be their? In Matlab, it is possible to delete(h) where h is the handle to a line. However, I can't seem to find an equivelent command in Matplotlib (either in the Pylab or OO interface). Thanks, Carl |