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
(7) |
2
(5) |
3
(18) |
4
(9) |
5
(13) |
6
(14) |
7
(8) |
8
(7) |
9
(6) |
10
(6) |
11
(24) |
12
(14) |
13
(9) |
14
(21) |
15
(6) |
16
(1) |
17
(20) |
18
(42) |
19
(16) |
20
(21) |
21
(41) |
22
(13) |
23
(11) |
24
(15) |
25
(32) |
26
(27) |
27
(29) |
28
(10) |
29
(3) |
30
(1) |
31
(5) |
|
|
|
|
|
Hi all, I'm writing a little MPL embedded in wxPython app, and just ran into this: Traceback (most recent call last): ... ... "..../matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/backends/backend_agg.py", line 397, in print_png self.get_renderer()._renderer.write_png(filename, self.figure.dpi.get()) TypeError: cannot return std::string from Unicode object As soon as I saw it, I knew what happened: I'm running the unicode version of wxPython, so the filename I got back from a SaveFile Dialog is in unicode. Now, it's easy enough for me to turn that into a string for now, but as more and more file systems are implemented in unicode, it might be nice if we could use unicode file names with MPL. Are there any plans along these lines? Or are we just going to have to wait for py3k? -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Have you tryied : ipython -pylab ? It launch an ipython shell that support mathplotlib gui loop. -----Message d'origine----- De : wxpython-users-bounces+laurent.dufrechou=fr...@li... [mailto:wxpython-users-bounces+laurent.dufrechou=fr...@li... ] De la part de Wolfgang Kerzendorf Envoyé : mercredi 26 mars 2008 08:31 À : mat...@li...; wxP...@li... Objet : [wxpython-users] Controlling the wxpython matplotlib-frame Hello all, I have trouble with one of my scripts that uses matplotlib when using python or ipython. The first time it opens, it does not hand the control back o the shell and can be used to work on the matplotlib figure interactively (I use an event handler and picker objects to change my plots) so it works really well. After I close the window the control is given back to the shell. This is how I want it to work, however at the second time the matplotlib plot opens the shell does not stop anymore, the script continues. When I used GTKAgg on my old linux box I had the same issue and bound a key to pylab.get_current_figure_manager().destroy(), which looked like a hack to me but worked. This does not work anymore with wxPython, because the next time I open a plot I get an exception: PyDeadObjectError: The C++ part of the FigureFrameWxAgg object has been deleted, attribute access no longer allowed. I also think destroying the figure_manager is not the right way to do that. Whats a goog solution for this? Thanks in advance Wolfgang P.S.: I know I posted a similar thing yesterday, but I thought rephrasing the question might help with finding the solution _______________________________________________ wxpython-users mailing list wxp...@li... http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Matthias Michler wrote: >> My x-axis is time, and as new points are plotted, even though I'm >> following the above recipe pretty closely, the x-tick spacing isn't >> getting sorted out, so I end up with just a jumble as the tick labels >> for the x-axis. Do you know why this might be? > > I'm not sure I understand correctly, but if the number of xticks increases > dramatically (nobody could see the individual ticks), Indeed, it looks like the Tick spacing is staying as it was when the first point was plotted, so when hundreds more points are plotted, I just get a jumble of labels on the x-axis. > the above script leads > to a different behaviour on my system. What is that behaviour and what version of matplotlib are you using? >> Shame I get that horrible exception when I do close the plot window, >> wish I knew how to make it stop :-S > > I don't know which exception you refer to, but sometimes if gives problems if > the interactive mode wasn't switched off ("ioff()") before the scripts ends > or "show()" is called. If I run the attached script, and hit Ctrl-C in the DOS box running it, I get: C:\>python mpltest.py Traceback (most recent call last): File "mpltest.py", line 3, in <module> show() File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_tkagg.py", li e 76, in show Tk.mainloop() File "C:\Python25\lib\lib-tk\Tkinter.py", line 328, in mainloop _default_root.tk.mainloop(n) KeyboardInterrupt Fatal Python error: PyEval_RestoreThread: NULL tstate This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I've had a similar error when I hit the red cross in the corner of the window with other scripts, although not this one :-S cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
For the sake of the list, I'm linking the response to my question on the Inkscape mailing list -- this is certainly an Inkscape bug, that their copy-and-paste functionality does not handle use/defs correctly. However, as the workaround in mpl was easy enough, we don't have to wait for Inkscape to fix what sounds like a difficult problem. http://sourceforge.net/mailarchive/forum.php?thread_name=3c78ff030803260851l36e71d12n173fb77d4ddc4579%40mail.gmail.com&forum_name=inkscape-devel Cheers, Mike Kaushik Ghose wrote: > Hi Mike, > > I replaced the current file with your modified one, and it works fine > - I pasted three figures together and had not problems. (I am on > Windows XP, Python 2.5) > > Thanks again for maintaining and enhancing matplotlib! > -Kaushik > > Michael Droettboom wrote: >> I didn't write the first pass of SVG support, that was done before I >> got involved -- I'm not sure who to credit, but he or she deserves >> most of it. >> >> I did add the feature that's causing grief here -- the embedding of >> character outlines directly in the SVG file. >> >> I've committed a change in SVN (both the trunk and the branch) that >> should resolve your problem. I've written the inkscape mailing list >> about the "correct" solution, but I figure we need a workaround in >> mpl regardless. >> >> If you're not tracking SVN, you can replace your copy of >> backend_svg.py with this one, and it should *probably* work: >> >> http://matplotlib.svn.sourceforge.net/viewvc/*checkout*/matplotlib/branches/v0_91_maint/lib/matplotlib/backends/backend_svg.py?revision=5023&pathrev=5023 >> >> >> Cheers, >> Mike >> >> Kaushik Ghose wrote: >>> Hi Mike, >>> >>> Ah, such prompt, friendly and knowledgeable help! >>> >>> You're the guy implementing svg support in matplotlib, right? Thanks >>> so much for implementing this!!! >>> If I can do anything to assist please tell me. >>> >>> Thanks again, >>> -Kaushik >>> >>> Michael Droettboom wrote: >>>> When matplotlib outputs an SVG, each unique character is assigned a >>>> numeric id (these are just assigned in order), and inserted as a >>>> "def", and then "use"d (referenced) wherever they are used. >>>> >>>> When you paste on SVG into another, those names clash, and Inkscape >>>> is pulling in the wrong characters when it goes to draw. >>>> >>>> Now, my gut feels that this is actually a bug in Inkscape -- >>>> pasting of referenced objects from one file into another should >>>> reassign new ids. However, I'm not an SVG expert, so I could be >>>> wrong, but I think I will take this question over to the Inkscape >>>> mailing list anyway. >>>> >>>> That said, there are probably some workarounds that matplotlib >>>> could make (using a hash of the character's content as the id, for >>>> instance). I'll look into that and reply when progress has been made. >>>> >>>> Mike >>>> >>>> Kaushik Ghose wrote: >>>>> Hi Everyone, >>>>> >>>>> I have a peculiar problem, and I wonder if anyone can assist me. >>>>> >>>>> I have two figures generated from matplotlib and saved as svgs. >>>>> They both print fine, and they load in Inkscape just fine. >>>>> >>>>> However, when I copy one figure and paste it into the other, the >>>>> pasted figure's labels and text become garbled. >>>>> >>>>> Screenshots on this page >>>>> http://assorted-experience.blogspot.com/2008/03/inkscape-matplotlibs-svg-one-strange.html >>>>> >>>>> >>>>> >>>>> Any suggestions would be most welcome >>>>> Thanks >>>>> -Kaushik >>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> Check out the new SourceForge.net Marketplace. >>>>> It's the best place to buy or sell services for >>>>> just about anything Open Source. >>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>> >>>>> _______________________________________________ >>>>> 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
Sorry, I meant PEBKAC. On 3/26/08, Ryan Krauss <rya...@gm...> wrote: > Thanks for all the quick responses. Yes, it seems that WXAgg and > usetex work fine together. So the problem was definitely on our end. > KEBKAC. > > Thanks again, > > > Ryan > > > On 3/26/08, Jou...@xt... <Jou...@xt...> wrote: > > "Ryan Krauss" <rya...@gm...> writes: > > > > > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > > > draw_if_interactive() > > > > > > This means you are using the Wx backend, which doesn't implement usetex. > > Try WxAgg instead. > > > > > > -- > > Jouni K. Seppänen > > http://www.iki.fi/jks > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > >
Thanks for all the quick responses. Yes, it seems that WXAgg and usetex work fine together. So the problem was definitely on our end. KEBKAC. Thanks again, Ryan On 3/26/08, Jou...@xt... <Jou...@xt...> wrote: > "Ryan Krauss" <rya...@gm...> writes: > > > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > > draw_if_interactive() > > > This means you are using the Wx backend, which doesn't implement usetex. > Try WxAgg instead. > > > -- > Jouni K. Seppänen > http://www.iki.fi/jks > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
"Ryan Krauss" <rya...@gm...> writes: > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > draw_if_interactive() This means you are using the Wx backend, which doesn't implement usetex. Try WxAgg instead. -- Jouni K. Seppänen http://www.iki.fi/jks
On Wednesday 26 March 2008 11:20:46 am Ryan Krauss wrote: > I think I have correctly installed from source. I checked the > dependencies for USETEX and have the right versions for dvipng, gs, > latex, and pdftops. When trying to plot with text.usetex=True I get [...] > Does this mean we really didn't successfully build from source? Or is > there some other problem? I think it means you need to use the wxagg backend rather than wx. Is that a possibility? Darren
It looks like you're trying to use the Wx backend, where usetex is not supported. See here for a matrix of which features are supported with each backend: http://matplotlib.sourceforge.net/backends.html Set the backend setting in your matplotlibrc file or call "matplotlib.use" at the top of your script. Cheers, Mike Ryan Krauss wrote: > I think I have correctly installed from source. I checked the > dependencies for USETEX and have the right versions for dvipng, gs, > latex, and pdftops. When trying to plot with text.usetex=True I get > > <type 'exceptions.NotImplementedError'> Traceback (most recent call last) > > /home/william/svn/matplotlib/<ipython console> in <module>() > > /usr/lib/python2.5/site-packages/matplotlib/pyplot.py in plot(*args, **kwargs) > 1827 try: > 1828 ret = gca().plot(*args, **kwargs) > -> 1829 draw_if_interactive() > 1830 except: > 1831 hold(b) > > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > draw_if_interactive() > 1164 figManager = Gcf.get_active() > 1165 if figManager is not None: > -> 1166 figManager.canvas.draw() > 1167 > 1168 > > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > draw(self, repaint) > 886 DEBUG_MSG("draw()", 1, self) > 887 self.renderer = RendererWx(self.bitmap, self.figure.dpi) > --> 888 self.figure.draw(self.renderer) > 889 if repaint: > 890 self.gui_repaint() > > /usr/lib/python2.5/site-packages/matplotlib/figure.py in draw(self, renderer) > 774 > 775 # render the axes > --> 776 for a in self.axes: a.draw(renderer) > 777 > 778 # render the figure text > > /usr/lib/python2.5/site-packages/matplotlib/axes.py in draw(self, > renderer, inframe) > 1399 > 1400 for zorder, i, a in dsu: > -> 1401 a.draw(renderer) > 1402 > 1403 renderer.close_group('axes') > > /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, > renderer, *args, **kwargs) > 678 tick.set_label1(label) > 679 tick.set_label2(label) > --> 680 tick.draw(renderer) > 681 if tick.label1On and tick.label1.get_visible(): > 682 extent = tick.label1.get_window_extent(renderer) > > /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, renderer) > 177 > 178 if self.label1On: > --> 179 self.label1.draw(renderer) > 180 if self.label2On: > 181 self.label2.draw(renderer) > > /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) > 759 def draw(self, renderer): > 760 self.update_coords(renderer) > --> 761 Text.draw(self, renderer) > 762 if self.get_dashlength() > 0.0: > 763 self.dashline.draw(renderer) > > /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) > 307 > 308 renderer.draw_tex(gc, x, y, line, > --> 309 self._fontproperties, angle) > 310 return > 311 > > /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py in > draw_tex(self, gc, x, y, s, prop, angle, ismath) > 264 > 265 def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!'): > --> 266 raise NotImplementedError > 267 > 268 def draw_text(self, gc, x, y, s, prop, angle, ismath=False): > > <type 'exceptions.NotImplementedError'>: > > In [4]: --------------------------------------------------------------------------- > <type 'exceptions.NotImplementedError'> Traceback (most recent call last) > > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > _onPaint(self, evt) > 1018 self.realize() > 1019 # Render to the bitmap > -> 1020 self.draw(repaint=False) > 1021 # Update the display using a PaintDC > 1022 self.gui_repaint(drawDC=wx.PaintDC(self)) > > /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in > draw(self, repaint) > 886 DEBUG_MSG("draw()", 1, self) > 887 self.renderer = RendererWx(self.bitmap, self.figure.dpi) > --> 888 self.figure.draw(self.renderer) > 889 if repaint: > 890 self.gui_repaint() > > /usr/lib/python2.5/site-packages/matplotlib/figure.py in draw(self, renderer) > 774 > 775 # render the axes > --> 776 for a in self.axes: a.draw(renderer) > 777 > 778 # render the figure text > > /usr/lib/python2.5/site-packages/matplotlib/axes.py in draw(self, > renderer, inframe) > 1399 > 1400 for zorder, i, a in dsu: > -> 1401 a.draw(renderer) > 1402 > 1403 renderer.close_group('axes') > > /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, > renderer, *args, **kwargs) > 678 tick.set_label1(label) > 679 tick.set_label2(label) > --> 680 tick.draw(renderer) > 681 if tick.label1On and tick.label1.get_visible(): > 682 extent = tick.label1.get_window_extent(renderer) > > /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, renderer) > 177 > 178 if self.label1On: > --> 179 self.label1.draw(renderer) > 180 if self.label2On: > 181 self.label2.draw(renderer) > > /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) > 759 def draw(self, renderer): > 760 self.update_coords(renderer) > --> 761 Text.draw(self, renderer) > 762 if self.get_dashlength() > 0.0: > 763 self.dashline.draw(renderer) > > /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) > 307 > 308 renderer.draw_tex(gc, x, y, line, > --> 309 self._fontproperties, angle) > 310 return > 311 > > /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py in > draw_tex(self, gc, x, y, s, prop, angle, ismath) > 264 > 265 def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!'): > --> 266 raise NotImplementedError > 267 > 268 def draw_text(self, gc, x, y, s, prop, angle, ismath=False): > > <type 'exceptions.NotImplementedError'>: > > > We are running: > In [4]: matplotlib.__version__ > Out[4]: '0.98pre' > > > with > > In [5]: rcParams['text.usetex']=False > > In [6]: plot(t,y) > Out[6]: [<matplotlib.lines.Line2D object at 0x9724c2c>] > > Does this mean we really didn't successfully build from source? Or is > there some other problem? > > Thanks, > > Ryan > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > 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
Thanks Darren. I think we got this right, but I started a new thread with a usetex problem after we installed. I don't know if this is really a build problem or some other bug. Maybe it should be the same thread. Ryan On 3/26/08, Darren Dale <dar...@co...> wrote: > On Wednesday 26 March 2008 10:15:13 am Ryan Krauss wrote: > > I need to help a friend install from source on Ubuntu Gutsy. What is > > the easiest way to determine all dependencies and make sure he has all > > the right dev packages? I suspect we want to install the WXAgg, > > GTKAgg, TkAGG, and postscript backends. > > > You could just try running "python setup.py build". That will test for all the > required and optional libraries and generate a report at the beginning of the > process. Be mindful of missing headers or devel libraries. > > > Darren >
I think I have correctly installed from source. I checked the dependencies for USETEX and have the right versions for dvipng, gs, latex, and pdftops. When trying to plot with text.usetex=True I get <type 'exceptions.NotImplementedError'> Traceback (most recent call last) /home/william/svn/matplotlib/<ipython console> in <module>() /usr/lib/python2.5/site-packages/matplotlib/pyplot.py in plot(*args, **kwargs) 1827 try: 1828 ret = gca().plot(*args, **kwargs) -> 1829 draw_if_interactive() 1830 except: 1831 hold(b) /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in draw_if_interactive() 1164 figManager = Gcf.get_active() 1165 if figManager is not None: -> 1166 figManager.canvas.draw() 1167 1168 /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in draw(self, repaint) 886 DEBUG_MSG("draw()", 1, self) 887 self.renderer = RendererWx(self.bitmap, self.figure.dpi) --> 888 self.figure.draw(self.renderer) 889 if repaint: 890 self.gui_repaint() /usr/lib/python2.5/site-packages/matplotlib/figure.py in draw(self, renderer) 774 775 # render the axes --> 776 for a in self.axes: a.draw(renderer) 777 778 # render the figure text /usr/lib/python2.5/site-packages/matplotlib/axes.py in draw(self, renderer, inframe) 1399 1400 for zorder, i, a in dsu: -> 1401 a.draw(renderer) 1402 1403 renderer.close_group('axes') /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, renderer, *args, **kwargs) 678 tick.set_label1(label) 679 tick.set_label2(label) --> 680 tick.draw(renderer) 681 if tick.label1On and tick.label1.get_visible(): 682 extent = tick.label1.get_window_extent(renderer) /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, renderer) 177 178 if self.label1On: --> 179 self.label1.draw(renderer) 180 if self.label2On: 181 self.label2.draw(renderer) /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) 759 def draw(self, renderer): 760 self.update_coords(renderer) --> 761 Text.draw(self, renderer) 762 if self.get_dashlength() > 0.0: 763 self.dashline.draw(renderer) /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) 307 308 renderer.draw_tex(gc, x, y, line, --> 309 self._fontproperties, angle) 310 return 311 /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py in draw_tex(self, gc, x, y, s, prop, angle, ismath) 264 265 def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!'): --> 266 raise NotImplementedError 267 268 def draw_text(self, gc, x, y, s, prop, angle, ismath=False): <type 'exceptions.NotImplementedError'>: In [4]: --------------------------------------------------------------------------- <type 'exceptions.NotImplementedError'> Traceback (most recent call last) /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt) 1018 self.realize() 1019 # Render to the bitmap -> 1020 self.draw(repaint=False) 1021 # Update the display using a PaintDC 1022 self.gui_repaint(drawDC=wx.PaintDC(self)) /usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py in draw(self, repaint) 886 DEBUG_MSG("draw()", 1, self) 887 self.renderer = RendererWx(self.bitmap, self.figure.dpi) --> 888 self.figure.draw(self.renderer) 889 if repaint: 890 self.gui_repaint() /usr/lib/python2.5/site-packages/matplotlib/figure.py in draw(self, renderer) 774 775 # render the axes --> 776 for a in self.axes: a.draw(renderer) 777 778 # render the figure text /usr/lib/python2.5/site-packages/matplotlib/axes.py in draw(self, renderer, inframe) 1399 1400 for zorder, i, a in dsu: -> 1401 a.draw(renderer) 1402 1403 renderer.close_group('axes') /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, renderer, *args, **kwargs) 678 tick.set_label1(label) 679 tick.set_label2(label) --> 680 tick.draw(renderer) 681 if tick.label1On and tick.label1.get_visible(): 682 extent = tick.label1.get_window_extent(renderer) /usr/lib/python2.5/site-packages/matplotlib/axis.py in draw(self, renderer) 177 178 if self.label1On: --> 179 self.label1.draw(renderer) 180 if self.label2On: 181 self.label2.draw(renderer) /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) 759 def draw(self, renderer): 760 self.update_coords(renderer) --> 761 Text.draw(self, renderer) 762 if self.get_dashlength() > 0.0: 763 self.dashline.draw(renderer) /usr/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) 307 308 renderer.draw_tex(gc, x, y, line, --> 309 self._fontproperties, angle) 310 return 311 /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py in draw_tex(self, gc, x, y, s, prop, angle, ismath) 264 265 def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!'): --> 266 raise NotImplementedError 267 268 def draw_text(self, gc, x, y, s, prop, angle, ismath=False): <type 'exceptions.NotImplementedError'>: We are running: In [4]: matplotlib.__version__ Out[4]: '0.98pre' with In [5]: rcParams['text.usetex']=False In [6]: plot(t,y) Out[6]: [<matplotlib.lines.Line2D object at 0x9724c2c>] Does this mean we really didn't successfully build from source? Or is there some other problem? Thanks, Ryan
On Wednesday 26 March 2008 10:15:13 am Ryan Krauss wrote: > I need to help a friend install from source on Ubuntu Gutsy. What is > the easiest way to determine all dependencies and make sure he has all > the right dev packages? I suspect we want to install the WXAgg, > GTKAgg, TkAGG, and postscript backends. You could just try running "python setup.py build". That will test for all the required and optional libraries and generate a report at the beginning of the process. Be mindful of missing headers or devel libraries. Darren
Peter I. Hansen wrote: > On Tue, Mar 25, 2008 at 11:33 PM, Kaushik Ghose <kau...@gm...> wrote: > >> Hi Everyone, >> >> I have a peculiar problem, and I wonder if anyone can assist me. >> >> I have two figures generated from matplotlib and saved as svgs. They >> both print fine, and they load in Inkscape just fine. >> >> However, when I copy one figure and paste it into the other, the pasted >> figure's labels and text become garbled. >> > > A trick that works for me is to produce eps files with matplotlib, > import them in scribus, and then export them to svg. Then they seem to > be nicely compatible with inkscape. > I wonder if you could skip a step and just use the Cairo backend to output SVG? Does that not work? It should be quite similar. Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
I didn't write the first pass of SVG support, that was done before I got involved -- I'm not sure who to credit, but he or she deserves most of it. I did add the feature that's causing grief here -- the embedding of character outlines directly in the SVG file. I've committed a change in SVN (both the trunk and the branch) that should resolve your problem. I've written the inkscape mailing list about the "correct" solution, but I figure we need a workaround in mpl regardless. If you're not tracking SVN, you can replace your copy of backend_svg.py with this one, and it should *probably* work: http://matplotlib.svn.sourceforge.net/viewvc/*checkout*/matplotlib/branches/v0_91_maint/lib/matplotlib/backends/backend_svg.py?revision=5023&pathrev=5023 Cheers, Mike Kaushik Ghose wrote: > Hi Mike, > > Ah, such prompt, friendly and knowledgeable help! > > You're the guy implementing svg support in matplotlib, right? Thanks > so much for implementing this!!! > If I can do anything to assist please tell me. > > Thanks again, > -Kaushik > > Michael Droettboom wrote: >> When matplotlib outputs an SVG, each unique character is assigned a >> numeric id (these are just assigned in order), and inserted as a >> "def", and then "use"d (referenced) wherever they are used. >> >> When you paste on SVG into another, those names clash, and Inkscape >> is pulling in the wrong characters when it goes to draw. >> >> Now, my gut feels that this is actually a bug in Inkscape -- pasting >> of referenced objects from one file into another should reassign new >> ids. However, I'm not an SVG expert, so I could be wrong, but I >> think I will take this question over to the Inkscape mailing list >> anyway. >> >> That said, there are probably some workarounds that matplotlib could >> make (using a hash of the character's content as the id, for >> instance). I'll look into that and reply when progress has been made. >> >> Mike >> >> Kaushik Ghose wrote: >>> Hi Everyone, >>> >>> I have a peculiar problem, and I wonder if anyone can assist me. >>> >>> I have two figures generated from matplotlib and saved as svgs. They >>> both print fine, and they load in Inkscape just fine. >>> >>> However, when I copy one figure and paste it into the other, the >>> pasted figure's labels and text become garbled. >>> >>> Screenshots on this page >>> http://assorted-experience.blogspot.com/2008/03/inkscape-matplotlibs-svg-one-strange.html >>> >>> >>> >>> Any suggestions would be most welcome >>> Thanks >>> -Kaushik >>> >>> ------------------------------------------------------------------------- >>> >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> >>> _______________________________________________ >>> 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
On Tue, Mar 25, 2008 at 11:33 PM, Kaushik Ghose <kau...@gm...> wrote: > Hi Everyone, > > I have a peculiar problem, and I wonder if anyone can assist me. > > I have two figures generated from matplotlib and saved as svgs. They > both print fine, and they load in Inkscape just fine. > > However, when I copy one figure and paste it into the other, the pasted > figure's labels and text become garbled. A trick that works for me is to produce eps files with matplotlib, import them in scribus, and then export them to svg. Then they seem to be nicely compatible with inkscape. -Peter
I need to help a friend install from source on Ubuntu Gutsy. What is the easiest way to determine all dependencies and make sure he has all the right dev packages? I suspect we want to install the WXAgg, GTKAgg, TkAGG, and postscript backends. Thanks, Ryan
When matplotlib outputs an SVG, each unique character is assigned a numeric id (these are just assigned in order), and inserted as a "def", and then "use"d (referenced) wherever they are used. When you paste on SVG into another, those names clash, and Inkscape is pulling in the wrong characters when it goes to draw. Now, my gut feels that this is actually a bug in Inkscape -- pasting of referenced objects from one file into another should reassign new ids. However, I'm not an SVG expert, so I could be wrong, but I think I will take this question over to the Inkscape mailing list anyway. That said, there are probably some workarounds that matplotlib could make (using a hash of the character's content as the id, for instance). I'll look into that and reply when progress has been made. Mike Kaushik Ghose wrote: > Hi Everyone, > > I have a peculiar problem, and I wonder if anyone can assist me. > > I have two figures generated from matplotlib and saved as svgs. They > both print fine, and they load in Inkscape just fine. > > However, when I copy one figure and paste it into the other, the pasted > figure's labels and text become garbled. > > Screenshots on this page > http://assorted-experience.blogspot.com/2008/03/inkscape-matplotlibs-svg-one-strange.html > > > Any suggestions would be most welcome > Thanks > -Kaushik > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > 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
On Wednesday 26 March 2008 07:16:37 Troels Kofoed Jacobsen wrote: > Hi. > > Does anyone know how to save and load an arbitrary object (e.g a numpy > array) to a file, and load it again? Have you tried to pickle your object w/ cPickle ?
Hi. Does anyone know how to save and load an arbitrary object (e.g a numpy array) to a file, and load it again? I cannot use savetxt and loadtxt as these only stores the numbers. I think I'm looking for some binary format. Best regards / Med Venlig Hilsen Troels Kofoed Jacobsen
Hi all, find with this message a modified version of windrose to be OO compliant. It uses inheritance from PolarAxes to create a WindroseAxes, with 4 methods (contour, contourf, bar and box). BTW it's now possible to control it like any other axes, with the limitation of subploting (subplot is to closer to simple axe and polaraxe). There's also a extra argument 'blowto' which reverse the plot (used in pollutantrose), and scipy is not required (just numpy). Hope someone find it usefull Cordialy -- Lionel Roubeyrie - lro...@li... Chargé d'études et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr
I have a problem to load data from string or array to Image but without using PIL , because I have to check the application in 6 different platforms like Windows 32bit, Windows X64 (64bit version), Linux 32bit, Linux 64bit x86_64, Linux IPF (Itanium Processor Family) and HP-UX 64. There is a code but I don't want to use PIL : http://mail.python.org/pipermail/image-sig/1998-October/000572.html Can I accomplish the same thing using the modules that are already on the system, or those that are pure Python (not requiring any compilation or binary download)? -- View this message in context: http://www.nabble.com/load-data-from-string-or-array-to-Image-tp16297653p16297653.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Hello all, I have trouble with one of my scripts that uses matplotlib when using python or ipython. The first time it opens, it does not hand the control back o the shell and can be used to work on the matplotlib figure interactively (I use an event handler and picker objects to change my plots) so it works really well. After I close the window the control is given back to the shell. This is how I want it to work, however at the second time the matplotlib plot opens the shell does not stop anymore, the script continues. When I used GTKAgg on my old linux box I had the same issue and bound a key to pylab.get_current_figure_manager().destroy(), which looked like a hack to me but worked. This does not work anymore with wxPython, because the next time I open a plot I get an exception: PyDeadObjectError: The C++ part of the FigureFrameWxAgg object has been deleted, attribute access no longer allowed. I also think destroying the figure_manager is not the right way to do that. Whats a goog solution for this? Thanks in advance Wolfgang P.S.: I know I posted a similar thing yesterday, but I thought rephrasing the question might help with finding the solution
sa6113 wrote: > I want to use PIL in order to load from string to Image , but there is a > problem , I can use PIL only in Windows platform whiles I want to use it in > Linux and another Platforms. > What should I do ? No problem. Chances are, your distro has it as a package. In ubuntu it is "python-imaging". Alternatively, you can build from source. See the first download entry here: http://www.pythonware.com/products/pil/. Eric
I want to use PIL in order to load from string to Image , but there is a problem , I can use PIL only in Windows platform whiles I want to use it in Linux and another Platforms. What should I do ? -- View this message in context: http://www.nabble.com/Using-PIL-in-the-Linux%21-tp16296324p16296324.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Hi guys, I can't figure this one out. Look at the example http://matplotlib.sourceforge.net/screenshots/finance_work2.py When I am moving my mouse over the middle subplot which has two Y axes, the data coordinates are for the volume axis, not the candlestick axis. (Presumably because the volume axis was added later...) How do I change which coordinates are shown at the bottom of the interactive window so that it will show me the datapoints from the candlestick axis? Thanks in advance, -Ryan Ryan Wagner rw...@vn...