Re: [Matplotlib-users] How to plot 2 data series against the same time series using plot_date?

2008-04-03 Thread frigoris . ma
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

[Matplotlib-users] How to plot 2 data series against the same time series using plot_date?

2008-04-03 Thread frigoris . ma
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 sub

Re: [Matplotlib-users] plotting from a dictionary

2008-04-03 Thread Pierre GM
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

[Matplotlib-users] plotting from a dictionary

2008-04-03 Thread Chris Withers
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, }

[Matplotlib-users] setting font weight via rc

2008-04-03 Thread Lev Givon
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 disp

Re: [Matplotlib-users] Backend Control

2008-04-03 Thread KURT PETERS
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

Re: [Matplotlib-users] C++ Assertion failure during savefig

2008-04-03 Thread John Hunter
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 c

Re: [Matplotlib-users] How do I widen the space for y coordinate ticks?

2008-04-03 Thread Manuel Metz
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 - Ch

[Matplotlib-users] C++ Assertion failure during savefig

2008-04-03 Thread Chris Squibb
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-users] Raising figure windows

2008-04-03 Thread Lars Friedrich
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 addition