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
(8) |
2
(11) |
3
(4) |
4
(6) |
5
(13) |
6
(30) |
7
(21) |
8
(9) |
9
(19) |
10
(4) |
11
(5) |
12
(14) |
13
(19) |
14
(22) |
15
(12) |
16
(15) |
17
(14) |
18
(1) |
19
(1) |
20
(11) |
21
(9) |
22
(18) |
23
(39) |
24
(12) |
25
(7) |
26
(13) |
27
(18) |
28
(3) |
29
(5) |
30
(12) |
31
(10) |
|
Hello, I would like to know what I can do to fix this problem. Administrator@LIFEBOOK /cygdrive/c/downloads/matplotlib-0.98.3 : python setup.py build ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.3 python: 2.5.2 Stackless 3.1b3 060516 (release25-maint, Oct 1 2008, 19:33:07) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] platform: cygwin REQUIRED DEPENDENCIES numpy: 1.2.0 freetype2: 9.18.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.12 Traceback (most recent call last): File "setup.py", line 125, in <module> if check_for_tk() or (options['build_tkagg'] is True): File "/cygdrive/c/downloads/matplotlib-0.98.3/setupext.py", line 841, in check_for_tk explanation = add_tk_flags(module) File "/cygdrive/c/downloads/matplotlib-0.98.3/setupext.py", line 1084, in add_tk_flags result = parse_tcl_config(tcl_lib_dir, tk_lib_dir) File "/cygdrive/c/downloads/matplotlib-0.98.3/setupext.py", line 946, in parse_tcl_config tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:] IndexError: list index out of range Administrator@LIFEBOOK /cygdrive/c/downloads/matplotlib-0.98.3 :
Hello everybody! I'm trying to make a contour plot and add a legend for it. The code is basically --- from numpy import * from matplotlib.pyplot import * # put anything into x,y,z arrays ctr = contour(x,y,z) # plots ok contours of z(x,y) ctr.collections[0].set_label('z') legend() show() --- The legend() command produces an error (see below). What's wrong with this? Thanks for any help Jakub (Python 2.5 + matplotlib 0.98.3 on Win32, the same on Fedora 8) --- ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (184, 0)) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) C:\Documents and Settings\jurban\<ipython console> in <module>() C:\Python25\lib\site-packages\matplotlib\pyplot.pyc in legend(*args, **kwargs) 2388 2389 ret = gca().legend(*args, **kwargs) -> 2390 draw_if_interactive() 2391 return ret 2392 if Axes.legend.__doc__ is not None: C:\Python25\lib\site-packages\matplotlib\backends\backend_tkagg.pyc in draw_if_i nteractive() 59 figManager = Gcf.get_active() 60 if figManager is not None: ---> 61 figManager.show() 62 63 C:\Python25\lib\site-packages\matplotlib\backends\backend_tkagg.pyc in show(self ) 389 if sys.platform=='win32' : self.window.update() 390 else: --> 391 self.canvas.draw() 392 self._shown = True 393 C:\Python25\lib\site-packages\matplotlib\backends\backend_tkagg.pyc in draw(self ) 212 213 def draw(self): --> 214 FigureCanvasAgg.draw(self) 215 tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2) 216 self._master.update_idletasks() C:\Python25\lib\site-packages\matplotlib\backends\backend_agg.pyc in draw(self) 259 260 self.renderer = self.get_renderer() --> 261 self.figure.draw(self.renderer) 262 263 def get_renderer(self): C:\Python25\lib\site-packages\matplotlib\figure.pyc in draw(self, renderer) 757 758 # render the axes --> 759 for a in self.axes: a.draw(renderer) 760 761 # render the figure text C:\Python25\lib\site-packages\matplotlib\axes.pyc in draw(self, renderer, infram e) 1521 1522 for zorder, i, a in dsu: -> 1523 a.draw(renderer) 1524 1525 renderer.close_group('axes') C:\Python25\lib\site-packages\matplotlib\legend.pyc in draw(self, renderer) 195 if not self.get_visible(): return 196 renderer.open_group('legend') --> 197 self._update_positions(renderer) 198 if self._drawFrame: 199 if self.shadow: C:\Python25\lib\site-packages\matplotlib\legend.pyc in _update_positions(self, r enderer) 521 ydata = y*np.ones(handle.get_xdata().shape, float) 522 handle.set_ydata(ydata+h/2.) --> 523 handle._legmarker.set_ydata(ydata+h/2.) 524 elif isinstance(handle, Rectangle): 525 handle.set_y(y+1/4*h) AttributeError: 'Line2D' object has no attribute '_legmarker'
Mathew Yeates wrote: > Is there an easy way to find the locations in rectangle1 that are > covered by rectangle2? I couldn't find this anywhere. > > Mathew > Mathew: There's nothing included in matplotlib - I recommend Shapely (http://trac.gispython.org/lab/wiki/Shapely). It's an interface to the GEOS library, which you already have since you have basemap. Basemap includes it's own private interface to GEOS, but Shapely has a much better (although slower), well documented API. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328
Hi, In an aerodynamic environment. I need to plot multiple curves in one grid. A standard view would be the coefficients of: 1) lift vs. angle-of-attack 2) lift vs. drag 3) pitching-moment vs. angle-of-attack all three curves can be out of multiple data-sets (polars). This 3 curves need to be in one grid to be able to compare the values. (other combinations of coefficients are also widely used in this environment.) Some people use eg. Tecplot for this purpose. Basic requirements are: - multiple curves in one grid - multiple x-axis (lower/upper-side of grid) - multiple y-axis (left/right-side of grid) - adjusted grid (major/minor grid/ticks) - some interactivity - Environment (Python, wxPython) Questions: - Can this be done in matplotlib? - How? (any pointers) - Are there other possibilities? Thank you very much for any advice Grüessli -- Kurt Müller: kur...@ae...
Hello, I would like to know what I can do to fix this problem. Administrator@LIFEBOOK /cygdrive/c/downloads/matplotlib-0.98.3 : python setup.py build ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.3 python: 2.5.2 Stackless 3.1b3 060516 (release25-maint, Oct 1 2008, 19:33:07) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] platform: cygwin REQUIRED DEPENDENCIES numpy: 1.2.0 freetype2: 9.18.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.12 Traceback (most recent call last): File "setup.py", line 125, in <module> if check_for_tk() or (options['build_tkagg'] is True): File "/cygdrive/c/downloads/matplotlib-0.98.3/setupext.py", line 841, in check_for_tk explanation = add_tk_flags(module) File "/cygdrive/c/downloads/matplotlib-0.98.3/setupext.py", line 1084, in add_tk_flags result = parse_tcl_config(tcl_lib_dir, tk_lib_dir) File "/cygdrive/c/downloads/matplotlib-0.98.3/setupext.py", line 946, in parse_tcl_config tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:] IndexError: list index out of range Administrator@LIFEBOOK /cygdrive/c/downloads/matplotlib-0.98.3 :
I'm looking to create a type of rectangle that draws with a cross from corner to corner, all as a single class type. To do this, I've created a subtype of the rectange class, that records what the current axis is and tries to draw two lines to it in the draw function. When displayting the graph, initially the cross is not shown, but if I zoom/pan the graph, the cross appears. Can anyone see where my problem lies and possibly present a solution? Cheers Ben from matplotlib.lines import Line2D from matplotlib.patches import Rectangle from pylab import figure, show class CrossRect(Rectangle): def __init__(self, ax, *args, **kwargs): Rectangle.__init__(self, *args, **kwargs) self.ax = ax def draw(self, renderer): Rectangle.draw(self, renderer) self._draw_cross() def _draw_cross(self): x=self.get_x() y=self.get_y() forward_slash=Line2D((x, x+self.get_width()), (y, y+self.get_height())) back_slash=Line2D((x, x+self.get_width()), (y+self.get_height(), y)) self.ax.add_line(forward_slash) self.ax.add_line(back_slash) fig = figure() ax = fig.add_subplot(111, autoscale_on=True) left, width, bottom, height = 5, 5, 5, 5 rect = CrossRect(ax, (left, bottom), width, height, fill=False) ax.add_patch(rect) ax.set_xlim(3,12) ax.set_ylim(3,12) show() -- View this message in context: http://www.nabble.com/Creating-custom-rectangle-tp20062265p20062265.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Is there an easy way to find the locations in rectangle1 that are covered by rectangle2? I couldn't find this anywhere. Mathew
On 2008年10月17日 14:14:35 +0000, Kenneth Loafman wrote: > The title says it all. I need the simplest blit animation I can find > and when it works animation_blit.py works quite well, but sometimes it > comes up and runs to completion at almost 400 FPS, other times it comes > up and nothing is drawn at all except an empty plot. > > Ubuntu Hardy > matplotlib 0.98.3 > python 2.5 > python-wxGtk 2.8 > > Any help would be appreciated. It seems to be hanging in gtk.main... $ python /root/matplotlib-0.98.3/examples/animation/animation_blit.py Traceback (most recent call last): File "/root/matplotlib-0.98.3/examples/animation/animation_blit.py", line 57, in <module> p.show() File "/usr/lib/python2.5/site-packages/matplotlib/backends/ backend_gtk.py", line 72, in show gtk.main() KeyboardInterrupt
Eric Firing wrote: > > Some time in the last year I made changes in mpl and in numpy to speed > this up (the colormapping). What versions of mpl and numpy are you using? > > Eric Sorry, I was still using matplotlib 0.91.4 (numpy 1.1.0). I upgraded to 0.98.3 and now the Colormap.__call__ is 5 times faster and no longer a problem. motion_notify_event of backend_gtk.py still takes much more time than it should, but I haven't looked into that, and anyway, my application runs fast enough now. Thanks, João Luís Silva
João Luís Silva wrote: > Hello all, > > I'm creating a python application what does some calculation and > displays the result as two imshow() with respective colorbars as the > calculation progresses. Each array is ~8192x50. Updating the image is > slow, so I only update every 2 seconds or so, but even doing this a > significant part of the program's time is spent on Colormap.__call__ of > colors.py. Another significant time sink is motion_notify_event of > backend_gtk.py. A small example follows to illustrate the problem. Any > ideia on how to circunvent or correct this? Some time in the last year I made changes in mpl and in numpy to speed this up (the colormapping). What versions of mpl and numpy are you using? Eric > > Thank you, > João Luís Silva > > ---------------------------------------- > > import numpy as np > from numpy.random import rand > import pygtk > pygtk.require('2.0') > import gtk > import matplotlib > matplotlib.use('GTKAgg') > from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as > FigureCanvas > from matplotlib.figure import Figure > > def main(): > N = 2000 > > win = gtk.Window() > vbox = gtk.VBox() > fig = Figure() > ax = fig.add_subplot(111) > canvas = FigureCanvas(fig) > im = > ax.imshow(rand(N,N),origin='lower',aspect='auto',extent=(0.0,1.0,0.0,1.0),interpolation='bilinear') > cb = fig.colorbar(im) > vbox.pack_start(canvas) > win.add(vbox) > win.connect("destroy", lambda x: gtk.main_quit()) > win.show_all() > gtk.main() > > if __name__ == '__main__': > #Use hotshot2calltree and kcachegrind to see the stats > import hotshot > prof = hotshot.Profile("hotshot_stats") > prof.runcall(main) > prof.close() > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On Oct 17, 2008, at 11:06 AM, Michael Droettboom wrote: > No, it's not possible now. Just so I'm clear -- you're suggesting > plotting on a wedge from theta_1 to theta_2? Seems doable with a > little work. Yes, exactly. For instance if I wanted to make a polar bar chart showing the distribution of angles separating a collection of lines at their intersections, I would only need to display one quarter of the polar plot, the first quadrant, from 0-90 degrees. If I wanted to display the orientation of, say, a fault on the surface of the Earth, I'd need 180 degrees, but I might want to use the northern half of the circle (orientations ranging from West to East (-90, 90)) or perhaps the eastern half (ranging from (0, 180)). Ideally, the user would be able to specify both thetamin and thetamax, and also an offset describing the location of theta=0, because in some applications it doesn't make sense for zero to be in its traditional polar-coordinates location at the right hand side. E.g. in a geographic context, where the angles being displayed are compass headings, it is traditional to put zero (north) at the top. Putting zero at the top would also make sense if you were plotting data that corresponded to angular deviations to the left and right from some specified path. Some portion of this functionality has been implemented in the "windrose" module, see: http://youarealegend.blogspot.com/2008/09/windrose.html http://www.nabble.com/windrose-OO-td16298025.html but with a mind toward a particular kind of application (windrose diagrams obviously :). But I think allowing users to specify (thetamin, thetamax, offset) would be a very generally applicable improvement. Thanks again, Zane -- Zane Selvans Amateur Earthling za...@id... 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F
I can fill between curves using either: xs, ys = poly_between(x, y1, y2) ax = gca() ax.fill(xs,ys, facecolor='b', alpha=0.5) or xs = concatenate((x,x[::-1])) ys = concatenate((y1,y2[::-1])) p = fill(xs,ys,facecolor='b', alpha=0.5) giving http://www.nabble.com/file/p20038095/good.png But, if I try to do either on a semilogy plot, I get a strange looking combination of reflected-looking polygons. http://www.nabble.com/file/p20038095/bad.png Any ideas? -- View this message in context: http://www.nabble.com/fill-between-curves-on-log-scale--tp20038095p20038095.html Sent from the matplotlib - users mailing list archive at Nabble.com.
No, it's not possible now. Just so I'm clear -- you're suggesting plotting on a wedge from theta_1 to theta_2? Seems doable with a little work. Mike Zane Selvans wrote: > Is there any way to limit the theta extent in a polar axis plot? > > There are a variety of angular contexts in which 360 degrees are not > necessary. To convey the orientation of an undirected line, you need > only 0-180 degrees. The minimum separation between two intersecting > lines only ranges from 0-90 degrees. > > It seems like the ideal way for this to work would be to have a > function analogous to xlim(), maybe called thetalim(thetamin, > thetamax), and then treat the two bounding radial lines as the primary > and secondary y axes. > > Didn't see anything like this in any of the examples or documentation > though. If it's not possible now, I think it would be a wonderful > addition. > > Thanks, > Zane > > -- > Zane Selvans > Amateur Earthling > za...@id... <mailto:za...@id...> > 303/815-6866 > http://zaneselvans.org > PGP Key: 55E0815F > > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Is there any way to limit the theta extent in a polar axis plot? There are a variety of angular contexts in which 360 degrees are not necessary. To convey the orientation of an undirected line, you need only 0-180 degrees. The minimum separation between two intersecting lines only ranges from 0-90 degrees. It seems like the ideal way for this to work would be to have a function analogous to xlim(), maybe called thetalim(thetamin, thetamax), and then treat the two bounding radial lines as the primary and secondary y axes. Didn't see anything like this in any of the examples or documentation though. If it's not possible now, I think it would be a wonderful addition. Thanks, Zane -- Zane Selvans Amateur Earthling za...@id... 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F
>> First, are there plans to eventually embed autogenerated plots in >> the the "examples" section (http://matplotlib.sourceforge.net/examples/ >> ) <http://matplotlib.sourceforge.net/examples/%29> in the same way >> that they're embedded within the user guide? > There are plans to do that, and probably to have a "thumbnail > gallery" of examples as well. The sticking point is that many of > the examples generate multiple figures, and we currently don't have > a way to save those out automatically from the documentation. Just > need to make that work. A thumbnail gallery of all the examples in the User's Guide and Examples is a great idea! Plots are inherently visual, and humans have a huge amount of built-in visual processing power. Searching a even an enormous page of images to find something that looks like what you're trying to create will be much more efficient that trying to come up with the right keyword if you don't know what it is already, or scanning a table of contents. Actually, it reminds me of the "graphical abstracts" that many chemistry journals use - one figure, often showing the molecule(s) that the paper is about, which readers can browse online in lieu of searching or reading long ISO approved chemical names... which often allows almost instant recognition of papers you'll be interested in, or at least a serious pruning of the search space. >> Second, in the sidebar on the main page, in the "Need Help?" >> section, I'm seeing a bunch of weird gunk that's probably not >> supposed to be getting through to the web...: > > That seems to have been fixed in the meantime. Still seeing it? Yep, looks good. Thanks for all your work! -- Zane Selvans Amateur Earthling za...@id... 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F
> "John Hunter" <jd...@gm...> 10/16/08 6:39 PM > We've been working behind the scenes on a new documentation system for > matplotlib, which integrates the web site, API documentation and PDF > As an example we can include plots in our API documentation, see > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.acorr Awesome!! Of course you chose to advertise the docstring with a typo ;-) In the acorr docstring the sentence "If normed = True, normalize the data *but* the autocorrelation at 0-th lag.", should read "If normed = True, normalize the data *by* the autocorrelation at 0-th lag.". Yours in sheer impressedness, Scott Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/
Hello all, I'm creating a python application what does some calculation and displays the result as two imshow() with respective colorbars as the calculation progresses. Each array is ~8192x50. Updating the image is slow, so I only update every 2 seconds or so, but even doing this a significant part of the program's time is spent on Colormap.__call__ of colors.py. Another significant time sink is motion_notify_event of backend_gtk.py. A small example follows to illustrate the problem. Any ideia on how to circunvent or correct this? Thank you, João Luís Silva ---------------------------------------- import numpy as np from numpy.random import rand import pygtk pygtk.require('2.0') import gtk import matplotlib matplotlib.use('GTKAgg') from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas from matplotlib.figure import Figure def main(): N = 2000 win = gtk.Window() vbox = gtk.VBox() fig = Figure() ax = fig.add_subplot(111) canvas = FigureCanvas(fig) im = ax.imshow(rand(N,N),origin='lower',aspect='auto',extent=(0.0,1.0,0.0,1.0),interpolation='bilinear') cb = fig.colorbar(im) vbox.pack_start(canvas) win.add(vbox) win.connect("destroy", lambda x: gtk.main_quit()) win.show_all() gtk.main() if __name__ == '__main__': #Use hotshot2calltree and kcachegrind to see the stats import hotshot prof = hotshot.Profile("hotshot_stats") prof.runcall(main) prof.close()
I'm not a regular Windows user, so I'm probably not of much help, but... It's trying to write a default .matplotlibrc file to C:\ Is that directory writable, by the user that is running matplotlib? Mike David Springate wrote: > > Hi, > > I am a fairly new Python user and am trying to set up matplot lib to > work with scipy as an alternative to matlab. I installed matplotlib > on my home pc with no problems but I followed the same protocol on my > work pc and got the following error when I tried to call in > > "From pylab import *" : > > Traceback (most recent call last): > File "<pyshell#0>", line 1, in <module> > from pylab import * > File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 677, in > <module> > rcParams = rc_params() > File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 598, in > rc_params > fname = matplotlib_fname() > File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 548, in > matplotlib_fname > fname = os.path.join(get_configdir(), 'matplotlibrc') > File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 242, in > wrapper > ret = func(*args, **kwargs) > File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 438, in > _get_configdir > raise RuntimeError("Failed to create %s/.matplotlib; consider setting > MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h) > RuntimeError: Failed to create C:\/.matplotlib; consider setting > MPLCONFIGDIR to a writable directory for matplotlib configuration data > > ...I checked and as far as I can tell, none of the python directories > are read-only. I also > followed the instructions on the thread 'runtime error' which dealt with I > think the same problems, but after patching the cutils.py (line 79) > and the > __init__ (line 435) files, I still have the same problem. > > > Any advice would be apreciated. My home pc (where it works fine) is > Vista, while work is XP pro. Python > 2.5.2, scipy, numpy and matplotlib all installed from binaries. I > also tried the enthought binary installation with the same result. > > Thanks, > > Dave > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > 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
The title says it all. I need the simplest blit animation I can find and when it works animation_blit.py works quite well, but sometimes it comes up and runs to completion at almost 400 FPS, other times it comes up and nothing is drawn at all except an empty plot. Ubuntu Hardy matplotlib 0.98.3 python 2.5 python-wxGtk 2.8 Any help would be appreciated. ...Thanks, ...Ken
This has now been fixed in SVN. index.html is the only page that includes hand-written HTML. If you see any errors of this nature on other pages, please file bugs with Sphinx and/or docutils. Cheers, Mike Xavier Gnata wrote: > Looks great but there are too many errors: > http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0 > > I'm not a geek and I do not care about w3c small warnings but it would > be so nice to have a xhtml compliant website (as close as possible) > > From an "artistic" point of view, I would put more emphasis on the > screenshot (pylab purpose is to produce *very* nice images...) > > xavier > > > >> We've been working behind the scenes on a new documentation system for >> matplotlib, which integrates the web site, API documentation and PDF >> guide into a single source of sphinx/rest documents which are easier >> to maintain and extend, hopefully leading to better and more >> up-to-date docs. >> >> We went live with the new site yesterday: >> >> http://matplotlib.sf.net >> >> so check it out and let us know if something is broken or missing. We >> don't have everything that was on the old site (some stuff from the >> FAQ, "what's new" and "user's guide" has not been ported over) but we >> do have should be current, searchable, indexed and cross-linked. >> >> Thanks to Darren Dale who spear-headed the effort to use the sphinx >> documentation, and to the developers who have contributed, especially >> Michael Droettboom, who has developed several nice sphinx extensions >> to do inheritance diagrams, syntax highlighting of ipython sessions, >> and inline plotting. As an example we can include plots in our API >> documentation, see >> >> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.acorr >> >> We embed these plots with a "plot" directive that generates the >> figures from external code at documentation build time, which >> guarantees that the example code you see in the docs generate the >> figures you see in the docs. For example, in the acorr docstring, all >> we have to do is:: >> >> **Example:** >> >> .. plot:: ../mpl_examples/pylab_examples/xcorr_demo.py >> >> and the figure and source code links automagically appear in the docs. >> >> Because some of these extensions are generally useful, Michael, >> Fernando and I have been working on a "sphinx_template" which contains >> the template of a sphinx documentation project with these extensions >> in place, so people who want to get started using sphinx (the official >> documentation system for python, numpy, ipython and matplotlib) can do >> so more easily. Right now it is available in svn >> >> > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/examples/sphinx_template2 >> >> and see the README in the checkout directory. Michael also did a talk >> on matplotlib's use of sphinx and the sphinx template at the last >> scipy conference. We're still waiting for the videos of the talks to >> be posted (can someone poke someone?) but you can see the talk PDF >> from the proceedings here: >> >> http://conference.scipy.org/proceedings/SciPy2008/paper_6/ >> >> JDH >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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
Zane Selvans wrote: > Wow! The new site looks beautiful. Thank you! > > The apparent lack of searchable, online, well organized, > cross-referenced documentation has been my main frustration with > Matplotlib. I'm very glad it's being worked on. > > A couple of quick things: > > First, are there plans to eventually embed autogenerated plots in the > the "examples" section (http://matplotlib.sourceforge.net/examples/) > <http://matplotlib.sourceforge.net/examples/%29> in the same way that > they're embedded within the user guide? There are plans to do that, and probably to have a "thumbnail gallery" of examples as well. The sticking point is that many of the examples generate multiple figures, and we currently don't have a way to save those out automatically from the documentation. Just need to make that work. > > Second, in the sidebar on the main page, in the "Need Help?" section, > I'm seeing a bunch of weird gunk that's probably not supposed to be > getting through to the web...: > > <<<<<<< .mine <<<<<<< .mine > > Check the docs, the faq, and join the matplotlib mailing lists. There > is a also community wiki cookbook > ======= > > Check the user guide, the > > Check the user guide, the >>>>>> .r6222 href="faq/index.html">faq, the > api docs, archives, and join the matplotlib mailing lists >>>>>>> .r6221 > > You can file bugs, patches and feature requests on the sourceforge > tracker, but it is a good idea to ping us on the mailing list too. That seems to have been fixed in the meantime. Still seeing it? Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi, I am a fairly new Python user and am trying to set up matplot lib to work with scipy as an alternative to matlab. I installed matplotlib on my home pc with no problems but I followed the same protocol on my work pc and got the following error when I tried to call in "From pylab import *" : Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> from pylab import * File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module> from matplotlib.pylab import * File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 677, in <module> rcParams = rc_params() File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 598, in rc_params fname = matplotlib_fname() File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 548, in matplotlib_fname fname = os.path.join(get_configdir(), 'matplotlibrc') File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 242, in wrapper ret = func(*args, **kwargs) File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 438, in _get_configdir raise RuntimeError("Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h) RuntimeError: Failed to create C:\/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data ...I checked and as far as I can tell, none of the python directories are read-only. I also followed the instructions on the thread 'runtime error' which dealt with I think the same problems, but after patching the cutils.py (line 79) and the __init__ (line 435) files, I still have the same problem. Any advice would be apreciated. My home pc (where it works fine) is Vista, while work is XP pro. Python 2.5.2, scipy, numpy and matplotlib all installed from binaries. I also tried the enthought binary installation with the same result. Thanks, Dave
Wow! The new site looks beautiful. Thank you! The apparent lack of searchable, online, well organized, cross- referenced documentation has been my main frustration with Matplotlib. I'm very glad it's being worked on. A couple of quick things: First, are there plans to eventually embed autogenerated plots in the the "examples" section (http://matplotlib.sourceforge.net/examples/) in the same way that they're embedded within the user guide? Second, in the sidebar on the main page, in the "Need Help?" section, I'm seeing a bunch of weird gunk that's probably not supposed to be getting through to the web...: <<<<<<< .mine <<<<<<< .mine Check the docs, the faq, and join the matplotlib mailing lists. There is a also community wiki cookbook ======= Check the user guide, the Check the user guide, the >>>>>> .r6222 href="faq/index.html">faq, the api docs, archives, and join the matplotlib mailing lists >>>>>>> .r6221 You can file bugs, patches and feature requests on the sourceforge tracker, but it is a good idea to ping us on the mailing list too. -- Zane Selvans Amateur Earthling za...@id... 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F
John Hunter wrote: > We've been working behind the scenes on a new documentation system for > matplotlib, which integrates the web site, API documentation and PDF > guide into a single source of sphinx/rest documents which are easier > to maintain and extend, hopefully leading to better and more > up-to-date docs. It all does look rather good and shiny :) However, on the page: http://matplotlib.sourceforge.net/users/screenshots.html the following link does not work: http://matplotlib.sourceforge.net/users/examples/pylab_examples/bar_stacked.py Also, the screenshots don't tie up with those listed in the sidebar on the main page - is there a good reason for this? :) Thanks, -- Neil
Looks great but there are too many errors: http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0 I'm not a geek and I do not care about w3c small warnings but it would be so nice to have a xhtml compliant website (as close as possible) From an "artistic" point of view, I would put more emphasis on the screenshot (pylab purpose is to produce *very* nice images...) xavier > We've been working behind the scenes on a new documentation system for > matplotlib, which integrates the web site, API documentation and PDF > guide into a single source of sphinx/rest documents which are easier > to maintain and extend, hopefully leading to better and more > up-to-date docs. > > We went live with the new site yesterday: > > http://matplotlib.sf.net > > so check it out and let us know if something is broken or missing. We > don't have everything that was on the old site (some stuff from the > FAQ, "what's new" and "user's guide" has not been ported over) but we > do have should be current, searchable, indexed and cross-linked. > > Thanks to Darren Dale who spear-headed the effort to use the sphinx > documentation, and to the developers who have contributed, especially > Michael Droettboom, who has developed several nice sphinx extensions > to do inheritance diagrams, syntax highlighting of ipython sessions, > and inline plotting. As an example we can include plots in our API > documentation, see > > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.acorr > > We embed these plots with a "plot" directive that generates the > figures from external code at documentation build time, which > guarantees that the example code you see in the docs generate the > figures you see in the docs. For example, in the acorr docstring, all > we have to do is:: > > **Example:** > > .. plot:: ../mpl_examples/pylab_examples/xcorr_demo.py > > and the figure and source code links automagically appear in the docs. > > Because some of these extensions are generally useful, Michael, > Fernando and I have been working on a "sphinx_template" which contains > the template of a sphinx documentation project with these extensions > in place, so people who want to get started using sphinx (the official > documentation system for python, numpy, ipython and matplotlib) can do > so more easily. Right now it is available in svn > > > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/examples/sphinx_template2 > > and see the README in the checkout directory. Michael also did a talk > on matplotlib's use of sphinx and the sphinx template at the last > scipy conference. We're still waiting for the videos of the talks to > be posted (can someone poke someone?) but you can see the talk PDF > from the proceedings here: > > http://conference.scipy.org/proceedings/SciPy2008/paper_6/ > > JDH > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >