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
|
From: John H. <jdh...@ac...> - 2004-03-18 14:40:38
|
>>>>> "Jean-Baptiste" == Jean-Baptiste Cazier <Jea...@de...> writes: Jean-Baptiste> If I try to call figlegend from the canvas, Jean-Baptiste> canvas.Figure or canvas.Figure.axes[0], I get an Jean-Baptiste> erro message as figlegend is not defined in any of Jean-Baptiste> these contexts canvas.figure.figlegend(tuple([i[1] Jean-Baptiste> for i in d]),tuple([i[0] for i in d]),'upper Jean-Baptiste> center') AttributeError: Figure instance has no Jean-Baptiste> attribute 'figlegend' In order to trace what command you should be using to go from the matlab interface to the OO API, do the following Go to matlab.py and find the command you want to use. In this case it's figlegend. Search for 'def figlegend' You'll find: def figlegend(handles, labels, loc): 'snip documentation' l = gcf().legend(handles, labels, loc) draw_if_interactive() return l The critical line is l = gcf().legend(handles, labels, loc) gcf() returns the current Figure instance. Hence matlab.figlegend is calling Figure.legend. This should help, JDH |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-18 14:36:57
|
S=E6ll=20 One mroe question from me today :) I have some trouble running polyfit with matplotlib-0.52 Can you please help me finding out what I do wrong=20 I give a list of x values and y values as well as the degree of the desired= polynome. But all I get is the following error >>> x=3D[1,2,3] >>> y=3D[1,2,1] >>> polyfit(x,y,3) Traceback (most recent call last): File "<<console>>", line 1, in ? File "/usr/lib/python2.2/site-packages/matplotlib/mlab.py", line 341, in = polyfit X =3D Matrix(vander(x, N+1)) File "/usr/lib/python2.2/site-packages/matplotlib/mlab.py", line 383, in = vander X =3D ones( (len(x),N), x.typecode()) AttributeError: 'list' object has no attribute 'typecode' Any idea ? Thanks Jean-Baptiste --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
From: John H. <jdh...@ac...> - 2004-03-18 14:35:02
|
>>>>> "Jean-Baptiste" == Jean-Baptiste Cazier <Jea...@de...> writes: Jean-Baptiste> I do not see the utilitiy of the b variable. Is it Jean-Baptiste> to keep some kind of scheme ? or just a left over Jean-Baptiste> from set_visible ? It's a bug, just use def get_visible(self): "return the artist's visiblity" return self._visible Jean-Baptiste> By the way on which backend is the alpha channel Jean-Baptiste> supported Agg, TkAgg, GTKAgg. Since I know you are a GTK user, I suspect you'll be interested in GTKAgg. It's identical to the GTK backend in terms of the widget set, but the figures are renderer with agg. I know you are interested in object_picker so I might as well deal with that now :-). You have to make a couple of minor changes to object_picker.py to work with GTKAgg. In my apps I import FigureCasvasGTK or FigureCanvasGTKAgg renamed as FigureCanvas, which makes it easy to switch back and forth if you want. import matplotlib matplotlib.use('GTKAgg') from matplotlib.backends.backend_gtk import NavigationToolbar, \ error_msg, colorManager from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas Then create your picker canvas like class PickerCanvas(FigureCanvas): def button_press_event(self, widget, event): width = self.figure.bbox.x.interval() height = self.figure.bbox.y.interval() self.pick(event.x, height-event.y) The rest is OK. JDH |
From: John H. <jdh...@ac...> - 2004-03-18 14:25:03
|
>>>>> "Greg" == Greg Whittier <gr...@th...> writes: Greg> I was ready to produce a polar plot and, unless I'm missing Greg> something this doesn't seem to be a feature. Looking at the Greg> list archives and the future direction on the website I Greg> can't find the word "polar" anywhere. Is this feature there Greg> in some non-obvious way or is not implemented. Are there Greg> any plans? I guess it's a good sign when you are surprised *not to find something* rather than the converse :-) There are no polar plots currently. This should be documented on the goals page - thanks for reminding me. matplotlib development is driven by what I need and what people ask for. Noone has asked for polar plots yet, but since there were two requests today, I guess it's officially on the list of things to do. If anyone else is interested in taking a stab at this, let me know. The relevant classes are axis.Axis, transforms.Transform and axes.Axes. JDH |
From: Flavio C. C. <fcc...@ci...> - 2004-03-18 14:21:48
|
Hi, I use matplotlib for a math modelling software. I would like to create a figure, using the mathtext module, that would consist entirely of a list of equations. This figure would be embedded in WX. can anyone give me some pointer on how to get started? thanks, Flavio |
From: Steve C. <ste...@ya...> - 2004-03-18 14:12:07
|
Hello, .matplotlibrc has: figure.figsize : 8, 6 # figure size in inches figure.dpi : 80 # figure dots per inch figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray figure.edgecolor : w # figure edgecolor; w is white yet figure.py does not use the default figsize and dpi, it has: class Figure(Artist): def __init__(self, figsize, dpi, facecolor=rcParams['figure.facecolor'], edgecolor=rcParams['figure.edgecolor'], ): shouldn't it be something like: class Figure(Artist): def __init__(self, figsize = rcParams['figure.figsize'], dpi = rcParams['figure.dpi'], facecolor=rcParams['figure.facecolor'], edgecolor=rcParams['figure.edgecolor'], ): so it uses all the defaults and is consistent with the figure() function in matlab.py? Regards Steve |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-18 11:51:49
|
S=E6ll ! I followed you advice to use directly axes to define my subplots fig =3D Figure(figsize=3D(8,4), dpi=3D100) #ax =3D Subplot(fig, 211) ax =3D Plot.axes([0.1,0.3,0.8,0.7]) fig.add_axis(ax) #mrks =3D Subplot(fig, 212) mrks =3D Plot.axes([0.1,0.1,0.8,0.15], axisbg=3D'c') fig.add_axis(mrks) However,unlike in your axes_demo.py, my 2 axes are not linked to the size o= f the window and do not resize with it ! Is there a flag to turn on to allow my manually created axes to behave like= Subplots ? Takk Kv. Jean-Baptiste > - Can I change the size taken by each of the Suplots ?=20 >=20 > Just use axes. Subplot derives from Axes. With axes, you can set the > size of your subplot with a rect [left, bottom, width, height] >=20 > http://matplotlib.sourceforge.net/matplotlib.matlab.html#-axes > http://matplotlib.sourceforge.net/matplotlib.axes.html > http://matplotlib.sourceforge.net/screenshots.html#axes_demo --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-18 09:29:47
|
S=E6l ! I have installed matplotlib-0.52 and succesfully ran the figlegend example. However when I try to run it directly in my program into a figure i am not = as successful: - I can create the legend with=20 leg=3Dmatplotlib.matlab.figlegend(tuple([i[1] for i in d]),tuple([i[0] for = i in d]),'upper center') leg.draw() But it does not appear anywhere If I try to call figlegend from the canvas, canvas.Figure or canvas.Figure.= axes[0], I get an erro message as figlegend is not defined in any of these = contexts canvas.figure.figlegend(tuple([i[1] for i in d]),tuple([i[0] for i in d]),= 'upper center') AttributeError: Figure instance has no attribute 'figlegend' How can I get my figlegend to appear in my window ? Takk Jean-Baptiste On Fri, 12 Mar 2004 20:17:25 -0800 mat...@li... wrote: > Send Matplotlib-users mailing list submissions to > mat...@li... >=20 > 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... >=20 > You can reach the person managing the list at > mat...@li... >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Matplotlib-users digest..." >=20 >=20 > Today's Topics: >=20 > 1. invisilbe line (Jean-Baptiste Cazier) > 2. Re: invisilbe line (John Hunter) >=20 > --__--__-- >=20 > Message: 1 > Date: Fri, 12 Mar 2004 12:40:19 +0000 > From: Jean-Baptiste Cazier <Jea...@de...> > To: mat...@li... > Organization: deCODE Genetics > Subject: [Matplotlib-users] invisilbe line >=20 > S=3DE6l ! >=20 >=20 > Is there a way to "turn-off" lines without removing the data ? > My goal is to hide some lines in a plot wihtout losing the data so I can = sh=3D > ow it again later. > I can do=3D20 > # Hide the line > x=3D3Dline.get_xdata() > y=3D3Dline.get_ydata() > line.set_data([],[]) >=20 > # Reset the line > line.set_data(x,y) >=20 > But I would prefer I more elegant way like > line.hide() > line.show() >=20 > Would it be possible to get something like that ? >=20 > Thanks >=20 > Jean-Baptiste >=20 >=20 > --=3D20 > ----------------------------- > Jea...@de... >=20 > Department of Statistics > deCODE genetics Sturlugata,8 > 570 2993 101 Reykjav=3DEDk >=20 >=20 >=20 > --__--__-- >=20 > Message: 2 > To: Jean-Baptiste Cazier <Jea...@de...> > Cc: mat...@li... > Subject: Re: [Matplotlib-users] invisilbe line > From: John Hunter <jdh...@ac...> > Date: Fri, 12 Mar 2004 12:29:18 -0600 >=20 > --=3D-=3D-=3D > Content-Transfer-Encoding: quoted-printable >=20 > >>>>> "Jean-Baptiste" =3D3D=3D3D Jean-Baptiste Cazier <Jean-Baptiste.cazi= er@d=3D > ecode.is> writes: >=20 > Jean-Baptiste> S=3DE6l ! Is there a way to "turn-off" lines without > Jean-Baptiste> removing the data ? My goal is to hide some lines > Jean-Baptiste> in a plot wihtout losing the data so I can show it > Jean-Baptiste> again later. I can do # Hide the line > Jean-Baptiste> x=3D3Dline.get_xdata() y=3D3Dline.get_ydata() > Jean-Baptiste> line.set_data([],[]) >=20 > This can be done very easily (for any artist) with a minor > modification of artist.py. The base class forewards all drawing to > the derived classes so no other changes are required. Just replace > artist.py with the attached file below and then you can do: >=20 > from matplotlib.matlab import * >=20 > x =3D3D arange(0.0, 1.0, 0.05) > l1, l2 =3D3D plot(x, sin(2*pi*x), x, sin(4*pi*x)) > l1.set_visible(False) > show() >=20 >=20 > --=3D-=3D-=3D > Content-Type: application/octet-stream > Content-Disposition: attachment; filename=3Dartist.py >=20 > from __future__ import division > import sys >=20 > from cbook import True, False, enumerate > from transforms import RWRef >=20 > class DPI(RWRef): > 'DPI as a read/write reference' > pass > =20 > =20 > class Artist: > """ > Abstract base class for someone who renders into a Figure >=20 > Public attributes > dpi : a DPI instance > bbox : a Bound2D instance in display coords > transform : a Transform instance > renderer : the last renderer used to draw, or None > """ >=20 > aname =3D 'Artist' > def __init__(self, dpi, bbox): =20 > self.renderer =3D None > self._lod =3D False > self.dpi =3D dpi > self.bbox =3D bbox > self._clipOn =3D True > self._alpha =3D 1.0 > self._visible =3D True > =20 > def get_alpha(self): > """ > Return the alpha value used for blending - not supported on > all backends > """ > return self._alpha >=20 > def get_visible(self, b): > "return the artist's visiblity" > return self._visible=20 >=20 > def get_clip_on(self): > 'Return whether artist uses clipping' > return self._clipOn >=20 > def set_clip_on(self, b): > 'Set whether artist is clipped to bbox' =20 > self._clipOn =3D b >=20 > def set_visible(self, b): > "set the artist's visiblity" > self._visible =3D b > =20 > def set_child_attr(self, attr, val): > """ > Set attribute attr for self, and all child artists > """ > setattr(self, attr, val) > for c in self.get_child_artists(): > c.set_child_attr(attr, val) >=20 >=20 > def get_child_artists(self): > 'Return all artists contained in self' > return [] >=20 > def get_window_extent(self, renderer=3DNone): > 'Return the window extent of the Artist as a Bound2D instance' > raise NotImplementedError('Derived must override') >=20 >=20 > def get_dpi(self): > """ > Get the DPI of the display > """ > return self._dpi >=20 >=20 > def draw(self, renderer=3DNone, *args, **kwargs): > 'Derived classes drawing method' > if not self._visible: return=20 > if renderer is None: renderer =3D self.renderer > if renderer is None: return > self.renderer =3D renderer > =20 > self._draw(renderer, *args, **kwargs) >=20 > def _draw(self, renderer, *args, **kwargs): > 'Derived classes drawing method' > raise NotImplementedError, 'Derived must override' >=20 > def set_alpha(self, alpha): > """ > Set the alpha value used for blending - not supported on > all backends > """ > self._alpha =3D alpha >=20 > def set_lod(self, on): > """ > Set Level of Detail on or off. If on, the artists may examine > things like the pixel width of the axes and draw a subset of > their contents accordingly > """ > self._lod =3D on >=20 > =20 >=20 >=20 >=20 > --=3D-=3D-=3D >=20 >=20 > You'll still have a little function call overhead, but it should be > *significantly faster* than your current approach. >=20 > JDH >=20 > --=3D-=3D-=3D-- >=20 >=20 >=20 > --__--__-- >=20 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >=20 >=20 > End of Matplotlib-users Digest --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-18 08:54:46
|
S=E6l ! I think there is a bug in the definition of get_visible in the artist.py def get_visible(self, b): "return the artist's visiblity" return self._visible I do not see the utilitiy of the b variable. Is it to keep some kind of sch= eme ? or just a left over from set_visible ? By the way on which backend is the alpha channel supported Takk Kv. Jean-Baptiste --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
From: Peter G. <pgr...@ge...> - 2004-03-18 03:25:46
|
> > >I was ready to produce a polar plot and, unless I'm missing something >this doesn't seem to be a feature. Looking at the list archives and the >future direction on the website I can't find the word "polar" anywhere. >Is this feature there in some non-obvious way or is not implemented. >Are there any plans? > > I was actually about to ask the same question... Couldn't find any info either.. -- Peter Groszkowski Gemini Observatory Tel: +1 808 974-2509 670 N. A'ohoku Place Fax: +1 808 935-9235 Hilo, Hawai'i 96720, USA |
From: Greg W. <gr...@th...> - 2004-03-18 03:08:28
|
First, thanks for a great package. I've been using it for xy plot and like the intuitive interface and the output looks nice. I was ready to produce a polar plot and, unless I'm missing something this doesn't seem to be a feature. Looking at the list archives and the future direction on the website I can't find the word "polar" anywhere. Is this feature there in some non-obvious way or is not implemented. Are there any plans? Thanks, Greg |
From: Todd M. <jm...@st...> - 2004-03-17 21:57:30
|
On Wed, 2004-03-17 at 15:51, Gary Pajer wrote: > Thanks very much, guys! > > -Gary > You're welcome! Anyone interested in TkAgg that hasn't updated since I last announced changes should do so. JDH discovered that the toolbar was broken and I fixed it about an hour or so ago. Regards, Todd > > ----- Original Message ----- > From: "Todd Miller" <jm...@st...> > To: "John Hunter" <jdh...@ni...> > Cc: "Gary Pajer" <pa...@in...>; <mat...@li...> > Sent: Wednesday, March 17, 2004 11:38 AM > Subject: Re: [Matplotlib-users] TkAgg in a Tkinter GUI frame? > > > > On Tue, 2004-03-16 at 07:29, John Hunter wrote: > > > >>>>> "Gary" == Gary Pajer <pa...@in...> writes: > > > > > > Gary> I've been poking aroung a bit trying to see if I can locate > > > Gary> my plots in a frame in my own Tkinter GUI rather than a > > > Gary> stand-alone window. > > > > > > Gary> It looks like it might be possible if I can, for example, > > > Gary> extract the frame instance from a TkAgg plot (or something > > > Gary> like that) > > > > > > Gary> Can anyone comment or suggest a route? > > > > > > Todd, is this easily doable? > > > > As we all hoped, this was easy and is now in CVS. I refactored > > FigureManagerTkAgg and added FigureCanvasTkAgg to support the new > > functionality. FigureCanvasTkAgg defines get_tk_widget() to return > > whatever tk widget is used to implement it. Currently it returns a Tk > > canvas but I thought it would be best not to assume that will always be > > the case. Like other Tk widgets, FigureCanvasTkAgg wants to be told > > who its parent widget (master) is at construction time. > > > > > Could you write an embedding_in_tk.py > > > example along the lines of embedding_in_gtk and embedding_in_wx? > > > > This is also in CVS. > > > > > > > Regards, > > Todd > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > _______________________________________________ > > > Matplotlib-users mailing list > > > Mat...@li... > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- > > Todd Miller <jm...@st...> > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Todd Miller <jm...@st...> |
From: Gary P. <pa...@in...> - 2004-03-17 20:53:40
|
Thanks very much, guys! -Gary ----- Original Message ----- From: "Todd Miller" <jm...@st...> To: "John Hunter" <jdh...@ni...> Cc: "Gary Pajer" <pa...@in...>; <mat...@li...> Sent: Wednesday, March 17, 2004 11:38 AM Subject: Re: [Matplotlib-users] TkAgg in a Tkinter GUI frame? > On Tue, 2004-03-16 at 07:29, John Hunter wrote: > > >>>>> "Gary" == Gary Pajer <pa...@in...> writes: > > > > Gary> I've been poking aroung a bit trying to see if I can locate > > Gary> my plots in a frame in my own Tkinter GUI rather than a > > Gary> stand-alone window. > > > > Gary> It looks like it might be possible if I can, for example, > > Gary> extract the frame instance from a TkAgg plot (or something > > Gary> like that) > > > > Gary> Can anyone comment or suggest a route? > > > > Todd, is this easily doable? > > As we all hoped, this was easy and is now in CVS. I refactored > FigureManagerTkAgg and added FigureCanvasTkAgg to support the new > functionality. FigureCanvasTkAgg defines get_tk_widget() to return > whatever tk widget is used to implement it. Currently it returns a Tk > canvas but I thought it would be best not to assume that will always be > the case. Like other Tk widgets, FigureCanvasTkAgg wants to be told > who its parent widget (master) is at construction time. > > > Could you write an embedding_in_tk.py > > example along the lines of embedding_in_gtk and embedding_in_wx? > > This is also in CVS. > > > > Regards, > Todd > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- > Todd Miller <jm...@st...> > |
From: Todd M. <jm...@st...> - 2004-03-17 19:19:20
|
On Wed, 2004-03-17 at 11:24, John Hunter wrote: > >>>>> "Todd" == Todd Miller <jm...@st...> writes: > > Todd> This is also in CVS. > > Nice work! > > In a quick test, the only thing I noticed is that the figure window > does not resize when embedded but does on a normal plot. I don't know > if this is a bug or a feature :-). I implemented this since you brought it up and I think the new way qualifies as a feature. The widget packing can be used to drive either kind of behavior: resize-able or not-resize-able. The demo now resizes. Regards, Todd > In backend_gtk, I handle the > configure event in the FigureCanvas. > > Gary, if you need a src snapshot (the regular CVS mirrors can lag > sometimes by a couple of days), let me know. > > JDH > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Todd Miller <jm...@st...> |
From: John H. <jdh...@ac...> - 2004-03-17 16:47:02
|
>>>>> "Todd" == Todd Miller <jm...@st...> writes: Todd> This is also in CVS. Nice work! In a quick test, the only thing I noticed is that the figure window does not resize when embedded but does on a normal plot. I don't know if this is a bug or a feature :-). In backend_gtk, I handle the configure event in the FigureCanvas. Gary, if you need a src snapshot (the regular CVS mirrors can lag sometimes by a couple of days), let me know. JDH |
From: Todd M. <jm...@st...> - 2004-03-17 16:41:30
|
On Tue, 2004-03-16 at 07:29, John Hunter wrote: > >>>>> "Gary" == Gary Pajer <pa...@in...> writes: > > Gary> I've been poking aroung a bit trying to see if I can locate > Gary> my plots in a frame in my own Tkinter GUI rather than a > Gary> stand-alone window. > > Gary> It looks like it might be possible if I can, for example, > Gary> extract the frame instance from a TkAgg plot (or something > Gary> like that) > > Gary> Can anyone comment or suggest a route? > > Todd, is this easily doable? As we all hoped, this was easy and is now in CVS. I refactored FigureManagerTkAgg and added FigureCanvasTkAgg to support the new functionality. FigureCanvasTkAgg defines get_tk_widget() to return whatever tk widget is used to implement it. Currently it returns a Tk canvas but I thought it would be best not to assume that will always be the case. Like other Tk widgets, FigureCanvasTkAgg wants to be told who its parent widget (master) is at construction time. > Could you write an embedding_in_tk.py > example along the lines of embedding_in_gtk and embedding_in_wx? This is also in CVS. > Regards, Todd > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Todd Miller <jm...@st...> |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-17 16:12:55
|
It worked gret Thanks Jean-Baptiste On Wed, 17 Mar 2004 18:33:52 +0800 LUK ShunTim <shu...@po...> wrote: > Jean-Baptiste Cazier wrote: > > S=E6l ! > >=20 > >=20 > > I am trying to keep up with the versions of matplotlib by sucessively = installing them.=20 > > However I have to install it on many workstations that share folders ov= er the network > >=20 > > I would like to be able to install matplotlib into such a folder to avo= id installing it every time on each machine, but only once > > It works fine with Numeric and other packages, but not with matplotlib: > >=20 > > - I install matplotlib on my own workstation. > > - I copied recursively the folder /usr/lib/python2.2/site-packages/ma= tplotlib into /home/stat/Pygtk/matplotlib > > - And then in my program I have added the location of the library to m= y path: > > sys.path.append("/home/stat/Pygtk/matplotlib") > >=20 > > But I get the error message > > [lws11] ~/devel/novi $ novi.py -m map mixed.test.header.out > > Traceback (most recent call last): > > File "./novi.py", line 19, in ? > > import matplotlib.matlab as Plot > > File "/home/stat/Pygtk/matplotlib/__init__.py", line 225, in ? > > defaultParams =3D { > > File "/home/stat/Pygtk/matplotlib/__init__.py", line 154, in get_data= _path > > raise RuntimeError('Could not find the matplotlib data files') > > RuntimeError: Could not find the matplotlib data files > >=20 > >=20 > > Which other folder do I need to install or set a path to ? > >=20 > > Thanks > >=20 > > Kve=F0ja > >=20 > > Jean-Baptiste > >=20 >=20 > Hello, >=20 > You may have to set the MATPLOTLIBDATA environmental variable to where=20 > you store the data (fonts etc) if you install in a non-default location. >=20 > Regards, > ST --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
From: LUK S. <shu...@po...> - 2004-03-17 10:31:39
|
Jean-Baptiste Cazier wrote: > Sæl ! > > > I am trying to keep up with the versions of matplotlib by sucessively installing them. > However I have to install it on many workstations that share folders over the network > > I would like to be able to install matplotlib into such a folder to avoid installing it every time on each machine, but only once > It works fine with Numeric and other packages, but not with matplotlib: > > - I install matplotlib on my own workstation. > - I copied recursively the folder /usr/lib/python2.2/site-packages/matplotlib into /home/stat/Pygtk/matplotlib > - And then in my program I have added the location of the library to my path: > sys.path.append("/home/stat/Pygtk/matplotlib") > > But I get the error message > [lws11] ~/devel/novi $ novi.py -m map mixed.test.header.out > Traceback (most recent call last): > File "./novi.py", line 19, in ? > import matplotlib.matlab as Plot > File "/home/stat/Pygtk/matplotlib/__init__.py", line 225, in ? > defaultParams = { > File "/home/stat/Pygtk/matplotlib/__init__.py", line 154, in get_data_path > raise RuntimeError('Could not find the matplotlib data files') > RuntimeError: Could not find the matplotlib data files > > > Which other folder do I need to install or set a path to ? > > Thanks > > Kveðja > > Jean-Baptiste > Hello, You may have to set the MATPLOTLIBDATA environmental variable to where you store the data (fonts etc) if you install in a non-default location. Regards, ST |
From: Jean-Baptiste C. <Jea...@de...> - 2004-03-17 08:42:50
|
S=E6l ! I am trying to keep up with the versions of matplotlib by sucessively inst= alling them.=20 However I have to install it on many workstations that share folders over t= he network I would like to be able to install matplotlib into such a folder to avoid i= nstalling it every time on each machine, but only once It works fine with Numeric and other packages, but not with matplotlib: - I install matplotlib on my own workstation. - I copied recursively the folder /usr/lib/python2.2/site-packages/matplo= tlib into /home/stat/Pygtk/matplotlib - And then in my program I have added the location of the library to my pa= th: sys.path.append("/home/stat/Pygtk/matplotlib") But I get the error message [lws11] ~/devel/novi $ novi.py -m map mixed.test.header.out Traceback (most recent call last): File "./novi.py", line 19, in ? import matplotlib.matlab as Plot File "/home/stat/Pygtk/matplotlib/__init__.py", line 225, in ? defaultParams =3D { File "/home/stat/Pygtk/matplotlib/__init__.py", line 154, in get_data_path raise RuntimeError('Could not find the matplotlib data files') RuntimeError: Could not find the matplotlib data files Which other folder do I need to install or set a path to ? Thanks Kve=F0ja Jean-Baptiste --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |
From: Steve C. <ste...@ya...> - 2004-03-17 05:21:31
|
Hello, I sent a message to the numarray website to let them know that when they say "numarray lacks a plotting module" that's no longer true since matplotlib now works with numarray. However, when I looked at the matplotlib install page http://matplotlib.sourceforge.net/installing.html it currently says "matplotlib requires python 2.2+, Numeric." and further down "Note, you'll want the "numpy", not "numarray" files." I'm assuming the matplotlib support for numarray means that Numeric is no longer a requirement, is this true? If so it looks like the install page needs to be updated to avoid confusing numarray users. Regards Steve |
From: Todd M. <jm...@st...> - 2004-03-16 19:36:12
|
On Tue, 2004-03-16 at 07:29, John Hunter wrote: > >>>>> "Gary" == Gary Pajer <pa...@in...> writes: > > Gary> I've been poking aroung a bit trying to see if I can locate > Gary> my plots in a frame in my own Tkinter GUI rather than a > Gary> stand-alone window. > > Gary> It looks like it might be possible if I can, for example, > Gary> extract the frame instance from a TkAgg plot (or something > Gary> like that) > > Gary> Can anyone comment or suggest a route? > First an apology. I didn't see this until late yesterday when Perry alerted me. I wasn't subscribed to matplotlib-users. > Todd, is this easily doable? Frankly, I'm not sure. I'll try to work it out this afternoon. I imagine if it's possible in GTK it's possible in Tk. > Could you write an embedding_in_tk.py > example along the lines of embedding_in_gtk and embedding_in_wx? I'll try and let you know. > > The FigureCanvas derived instance in backend_* is meant to be a widget > you could plug into a GUI, but I notice you took a different tack in > backend_tkagg. The idea behind this is that users may want to embed a > figure as part of a GUI window, eg in a widget container, without > necessarily bringing the toolbar along or using the whole window. > Would this be an easy refactoring of backend_tkagg? We'll see. Regards, Todd -- Todd Miller <jm...@st...> |
From: John H. <jdh...@ac...> - 2004-03-16 19:11:19
|
What's new in matplotlib-0.52 Image support Basic image support. Images can be specified by Numeric float arrays imshow(X) If X is MxN, assume luminance (grayscale) If X is MxNx3, assume RGB If X is MxNx4, assume RGBA imshow(X, cmap) # plot X using colormap; see examples/pcolor_demo2.py see help(imshow) and the image_demo*.py examples in the matplotlib src distribution. Set BUILD_IMAGE in setup.py for image support. Currently available on Agg, GTKAgg, TkAgg and GTK backends. win32 GTK users should use GTKAgg unless your pygtk is compiled with Numeric support. The pseudocolor images generated with imshow are 8 million times faster than pcolors. Figure legends In addition to adding legends to the axes with the legend command, you can place legends anywhere in the figure with figlegend fill command Andrew Straw wrote a fill command to plot filled polygons. See fill_demo.py Make 2D spectrograms with specgram. Requires image support; see specgram_demo.py Bugfixes and minor improvements * Tk : Fixed a close figure bug in interactive mode * GTK : Much improved mathtext performance thanks to patch by Trevor Blackwell * All : Fixed a bug that showed up in successive calls to plot with just one plot argument Downloads at https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474&release_id=224080 |
From: John H. <jdh...@ac...> - 2004-03-16 13:07:07
|
>>>>> "matthew" == matthew arnison <ma...@ca...> writes: matthew> I can't seem to get multiple plots to draw on the same matthew> figure under TkAgg. In the below example, the cos() matthew> doesn't show up, and the tan produces an error. This matthew> seems to be repeatable for arbitrary cases of trying to matthew> plot 2 or 3 lines together on the one plot. Found and fixed. This crept into the functions that process plot arguments when I added matplotlibrc support there. In axes.py, search for def _plot_1_arg and replace the first part of it with def _plot_1_arg(self, y, **kwargs): if self.count==0: color = self.firstColor else: color = self.colors[int(self.count % self.Ncolors)] ^^^ this is the critical part matthew> Cheers and thanks for matplotlib, Matthew. Thanks for the bug report! JDH |
From: John H. <jdh...@ac...> - 2004-03-16 12:51:39
|
>>>>> "Gary" == Gary Pajer <pa...@in...> writes: Gary> I've been poking aroung a bit trying to see if I can locate Gary> my plots in a frame in my own Tkinter GUI rather than a Gary> stand-alone window. Gary> It looks like it might be possible if I can, for example, Gary> extract the frame instance from a TkAgg plot (or something Gary> like that) Gary> Can anyone comment or suggest a route? Todd, is this easily doable? Could you write an embedding_in_tk.py example along the lines of embedding_in_gtk and embedding_in_wx? The FigureCanvas derived instance in backend_* is meant to be a widget you could plug into a GUI, but I notice you took a different tack in backend_tkagg. The idea behind this is that users may want to embed a figure as part of a GUI window, eg in a widget container, without necessarily bringing the toolbar along or using the whole window. Would this be an easy refactoring of backend_tkagg? Thanks, JDH |
From: matthew a. <ma...@ca...> - 2004-03-16 07:01:52
|
I can't seem to get multiple plots to draw on the same figure under TkAgg. In the below example, the cos() doesn't show up, and the tan produces an error. This seems to be repeatable for arbitrary cases of trying to plot 2 or 3 lines together on the one plot. Cheers and thanks for matplotlib, Matthew. $ python Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from matplotlib.matlab import * >>> xx = arange(0, 3, 0.1) >>> plot(sin(xx)) [<matplotlib.lines.Line2D instance at 0x819613c>] >>> plot(cos(xx)) [<matplotlib.lines.Line2D instance at 0x8636444>] >>> plot(tan(xx)) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/matplotlib/matlab.py", line 788, in plot draw_if_interactive() File "/usr/lib/python2.2/site-packages/matplotlib/backends/backend_tkagg.py", line 46, in draw_if_interactive figManager.show() File "/usr/lib/python2.2/site-packages/matplotlib/backends/backend_tkagg.py", line 127, in show self.canvas.draw() File "/usr/lib/python2.2/site-packages/matplotlib/backends/backend_agg.py", line 334, in draw self.figure.draw(self.renderer) File "/usr/lib/python2.2/site-packages/matplotlib/artist.py", line 79, in draw self._draw(renderer, *args, **kwargs) File "/usr/lib/python2.2/site-packages/matplotlib/figure.py", line 81, in _draw for a in self.axes: a.draw(renderer) File "/usr/lib/python2.2/site-packages/matplotlib/artist.py", line 79, in draw self._draw(renderer, *args, **kwargs) File "/usr/lib/python2.2/site-packages/matplotlib/axes.py", line 493, in _draw line.draw(renderer) File "/usr/lib/python2.2/site-packages/matplotlib/artist.py", line 79, in draw self._draw(renderer, *args, **kwargs) File "/usr/lib/python2.2/site-packages/matplotlib/lines.py", line 177, in _draw gc.set_foreground(self._color) File "/usr/lib/python2.2/site-packages/matplotlib/backend_bases.py", line 230, in set_foreground self._rgb = colorConverter.to_rgb(fg) File "/usr/lib/python2.2/site-packages/matplotlib/colors.py", line 82, in to_rgb error_msg(msg) NameError: global name 'error_msg' is not defined >>> |