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
(1) |
|
2
(10) |
3
(29) |
4
(56) |
5
(44) |
6
(26) |
7
(12) |
8
(1) |
|
9
(2) |
10
(11) |
11
(28) |
12
(17) |
13
(6) |
14
(17) |
15
(7) |
|
16
(1) |
17
(8) |
18
(8) |
19
(7) |
20
(2) |
21
(8) |
22
(4) |
|
23
(6) |
24
(1) |
25
(2) |
26
(8) |
27
(3) |
28
(5) |
29
(1) |
|
30
|
31
(1) |
|
|
|
|
|
|
From: Gerolf Z. <mai...@zi...> - 2007-12-09 15:14:25
|
RGVhciBNYWlsaW5nbGlzdCwKCkkgd2FudCB0byBjcmVhdGUgYSBob3Jpem9udGFsIGhpc3Rvcmdy YW0uIFRoZSB5LWxhYmVscyBoYXZlIG1vcmUgdGV4dCwgdGhhbgpmaXRzIGluIHRoZSBfbm9ybWFs XyBsYXlvdXQuIEhvdyBjb3VsZCBJIGluY3JlYXNlIHRoZSB3aWR0aCBvZiB0aGUgeXRpY2tzCmxl Z2VuZD8KCkJlc3QgcmVnYXJkczoKICAgR2Vyb2xmCgotLSAKRGlwbC4gUGh5cy4gR2Vyb2xmIFpp ZWdlbmhhaW4gKGdlcm9sZkB6aWVnZW5oYWluLmNvbSkKUHJpdmF0ZTogS2xvcHN0b2Nrc3RyYXNz ZSAyMSAtIDY1MTg3IFdpZXNiYWRlbiAtIEdlcm1hbnkKT2ZmaWNlOiBSb29tIDQ2LTMzMiAtIEVy d2luLVNjaHLDtmRpbmdlci1TdHIuNDYgLSBUVSBLYWlzZXJzbGF1dGVybiAtIEdlcm1hbnkKV2Vi OiBnZXJvbGYuemllZ2VuaGFpbi5jb20K |
|
From: Brendan A. <bre...@gm...> - 2007-12-09 14:55:52
|
hi there,
i'm writing a linear step by step scripts and i'd like to use
matplotlibs interactive features as a step to load up some data, the
user to identify a point, the plot window closed and the point to be
returned to my script for further processing.
i assumed that waiting for pylab.show() to return would halt my script
until the figure was dismissed however this only works on the first
run of my script i.e.
In [1]: run z:/archive/scripts/TCD_import_probe_data
8.13378191174e-007 0.00635162601626
In [2]: run z:/archive/scripts/TCD_import_probe_data
None None
In the second invocation the figure was displayed but the script
carried on running before the figure was dismissed.
Running %reset between invocations has no effect.
Here is the crux of the script,
class SetOrigin(object):
"""
callback functor for origin placement
"""
def __init__(self, x=None, y=None):
self.x = x
self.y = y
if x and y:
self.set = True
else:
self.set = False
def __call__(self, event):
if event.inaxes:
self.x = event.xdata
self.y = event.ydata
self.set = True
pylab.plot(time, voltage)
pylab.title('Click cursor on origin ...')
cursor = Cursor(pylab.gca(), useblit=True, color='#ff0000', linewidth=1)
origin = SetOrigin()
pylab.connect('button_press_event', origin)
foo = pylab.show()
print origin.x, origin.y
pylab.show()
What am i doing wrong?
This happens in plain iPython shell and pysh (scipy shell has
difficulty loading the script 'Original traceback cannot be
reconstructed...')
brendan
|
|
From: hewj <laz...@gm...> - 2007-12-08 10:05:05
|
I wanna my contour to display at the certain pixels and only set figure size can't do this job. Is there any way to get the scale value while mpl doing contour, and more, to change it? Great thanks for your replies. |
|
From: Tim L. <ti...@gm...> - 2007-12-07 23:46:09
|
>Can you set "verbose.level" to "debug-annoying" in your matplotlibrc and= =20 >send us the output? That may help provide an explanation as to why the=20 >text is not appearing. Also, for good measure, can you provide your=20 >matplotlibrc file, and information about the platform and versions of=20 >Python that you are using? =20 See the attachments. Their platform is RedHat Linux and python 2.4.3 >Do you get different results when you run at=20 >the commandline vs. from an http request? It could be that incorrect=20 >permissions (as user "apache", for instance) are causing the problems. > >Cheers, >Mike I'd like to run it from the command line, but I haven't done it before (and not sure how to do it); the web hosting server is in a land far far away. :-) I am just running the script from a http request. I can probably have them run it if need to. Thanks, > >Tim Lewis wrote: >> I'm using the code from=20 >> = http://www.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script= =20 >> to generate plots from my web server. The plot shows up fine (w/o = text)=20 >> but when I use xlabel("x-axis"), ylabel("y-axis"), or title("A = Chart");=20 >> no text shows up on the plot. Everything seems fine with the install=20 >> and I don't get any errors when I run the script. It seems that that=20 >> matplotlib is unable to find the font's and just simply ignores them = --=20 >> I really dunno. >>=20 >> Any suggestions? >>=20 >>=20 >> = ------------------------------------------------------------------------ >>=20 >> = ------------------------------------------------------------------------- >> SF.Net email is sponsored by:=20 >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >>=20 >>=20 >> = ------------------------------------------------------------------------ >>=20 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: adamski246 <a...@go...> - 2007-12-07 16:38:10
|
I am part of a team trying to create interactive GUI scientific visualisations and would like some advice regarding the best way to proceed. We are trying to output mathematical functions (Fourier transforms, ray tracing etc.) in graphical form and have been very impressed with the ease Matplotlib can do this. However, all attempts to control or modify input to Matplotlib from a GUI (Tkinter, Wx, Jython, PyGTK etc.) have proved fruitless due to seeming incompatibility between these modules, particularly when one distributes any finished product to another platform. I am an experienced Java programmer who needs the portability and free technologies provided by Java (or Python) to distribute our applications and would like to know of the best way to mesh Matplotlib to a GUI creating system. We have experimented with the GUI creation possibilities of Matplotlib itself but these are inadequate for our needs. Does anyone know of (or has examples of) Matplotlib applications controlled by a GUI or must I return to my Java roots where I can easily solve all GUI problems but do not have access to a powerful maths library such as Matplotlib. Thanks adam -- View this message in context: http://www.nabble.com/Scientific-visualisation-techniques-tf4963066.html#a14215824 Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Darren D. <dar...@co...> - 2007-12-07 14:57:47
|
This list is for matplotlib, please try asking at the scipy mailing list. On Thursday 06 December 2007 10:20:30 am Samuel GARCIA wrote: > Hi all, > > I found something strange in scipy.stats.percentileofscore > > In [1]: from scipy import * > > In [2]: a = rand(10000) > > In [3]: stats.percentileofscore(a,.2) > Out[3]: 20.0157565073 > This OK. > > > In [4]: stats.percentileofscore(a,.0002) > Out[4]: 102.898311442 > This is strange !!!!! > > In [5]: stats.percentileofscore(a,1.4) > --------------------------------------------------------------------------- > <type 'exceptions.IndexError'> Traceback (most recent call last) > > /home/sgarcia/<ipython console> in <module>() > > /usr/lib/python2.5/site-packages/scipy/stats/stats.py in > percentileofscore(a, score, histbins, defaultlimits) > 942 cumhist = np.cumsum(h*1, axis=0) > 943 i = int((score - lrl)/float(binsize)) > --> 944 pct = > (cumhist[i-1]+((score-(lrl+binsize*i))/float(binsize))*h[i])/float(len(a)) > * 100 > 945 return pct > 946 > > <type 'exceptions.IndexError'>: index out of bounds > > This does work... > > > Any idea. > > Sam -- Darren S. Dale, Ph.D. Staff Scientist Cornell High Energy Synchrotron Source Cornell University 275 Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dar...@co... office: (607) 255-3819 fax: (607) 255-9001 http://www.chess.cornell.edu |
|
From: Adam M. <ram...@gm...> - 2007-12-07 14:57:05
|
On Dec 7, 2007 9:09 AM, Michael Droettboom <md...@st...> wrote: > You could try setting your backend to simply "Agg" to rule out some Tk > usage/installation problem as the culprit. Thanks, the problem goes away if I use the Agg backend. Cheers Adam |
|
From: Michael D. <md...@st...> - 2007-12-07 14:09:21
|
Unfortunately, I'm not able to reproduce this bug on RHEL 4. Valgrind (a memory checking tool) doesn't come up with any clues. You could try setting your backend to simply "Agg" to rule out some Tk usage/installation problem as the culprit. Other than that, I'm stumped, but maybe one of the Leopard users on this list has more insight. Cheers, Mike Adam Mercer wrote: > On Dec 7, 2007 8:21 AM, Michael Droettboom <md...@st...> wrote: > >> Can you also please attach your data -- or point to some acceptable data >> online? What platform and backend are you using? > > I've attached an example data file. I'm using the TKAgg backend on > Mac OS X Leopard. > > Cheers > > Adam -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Adam M. <ram...@gm...> - 2007-12-07 13:53:29
|
On Dec 7, 2007 8:21 AM, Michael Droettboom <md...@st...> wrote: > Can you also please attach your data -- or point to some acceptable data > online? What platform and backend are you using? I've attached an example data file. I'm using the TKAgg backend on Mac OS X Leopard. Cheers Adam |
|
From: Michael D. <md...@st...> - 2007-12-07 13:30:05
|
Can you set "verbose.level" to "debug-annoying" in your matplotlibrc and send us the output? That may help provide an explanation as to why the text is not appearing. Also, for good measure, can you provide your matplotlibrc file, and information about the platform and versions of Python that you are using? Do you get different results when you run at the commandline vs. from an http request? It could be that incorrect permissions (as user "apache", for instance) are causing the problems. Cheers, Mike Tim Lewis wrote: > I'm using the code from > http://www.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script > to generate plots from my web server. The plot shows up fine (w/o text) > but when I use xlabel("x-axis"), ylabel("y-axis"), or title("A Chart"); > no text shows up on the plot. Everything seems fine with the install > and I don't get any errors when I run the script. It seems that that > matplotlib is unable to find the font's and just simply ignores them -- > I really dunno. > > Any suggestions? > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Michael D. <md...@st...> - 2007-12-07 13:21:25
|
Can you also please attach your data -- or point to some acceptable data online? What platform and backend are you using? Cheers, Mike Adam Mercer wrote: > Hi > > Since updating to 0.91.1 one of my scripts, attached, has stopped > working. I get the following error when trying to run it > > $ ./plot.py data.dat plot.png > alloc: invalid block: 0x1c15fa4: 40 1 0 > > Abort trap > $ > > Any ideas what could be causing this? > > Cheers > > Adam > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Darren D. <dar...@co...> - 2007-12-07 12:25:04
|
On Friday 07 December 2007 7:19:04 am Jos=E9 G=F3mez-Dans wrote: > Hi, > > On Thursday 06 December 2007 19:39:59 Venkat Ramanan wrote: > > I'm looking for something analogous to Matlab's ginput() and roipoly(). > > I'm no expert on this, but have a look at the lasso_demo.py example, which > shows something akin to roipoly(), and pick_event_demo.py and > pick_even_demo2.py, which show something like ginput() (although I think = no > cross hairs :D). Check out cursor_demo.py and matplotlib.widgets.Cursor for cross hairs. |
|
From: <jgo...@gm...> - 2007-12-07 12:19:11
|
Hi, On Thursday 06 December 2007 19:39:59 Venkat Ramanan wrote: > I'm looking for something analogous to Matlab's ginput() and roipoly(). I'm no expert on this, but have a look at the lasso_demo.py example, which shows something akin to roipoly(), and pick_event_demo.py and pick_even_demo2.py, which show something like ginput() (although I think no cross hairs :D). I hope that's useful to you, Jose |
|
From: Vincent S. <sc...@sa...> - 2007-12-07 09:18:53
|
Michael Droettboom wrote: > Thanks, that helps a lot. > > It seems to be working now -- I've committed this in r4643. > > Cheers, > Mike Mike, thanks a lot for the rapid action! Bugs squashed. Cheers, Vincent. |
|
From: Tim L. <ti...@gm...> - 2007-12-07 00:00:30
|
I'm using the code from http://www.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script to generate plots from my web server. The plot shows up fine (w/o text) but when I use xlabel("x-axis"), ylabel("y-axis"), or title("A Chart"); no text shows up on the plot. Everything seems fine with the install and I don't get any errors when I run the script. It seems that that matplotlib is unable to find the font's and just simply ignores them -- I really dunno. Any suggestions? |
|
From: Venkat R. <ve...@sr...> - 2007-12-06 21:50:53
|
Hi, I have written a simple image viewing tool with window/level controls linked to the right mouse, which generally works okay. But when I use the pan/zoom button, clicking and dragging the right mouse button changes the zoom as intended, but also affects the window/level too which is undesirable. How to change the callback so that the pan/zoom mode doesn't affect window/level? The code is attached. If there are better image viewing tools using matplotlib, I can upgrade, but I couldn't find them on a quick search. The goal is to add some plotting capability ( plot row, col on user-specified coordinates) and some ROI drawing capability. ( See my other post for those questions. ) Matplotlib: 0.87.7, python: 2.5 ubuntu 7.04 Thanks, Venkat. |
|
From: Adam M. <ram...@gm...> - 2007-12-06 21:18:33
|
Hi Since updating to 0.91.1 one of my scripts, attached, has stopped working. I get the following error when trying to run it $ ./plot.py data.dat plot.png alloc: invalid block: 0x1c15fa4: 40 1 0 Abort trap $ Any ideas what could be causing this? Cheers Adam |
|
From: Venkat R. <ve...@sr...> - 2007-12-06 19:40:23
|
Hi, I'm looking for something analogous to Matlab's ginput() and roipoly(). ginput() basically displays a crosshair on the current figure and allows us to select points by clicking on it. It returns the x,y coordinates of the points. roipoly() allows us to define a polygon by clicking on the figure and returns a logical matrix, where ones represent the insides of the polygon and zeros outside. Any pointers are appreciated. I recently found matplotlib and started porting some of my Matlab scripts to it. Ubuntu feisty (7.04), matplotlib 0.87.7. I can upgrade though. Thanks, Venkat. |
|
From: Jessica Lu <jl...@as...> - 2007-12-06 19:36:24
|
Hi, I just happened to do the same thing two days ago. If you want uncertainties as well, here is some code that uses scipy.optimize. I just put up a preliminary example on the scipy wiki: http://www.scipy.org/Cookbook/FittingData?action=show Not the cleanest or most sophisticated code in the world, but it works for simple things. Cheers, Jessica On Dec 6, 2007, at 8:06 AM, Ryan May wrote: > Ping Yeh wrote: >> Hi, >> >> I have (x,y) data that I want to fit to the formula >> y = a * x^b >> to determine a and b. How can I do it? The current >> manual only lists linear fit and polynomial fit. >> > > If you just want quick power law fit without turning to the other > solutions, you can just transform your variables to make it a > linear fit > problem: > > log(y) = log(a * x^b) = log(a) + b * log(x) > > So just do the linear regression with the logarithms of x and y, > and the > slope you get back will be b, and the intercept will be log(a). > > Ryan > > -- > Ryan May > Graduate Research Assistant > School of Meteorology > University of Oklahoma > > ---------------------------------------------------------------------- > --- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Eric F. <ef...@ha...> - 2007-12-06 19:03:39
|
Mike, Thanks for fixing those two errors that I introduced in 4374. I'm sorry that I evidently did not test that code path, or even inspect it carefully. Eric Michael Droettboom wrote: > > Thanks, that helps a lot. > > It seems to be working now -- I've committed this in r4643. > > Cheers, > Mike > > Vincent Schut wrote: >> Hmm, that's a bit hard, it's not really what one would call a >> self-contained example... >> >> the bug triggers when I load a rgb numpy float array with imshow (only >> with floats, not with ints). >> >> After some thought and trial, it's simple: these lines already trigger >> the error: >> >> #====================== >> import pylab, numpy >> >> rgbFloat = numpy.random.random((100,100,3)) >> pylab.imshow(rgbFloat) >> pylab.show() >> #====================== >> >> Hope that helps! >> >> VS. >> >> >> >> Michael Droettboom wrote: >>> Can you send your script that triggers this bug? I wasn't the author of >>> this code, so I don't know how to get that path to execute -- but I'm >>> happy to work through your example until it's working. >>> >>> (I suspect the intention here was "m, n = x.shape[:2]", but I can't test >>> it.) >>> >>> Cheers, >>> Mike >>> >>> Vincent Schut wrote: >>>> Thanks. >>>> However, now I get a different error: >>>> >>>> Traceback (most recent call last): >>>> File >>>> "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", >>>> line 331, in expose_event >>>> self._render_figure(self._pixmap, w, h) >>>> File >>>> "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", >>>> line 319, in _render_figure >>>> self.figure.draw (self._renderer) >>>> File "/usr/lib64/python2.5/site-packages/matplotlib/figure.py", line >>>> 622, in draw >>>> for a in self.axes: a.draw(renderer) >>>> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line >>>> 1297, in draw >>>> im.draw(renderer) >>>> File "/usr/lib64/python2.5/site-packages/matplotlib/image.py", line >>>> 188, in draw >>>> im = self.make_image(renderer.get_image_magnification()) >>>> File "/usr/lib64/python2.5/site-packages/matplotlib/image.py", line >>>> 130, in make_image >>>> x = self.to_rgba(self._A, self._alpha) >>>> File "/usr/lib64/python2.5/site-packages/matplotlib/cm.py", line 61, >>>> in to_rgba >>>> m, n = npy.shape[:2] >>>> TypeError: 'function' object is unsubscriptable >>>> >>>> >>>> Michael Droettboom wrote: >>>>> Thanks. I have corrected this in SVN. >>>>> >>>>> Cheers, >>>>> Mike >>>>> >>>>> Vincent Schut wrote: >>>>>> Hi, >>>>>> >>>>>> there is a bug in cm.py (svn): it references npy (first time: line 58), >>>>>> but npy is never imported. >>>>>> >>>>>> Cheers, >>>>>> VS. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> SF.Net email is sponsored by: The Future of Linux Business White Paper >>>>>> from Novell. From the desktop to the data center, Linux is going >>>>>> mainstream. Let it simplify your IT future. >>>>>> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >>>>>> _______________________________________________ >>>>>> Matplotlib-users mailing list >>>>>> Mat...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> ------------------------------------------------------------------------- >>>> SF.Net email is sponsored by: The Future of Linux Business White Paper >>>> from Novell. From the desktop to the data center, Linux is going >>>> mainstream. Let it simplify your IT future. >>>> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: The Future of Linux Business White Paper >> from Novell. From the desktop to the data center, Linux is going >> mainstream. Let it simplify your IT future. >> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Giorgio F. G. <gi...@gi...> - 2007-12-06 18:17:02
|
I have the same problem with ubuntu gutsy. I believe it is a bug in libgnomeprint, not in wx. Ryan Krauss wrote: > FYI, I see this same warning in another wxPython program of mine that > doesn't use mpl or wxmpl, so it seems like it is a wxPython issue. > > Solutions are still welcome. > > Ryan > > On Nov 28, 2007 8:46 AM, Ryan Krauss <rya...@gm...> wrote: > >> I just created a small wxmpl example that I really like (attached), >> but when I run it, I get these error messages: >> >> ** (python:18091): WARNING **: Can't create printer "PDF" because the >> id "PDF" is already used >> >> (python:18091): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF >> could not be created >> >> >> (python:18091): GnomePrintCupsPlugin-WARNING **: The data for the CUPS >> printer PDF could not be loaded. >> >> >> I don't know if this is wxmpl specific, caused by wxPython, or caused >> by matplotlib, but I would like to make it go away. Any thoughts? >> >> Thanks, >> >> Ryan >> >> > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Giorgio F. G. <gi...@gi...> - 2007-12-06 18:09:59
|
As as wxmpl user I say that is a great great idea! Christopher Barker wrote: > John Hunter wrote: > >> You cannot import pylab and use the FigureCanvasWx at the same time. >> Please follow the lead of examples/embedding_in_wx*.py if you want to >> use matplotlib in a wxpython GUI. >> > > or use wxmpl: > > http://agni.phys.iit.edu/~kmcivor/wxmpl/ > > By the way, couldn't that be distributed with Matplotlib? Maybe in > toolkits, if not the main distro. > > -Chris > > > |
|
From: <jor...@bo...> - 2007-12-06 18:09:49
|
Michael Droettboom skrev: > I'm on a Linux box (I'm assuming you're on Windows, since you mentioned > Process Explorer), and I wasn't able to find any file handle "leaks", as > such, but I did see that font files were being opened many more times > than they need to be. > > If you're able to run from Subversion, r4633 has a fix for this. I'm > curious if it fixes your symptoms. > Yes this fixed the problem. /Jörgen |
|
From: Ryan M. <rm...@ou...> - 2007-12-06 16:06:29
|
Ping Yeh wrote: > Hi, > > I have (x,y) data that I want to fit to the formula > y = a * x^b > to determine a and b. How can I do it? The current > manual only lists linear fit and polynomial fit. > If you just want quick power law fit without turning to the other solutions, you can just transform your variables to make it a linear fit problem: log(y) = log(a * x^b) = log(a) + b * log(x) So just do the linear regression with the logarithms of x and y, and the slope you get back will be b, and the intercept will be log(a). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
|
From: John H. <jd...@gm...> - 2007-12-06 15:45:54
|
On Dec 6, 2007 5:40 AM, Andrew Jaffe <a.h...@gm...> wrote: > Hi All, > > I've been compiling svn versions of matplotlib on OSX for quite a while > with no (or few...) problems. > > On upgrading to leopard on my mac pro, I've run into the > error messages below. > > External libs are from fink. There seems to be some problem with > attempts to build a universal binary. The error you are getting looks like libjpeg wasn't built as a universal binary, and you *might* have success by setting the arch flags, eg export ARCHFLAGS="-arch i386" export MACOSX_DEPLOYMENT_TARGET=10.5 export CFLAGS="-arch i386" export LDFLAGS="-arch i386" export CXXFLAGS="-arch i386" but I tried in vein earlier to get a build respecting these flags working (wasn't using fink though). You might want to simply edit setupext.py to *remove* the /sw fink paths, and follow the instructions http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes and http://ipython.scipy.org/moin/Py4Science/InstallationOSX Hope this helps, JDH |