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
(20) |
2
(16) |
3
(9) |
4
(12) |
5
(14) |
6
(22) |
7
(17) |
8
(33) |
9
(26) |
10
(32) |
11
(47) |
12
(26) |
13
(7) |
14
(24) |
15
(44) |
16
(42) |
17
(22) |
18
(31) |
19
(8) |
20
(4) |
21
(15) |
22
(27) |
23
(41) |
24
(33) |
25
(31) |
26
(24) |
27
(10) |
28
(20) |
|
|
|
|
|
|
I am terribly sorry, but it looks like all the indentation disappeared from the code. I'll try to attach the path file here. Best regards, Pavlo On Thu, Feb 4, 2010 at 16:19, Pavlo Shchelokovskyy <shc...@gm...> wrote: > Hi all, > I've got bored with the generic application icon in the wx backend so > I added the same icon as GTK backend uses (it is anyway bundled with > matplotlib). I have tested this on Windows (XP, Python 2.6.4, > matplotlib 0.99.1, wxPython 2.8.10.1) and on Linux (Fedora8, Python > 2.5.1, matplotlib 0.98.3, wxPython 0.8.9.1) > may be somebody from developers can integrate this patch into the source...
Hi all, I've got bored with the generic application icon in the wx backend so I added the same icon as GTK backend uses (it is anyway bundled with matplotlib). I have tested this on Windows (XP, Python 2.6.4, matplotlib 0.99.1, wxPython 2.8.10.1) and on Linux (Fedora8, Python 2.5.1, matplotlib 0.98.3, wxPython 0.8.9.1) may be somebody from developers can integrate this patch into the source... *** backend_wx.py 2010年02月04日 13:17:59.954259000 +0100 --- backend_wx.py 2010年02月04日 16:00:45.251283000 +0100 *************** *** 1454,1460 **** self.figmgr = FigureManagerWx(self.canvas, num, self) bind(self, wx.EVT_CLOSE, self._onClose) ! def _get_toolbar(self, statbar): if matplotlib.rcParams['toolbar']=='classic': toolbar = NavigationToolbarWx(self.canvas, True) --- 1454,1473 ---- self.figmgr = FigureManagerWx(self.canvas, num, self) bind(self, wx.EVT_CLOSE, self._onClose) ! ! # setting window icon to replace the generic one ! self.SetIcon(self._load_icon()) ! ! def _load_icon(self): ! # since wxPython does not support SVG, only PNG image is used ! icon = wx.IconFromBitmap(_load_bitmap('matplotlib.png')) ! # on Windows wxPython can not use one icon size for all sizes, ! # with only exception of 32px -> 16px auto conversion ! if wx.Platform == '__WXMSW__': ! icon.SetHeight(32) ! icon.SetWidth(32) ! return icon ! def _get_toolbar(self, statbar): if matplotlib.rcParams['toolbar']=='classic': toolbar = NavigationToolbarWx(self.canvas, True)
Hello! I'm writing an application that will show different plots on it's GUI. In order to switch between the different plot types I'd like to destroy the first plot and to create a new afterwards. I stumbled into a memory leak since I don't know how to close matplotlib figures the clean way. I wrote a small test programm. Pressing the button 'create' creates a figure and 'delete' should destroy it. Since the graph class is derived from the Tix.Frame class I would expect that destroying the Frame would also remove all matplot stuff. But when I do not implement my own destroy() method in the graph class, destroying the Frame shows absolutely no effect. The plot simply stays on the screen. When I overload the Tix.Frame.destroy() method with my own implementation, as shown below, the plot disappears but not all memory is being released. When creating and deleting figures, the amount of memory python needs is constantly growing and python eventually crashes. I tried to find a solution on the internet but I found nothing really helpful so far. All examples I found just display something and then just exit. I appreciate any help! -------------- import matplotlib matplotlib.use('TkAgg') from numpy import arange, sin, pi from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import Figure import Tix import sys def destroy(e): sys.exit() root = Tix.Tk() class graph(Tix.Frame): def __init__(self, master, **kw): Tix.Frame.__init__(self, master, **kw) self.f = Figure(figsize=(5,4), dpi=100) self.a = self.f.add_subplot(111) t = arange(0.0,3.0,0.01) s = sin(2*pi*t) self.a.plot(t,s) self.canvas = FigureCanvasTkAgg(self.f, master=self.master) self.canvas.show() self.canvas.get_tk_widget().pack(side=Tix.TOP, fill=Tix.BOTH, expand=1) self.toolbar = NavigationToolbar2TkAgg(self.canvas, root ) self.toolbar.update() self.canvas._tkcanvas.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1) def destroy(self): Tix.Frame.destroy(self) self.toolbar.destroy() self.canvas._tkcanvas.destroy() class ui(Tix.Frame): g = None def __init__(self, master, **kw): Tix.Frame.__init__(self, master, **kw) self.b = Tix.Button(self, text='create', command=self.create) self.b.pack() self.b2 = Tix.Button(self, text='delete', command=self.delete) self.b2.pack() def delete(self): try: self.g.destroy() except: pass def create(self): self.delete() self.g = graph(root) ui(root).pack() root.mainloop() -- View this message in context: http://old.nabble.com/Memory-leak-when-destroying-Tk-frame-containing-a-figure-tp27452209p27452209.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Wed, 2010年02月03日 at 22:04 -0800, Michael Cohen wrote: > > One of the most persistent problems I have with matplotlib is finding > > out which kwargs and args are available for some commands. > > For instance, I am looking at manipulating axis ticks and labels in > > mplot3d, so I went to the mplot3d api page, and looked for useful > > commands and found: > > > > set_xlabel(xlabel, fontdict=None, **kwargs)¶ > > Set xlabel. > > > > set_xlim3d(*args, **kwargs)¶ > > Set 3D x limits. > > > > However, there is no information that I can find about "args" and > > "kwargs" that I can use to figure out how to make my changes. Don't these unbound methods just take the same arguments as the bound methods "xlabels" and "xlim", as given in http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xlabel and http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xlim ?
Hi, your problem is that you enter the X values in an unordered way? Then, you just have to sort the key-value-pairs before plotting. One way it works is to create a dict in the form "d = {x1: y1,x2:y2}" (with a for loop and so on), then extract the keys: k = d.keys() k.sort() v = [d[key] for key in k] ... now plot(k,v) Maybe there is a simpler solution, but this one works. Regards, Philipp
Hi, > If I select the x in > the upper right, it dies badly. This is maybe another problem, after closing the windows the program should exit with exitcode 0. -------------------------- # -*- coding: utf-8 -*- from pylab import * t = linspace(0,10,100) plot(t, sin(t)) show() -------------------------- If the problem occurs with the example above it would help if you paste the error message and the exit code. Regards, Philipp
Can anyone help? Michael On 2/1/2010 9:04 PM, Michael Cohen wrote: > Hi all, > One of the most persistent problems I have with matplotlib is finding > out which kwargs and args are available for some commands. > For instance, I am looking at manipulating axis ticks and labels in > mplot3d, so I went to the mplot3d api page, and looked for useful > commands and found: > > set_xlabel(xlabel, fontdict=None, **kwargs)¶ > Set xlabel. > > set_xlim3d(*args, **kwargs)¶ > Set 3D x limits. > > However, there is no information that I can find about "args" and > "kwargs" that I can use to figure out how to make my changes. > > For the record, I want to be able to change the size of the font, the # > and values of the tick marks, and to move the axis labels to one or the > other end of the axis they are labelling. > > Cheers > Michael > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
I am trying to extend the bar3d API to include linewidth and linecolor parameters. I got it about halfway working and I would like a pointer on how to finish the job. These are the relevant lines of my test script I used to plot the attached images. ... ax.bar3d(xpos, ypos, zpos, dx, dy, dz) ax.bar3d(xpos[:4], ypos[:4], zpos[:4], dx[:4], dy[:4], dz[:4], linewidth=10, edgecolor='r') ... As you can see, it works from certain angles, but not others. I am wondering if some 3d patches or 3d polys get created somewhere else that I need to modify. Or maybe this is more Z order issues. Or maybe a normal issue. What I did was simply add linewidth and linecolor parameters to the definition of Axes3D.bar3d(). Then I simply pass them into: art3d.Poly3DCollection() near the end of bar3d(). Thanks, -Ben
See Subject. I'm looking at an example whose last line is Show(). I see nothing on the graphic that will allow me to exit. If I select the x in the upper right, it dies badly. -- My life in two words. "Interrupted Projects." -- WTW (quote originator)
I have a bunch of (x,y) points that relate to an ordered path of a meteor; however, when plotted they may no become ordered. For example, (0,0), (2,2), (1,1), (3,4) ... Point 2 jumps backwards. I'd like to connect the points with a line, or better, a line with an arrow indicating direction, so when someone looks at the plot, they can see how uneven the path is and any possible wild jumps in the direction. For example, (0,0), (0.5, 11), (1,1), (2,2) ... Can this be dome? -- My life in two words. "Interrupted Projects." -- WTW (quote originator)
I'm using autoscale_view for the y axis, but find with a marker size > about 10, it will autoscale the graphs such that some markers are bisected by the edges of the frame. I already have it set to: self.subplot.autoscale_view(tight=False, scalex=False, scaley=True) so I'd basically like "tight" here to be "even less tight". For example, for a graph of time in minutes along the y axis, I'd like the bottom of the graph to actually be a bit below zero to catch events that are 0.5 min, etc., without them being half-buried under the edge of the graph. Can autoscale_view be altered a bit to allow for a more generous view? Thanks, Che
I completely understand how hard z sorting can be. However, I think the orthogonal planes that compose the parallel boxes is a pretty constrained problem that does not require a general solution. I might be able to lend a hand if I had some pointers where to get started in the mplot3d library. Thanks, -Ben -----Original Message----- From: Reinier Heeres [mailto:re...@he...] Sent: Wednesday, February 03, 2010 6:10 PM To: Ben Axelrod; pie...@bn...; ben...@ou... Cc: mat...@li... Subject: Re: [Matplotlib-users] re ndering bug in bar3d Hi, Unfortunately z-sorting the polygons is a really hard problem. Or in fact, in the way it is currently implemented, an unsolvable problem. Please remember that mplot3d is not a full-blown 3d engine. Fixing this would require either a z-buffer or things such as BSP trees, which I do not think are feasible to implement. However, I do believe that there might be a small bug lurking somewhere or some other slight improvements to be made. I'll try to look into it after my 2 week holiday. Regards, Reinier On Thu, Jan 28, 2010 at 8:42 PM, baxelrod <bax...@co...> wrote: > > I am also seeing this behavior and it is unfortunately holding my > project back. > > I have seen it with python 2.6 on Debian Linux and Windows XP. I have > seen it in version 0.99.1 and the latest SVN tree (as of yesterday). > > I want to highlight a portion of each 3d bar with another color. This > image shows what I want to do: > http://old.nabble.com/file/p27358778/bar3d-1.png > (http://www.benaxelrod.com/temp/bar3d-1.png) > > But rotating the view leads to rendering issues: > http://old.nabble.com/file/p27358778/bar3d-2.png > (http://www.benaxelrod.com/temp/bar3d-2.png) > > http://old.nabble.com/file/p27358778/bar3d-3.png > (http://www.benaxelrod.com/temp/bar3d-3.png) > > In this example, the bars are drawn next to each other. Here is the > source code to generate the images: > > # code adapted from: hist3d_demo.py > from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as > plt import numpy as np > > fig = plt.figure() > ax = Axes3D(fig) > x, y = np.random.rand(2, 100) * 4 > hist, xedges, yedges = np.histogram2d(x, y, bins=4) > > elements = (len(xedges) - 1) * (len(yedges) - 1) xpos, ypos = > np.meshgrid(xedges[:-1]+0.25, yedges[:-1]+0.25) > > xpos = xpos.flatten() > ypos = ypos.flatten() > zpos = np.zeros(elements) > > dx = 0.5 * np.ones_like(zpos) > dy = dx.copy() > dz = hist.flatten() > > dx = dx*0.5 > xpos = xpos - dx > > ax.bar3d(xpos, ypos, zpos, dx, dy, dz, color='b') ax.bar3d(xpos+dx, > ypos, zpos, dx, dy, dz, color='r') > > ax.set_xlabel('X') > ax.set_ylabel('Y') > ax.set_zlabel('Z') > > plt.show() > #end code > > I also tried to overlap the bars, but the result was even worse > because from certain angles one of the colors was not visible at all. > > I thought that the issue might be due to calling bar3d muliple times. > So I tried passing in an array of collors to bar3d with no luck. It > seems that bar3d only takes a single color. Is this planned to be > fixed so that > bar3d() can take a color array just like bar()? > > Also note that even very simple examples demonstrate the bug. For example: > http://old.nabble.com/file/p27358778/bar3d-4.png > (http://www.benaxelrod.com/temp/bar3d-4.png) > > http://old.nabble.com/file/p27358778/bar3d-5.png > (http://www.benaxelrod.com/temp/bar3d-5.png) > > Thanks, > -Ben > > > pierre-yves.debrito wrote: >> >> Hi, >> I am currently using this version : matplotlib-0.99.1.win32-py2.6.exe >> When I draw several Axes3D.bar3d in the same figure, as in this >> example, the faces are not drawn in the correct order. >> Did I do something wrong or is it a rendering bug? >> Is there a workaround? >> >> Thanks >> Pierre-Yves de Brito >> >> >> >> >> >> from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as >> plt from numpy import array, arange >> >> >> contrib=[[0.18263,0.19098,0.16815,0.16295,0.09372,0.10505,0.15934], >> [0.00769,0.01315,0.01668,0.01645,0.03536,0.03493,0.00599], >> [0.47109,0.43646,0.43171,0.41794,0.14761,0.09472,0.21969], >> [0.25633,0.28820,0.34066,0.37184,0.68048,0.72773,0.57749], >> [0.06492,0.05539,0.03205,0.02151,0.03357,0.02411,0.01512]] >> >> print contrib[0] >> N = 7 >> ind = arange(N) # the x locations for the groups width = 0.1 >> # the width of the bars: can also be len(x) sequence >> >> >> I = array([1,1,1,1,1,1,1]) >> >> fig = plt.figure() >> ax = Axes3D(fig) >> >> for i in range(1,7): >> ax.bar3d(ind[i], 0, 0, 0.1, 0.1, contrib[0][i], color='b') >> ax.bar3d(array(ind[i])+0.15, 0, 0, 0.1, 0.1, contrib[1][i], color='r' >> ) >> ax.bar3d(array(ind[i])+2*0.15, 0, 0, 0.1, 0.1, contrib[2][i], >> color= >> 'g') >> ax.bar3d(array(ind[i])+3*0.15, 0, 0, 0.1, 0.1, contrib[3][i], >> color= >> 'c') >> ax.bar3d(array(ind[i])+4*0.15, 0, 0, 0.1, 0.1, contrib[4][i], >> color= >> 'm') >> >> plt.show() >> >> >> >> >> This message and any attachments (the "message") is intended solely >> for the addressees and is confidential. >> If you receive this message in error, please delete it and >> immediately notify the sender. Any use not in accord with its >> purpose, any dissemination or disclosure, either whole or partial, is >> prohibited except formal approval. The internet can not guarantee the >> integrity of this message. >> BNP PARIBAS (and its subsidiaries) shall (will) not therefore be >> liable for the message if modified. >> Do not print this message unless it is necessary, consider the >> environment. >> >> --------------------------------------------- >> >> Ce message et toutes les pieces jointes (ci-apres le >> "message") sont etablis a l'intention exclusive de ses destinataires >> et sont confidentiels. Si vous recevez ce message par erreur, merci >> de le detruire et d'en avertir immediatement l'expediteur. Toute >> utilisation de ce message non conforme a sa destination, toute >> diffusion ou toute publication, totale ou partielle, est interdite, >> sauf autorisation expresse. L'internet ne permettant pas d'assurer >> l'integrite de ce message, BNP PARIBAS (et ses >> filiales) decline(nt) toute responsabilite au titre de ce message, >> dans l'hypothese ou il aurait ete modifie. >> N'imprimez ce message que si necessaire, pensez a l'environnement. >> >> >> >> --------------------------------------------------------------------- >> --------- Let Crystal Reports handle the reporting - Free Crystal >> Reports 2008 30-Day trial. Simplify your report design, integration >> and deployment - and focus on what you do best, core application >> coding. Discover what's new with Crystal Reports now. >> http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > -- > View this message in context: > http://old.nabble.com/rendering-bug-in-bar3d-tp26413625p27358778.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------- > -------- The Planet: dedicated and managed hosting, cloud storage, > colocation Stay online with enterprise data centers and the best > network in the business Choose flexible plans and management services > without long-term contracts Personal 24x7 support from experience > hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Reinier Heeres Tel: +31 6 10852639