[Matplotlib-users] Raising figure windows
Hello! I use matplotlib in interactive mode with the wxAgg backend under WindowsXP. It often happens that I have quite a lot figure windows hidden by other windows. Then it is difficult to pick the right figure window from the taskbar, since their titles all start with 'Figure...' and additionally, I can't remember which number is which plot. Therefor, I would like to raise all my figure windows to the top of my cluttered desktop... Is there a command like f = figure() # put the figure to the background f.raise() that will take the figure window to the top of all other windows? Thanks Lars - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] C++ Assertion failure during savefig
Hey, Up until recently I have been using mpl 0.90.1, and my application worked fine. Yesterday I upgraded to 0.91.2 and am now getting the following traceback: File application. py, line 667, in plot radial_plot_figure.savefig(png_file, dpi=self.dpi) File C:\Python25\Lib\site-packages\matplotlib\figure.py, line 770, in savefig self.canvas.print_figure(*args, **kwargs) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py, line 101, in print_figu re FigureCanvasAgg.print_figure(self, filename, *args, **kwargs) File C:\Python25\Lib\site-packages\matplotlib\backend_bases.py, line 1202, in print_figure self.figure.canvas.draw() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py, line 65, in draw self.gui_repaint() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_wx.py, line 987, in gui_repaint drawDC.DrawBitmap(self.bitmap, 0, 0) File C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py, line 3387, in DrawBitmap return _gdi_.DC_DrawBitmap(*args, **kwargs) PyAssertionError: C++ assertion hdcDst hdcSrc failed at ..\..\src\msw\dc.cpp(2559) in AlphaBlt( ): AlphaBlt(): invalid HDC Does anyone have any suggestions to why this is happening? Thanks. - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How do I widen the space for y coordinate ticks?
carlwenrich wrote: without having to increase the width of the whole chart? Have a look at examples/major_minor_demo1.py and examples/major_minor_demo2.py. I guess you are looking for something like this ... Manuel - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] C++ Assertion failure during savefig
On Thu, Apr 3, 2008 at 6:19 AM, Chris Squibb [EMAIL PROTECTED] wrote: Hey, Up until recently I have been using mpl 0.90.1, and my application worked fine. Yesterday I upgraded to 0.91.2 and am now getting the following traceback: Are you getting that with every mpl script, eg the canconical simple_plot.py http://matplotlib.sf.net/examples/simple_plot.py If not, we may need to see a little code to help diagnose what is going on JDH - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Backend Control
Alan, It would be nice to be able to plot and show, get feedback from the user (perhaps using tkinter), and then update the plot on the screen, causing you to have to use show twice (pylab.Draw()doesn't seem to work the way I'm trying to use it -- with basemaps -- ie. to get the user to see an intermediate map.) Any hints or examples showing how to use draw properly with basemaps? (The links you sent said draw should work.) The funny thing is that when I look at anim.py it says: # turn interactive mode on for dynamic updates. If you aren't in # interactive mode, you'll need to use a GUI event handler/timer. but how would one use a GUI event handler/timer? Regards, Kurt Date: Wed, 2 Apr 2008 10:44:43 -0400 From: Alan Isaac [EMAIL PROTECTED] Subject: Re: [Matplotlib-users] Backend Control To: matplotlib-users@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: TEXT/PLAIN; CHARSET=US-ASCII On Wed, 2 Apr 2008, Wolfgang Kerzendorf wrote: If I plot something with pylab.plot and then pylab.show the first time. http://matplotlib.sourceforge.net/faq.html#SHOW http://matplotlib.sourceforge.net/faq.html#OO hth, Alan Isaac - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] setting font weight via rc
Using matplotlib 0.91.2 with the current development version of ipython on Linux with no local matplotlibrc file, I have noticed that setting the font weight via rc('text',fontweight='bold') or rc('font',weight='bold') changes the relevant rc parameter but doesn't affect the weight of the displayed fonts used in the axes or titles. Specifying the weight in matplotlibrc does work, however. Has anyone else observed this? L.G. - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plotting from a dictionary
Hey All, I have a dictionary that maps date to a count (in this case the number of false negatives from my spam filter) and I'm wondering how to best plot something that looks like, say: from datetime import date data = { date(2008,03,01):10, date(2008,03,02):15, date(2008,03,03):13, } I'm worried about getting the dates out in order such that I get a straight line plot, rather than the zigzag back-and-forth line I reckon I'd get if I did: dates = [] count = [] for date,count in data.items: dates.append(date) count.append(count) plot(dates,counts) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plotting from a dictionary
Chris, Why wouldn't you try to use sorted on your dictionary, construct an array from the result of sorted, and get the corresponding columns ? ddict={date(2008,01,01):10,date(2008,01,03):20,date(2008,01,02):30} results=numpy.array(sorted(ddict.iteritems()),) print results[:,0] [2008-01-01 2008-01-02 2008-01-03] print results[:,1] [10 30 20] - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to plot 2 data series against the same time series using plot_date?
Dear all, I would like to plot two different data series against a common time-series, e.g. dataset 1 is the precipitation data around a year at City 1, and dataset 2 is the precipitation of the same year taken at City 2. They share a common x-axis. My goal is to draw the two lines in the same subplot so that the different climate profile of the two cities can be directly visualized. However, the current version of the plot_date() method doesn't seem to support multiple lines in the same subplot. What should I do? Thanks for your comments. Cong. - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to plot 2 data series against the same time series using plot_date?
On 4/4/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear all, I would like to plot two different data series against a common time-series, e.g. dataset 1 is the precipitation data around a year at City 1, and dataset 2 is the precipitation of the same year taken at City 2. They share a common x-axis. My goal is to draw the two lines in the same subplot so that the different climate profile of the two cities can be directly visualized. However, the current version of the plot_date() method doesn't seem to support multiple lines in the same subplot. What should I do? Thanks for your comments. Cong. I'm sorry but I think I made a mistake. I tried calling the plot_date() method two times with different data and it worked. - 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users