Re: [Matplotlib-users] simple colorbar question

2009-08-05 Thread Eric Firing
Thomas Robitaille wrote: > Hi, > > Is there an easy way to force a colorbar to not take up space from the Axes > it is being plotted next to? In the following example, what I would like is > for the top Axes to remain the same size as the bottom one, and for the > colorbar to place itself on the r

[Matplotlib-users] simple colorbar question

2009-08-05 Thread Thomas Robitaille
Hi, Is there an easy way to force a colorbar to not take up space from the Axes it is being plotted next to? In the following example, what I would like is for the top Axes to remain the same size as the bottom one, and for the colorbar to place itself on the right of the top one. Is this easy to

Re: [Matplotlib-users] Change Font Properties of Annotations

2009-08-05 Thread Gewton Jhames
MIchael, That's it. I don't have microsoft fonts installed, so it's really reverting to the default font. When I put 'sans-serif', instead of 'Tahoma', it works perfectly. Thanks. On Tue, Aug 4, 2009 at 11:40 AM, Michael Droettboom wrote: > Can you add the following to the top of your script: >

Re: [Matplotlib-users] plotting lines with shaded / transparent region for standard deviation

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 9:40 AM, per freem wrote: > hi all, > > is there a way in matplotlib to plot lines with errorbars, e.g. using > errorbar(...) but instead of lines just have shaded, partly transparent > regions that represent the error bars? people often use this to show > confidence interval

Re: [Matplotlib-users] hexbin density plots in matplotlib?

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 10:25 AM, Ryan May wrote: >> is there a way to do this in matplotlib? thanks for your help. > > Not to be rude, but is there any reason you didn't look for pyplot.hexbin > before sending the email? :) Continuing in the non-rude vein :-) See these examples:: http://matplo

Re: [Matplotlib-users] Histogram with logarithmic x-axis

2009-08-05 Thread Thomas Robitaille
Matthias Michler wrote: > > > # > import numpy as np > import matplotlib.pyplot as plt > > # generate some data on log-scale > x = 10**np.random.uniform(size=1000) > # histogram with log-bining > plt.hist(x, bins=10**np.linspace(0, 1, 10)) > plt.xscale('log') > plt.show

Re: [Matplotlib-users] NavigationToolbar internation alization

2009-08-05 Thread Alexander Bruy
Thanks Mike, you are right, I'm talking only about internationalizing the GUI messages. In my opinion this make matplotlib more friendly to average users and in some cases made programmers life easier. Thanks, Alexander Bruy -- реклама ---

Re: [Matplotlib-users] Histogram with logarithmic x-axis

2009-08-05 Thread Matthias Michler
On Monday 03 August 2009 20:48:52 Thomas Robitaille wrote: > Hi, > > What is the easiest way to plot a histogram with a logarithmic x-axis? The > Axes.hist() method takes a log=True/False argument, but this applies only > to the y axis. > > Is the only solution to plot a histogram of np.log10(array

Re: [Matplotlib-users] hexbin density plots in matplotlib?

2009-08-05 Thread Ryan May
On Wed, Aug 5, 2009 at 9:48 AM, per freem wrote: > hi all, > > is there a way to make density plots using hexagonal bins in matplotlib? > what i mean is something like the hexbin package for R, where you can make > density plots where hexagons are plotted in size proportion to the number of > poi

[Matplotlib-users] hexbin density plots in matplotlib?

2009-08-05 Thread per freem
hi all, is there a way to make density plots using hexagonal bins in matplotlib? what i mean is something like the hexbin package for R, where you can make density plots where hexagons are plotted in size proportion to the number of points in that hexagonal bin... see http://www.bioconductor.org/p

[Matplotlib-users] plotting lines with shaded / transparent region for standard deviation

2009-08-05 Thread per freem
hi all, is there a way in matplotlib to plot lines with errorbars, e.g. using errorbar(...) but instead of lines just have shaded, partly transparent regions that represent the error bars? people often use this to show confidence intervals or error bars... an example is here: http://eva.nersc.no/

[Matplotlib-users] griddata array size limit?

2009-08-05 Thread tfoutz99
Hi! I am basing my code off the example posted at: http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data Gridding irregularly spaced data When I use my own data, I am getting a KeyError (Posted below) However, if I only use a subset of my data (for which the total length=263

Re: [Matplotlib-users] Re peated calls to Specgram for animation, memory leaking

2009-08-05 Thread Ryan May
On Wed, Aug 5, 2009 at 8:23 AM, John Hunter wrote: > On Wed, Aug 5, 2009 at 8:08 AM, Michael Droettboom wrote: > > Images added to an axes get added to the axes' "images" member, so you > can > > simply remove it from there. > > It may be more efficient to call im.set_array(newdata) rather than >

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-08-05 Thread Uri Laserson
It appears that I am running 32 bit python. But my computer is a MacMini with an Intel Core 2 Duo, which is supposed to be 64 bit. The python distribution I have installed is Enthought. When I install enthought, everything works smoothly and installs fine, but I would like to be able to update t

Re: [Matplotlib-users] Re peated calls to Specgram for animation, memory leaking

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 8:08 AM, Michael Droettboom wrote: > Images added to an axes get added to the axes' "images" member, so you can > simply remove it from there. It may be more efficient to call im.set_array(newdata) rather than creating a new image each time. Eg http://matplotlib.sourceforg

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-05 Thread John Hunter
2009/8/5 Michael Droettboom : > I don't think this is related to Qt at all, but is illustrating some > sort of bug in the font lookup code. > > Can you try removing fontList.cache and trying again?  I *believe* it > lives in "C:\Documents and Settings\${YOURNAME}\Local > Settings\.matplotlib" on Wi

Re: [Matplotlib-users] NavigationToolbar internationalization

2009-08-05 Thread Michael Droettboom
matplotlib currently has no i18n support. It would be a nice feature to have, it would just take someone with the motivation to do it to provide a patch. Python has gettext support in the standard library, so it should be reasonably straightforward: just the usual busywork of finding translata

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-05 Thread Michael Droettboom
I don't think this is related to Qt at all, but is illustrating some sort of bug in the font lookup code. Can you try removing fontList.cache and trying again? I *believe* it lives in "C:\Documents and Settings\${YOURNAME}\Local Settings\.matplotlib" on Windows, but I'm not a regular Windows u

Re: [Matplotlib-users] Re peated calls to Specgram for animation, memory leaking

2009-08-05 Thread Michael Droettboom
Images added to an axes get added to the axes' "images" member, so you can simply remove it from there. I've attached a modified version of your script that does this. It uses a global variable which is probably not best practice, but it should be enough to give you the idea. Cheers, Mike

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-05 Thread Johann Rohwer
On Tuesday 04 August 2009, John Hunter wrote: > Very odd. I suggest opening up setupext.py and finding the > function "check_for_tk". There are a series of test which > ultimately set the "gotit" variable to determine whether you have > tk for building. Insert a lot of debug print statements thro

Re: [Matplotlib-users] 0.99.0-RC1 and the animation_blit_gtk2 example

2009-08-05 Thread Christophe Dupre
Hi JJ, Thanks for that. It works fairly well, but I've noticed that the graph content (the candlesticks) move slightly faster than the x axis. I've added a sleep(0.1) statement to slow things down, and we can see that at the start the first bar is displayed at around 13:15 but by the times is g

Re: [Matplotlib-users] matplotlib-0.99.0-rc1 : call for testing

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 5:55 AM, Michiel de Hoon wrote: > > I am seeing the following error with the GTKCairo and GTKAgg backends: > figure() > Traceback (most recent call last): >  File > "/usr/local/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", > line 249, in enter_

Re: [Matplotlib-users] matplotlib-0.99.0-rc1 : call for testing

2009-08-05 Thread Michiel de Hoon
I am seeing the following error with the GTKCairo and GTKAgg backends: >>> figure() >>> Traceback (most recent call last): File "/usr/local/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", line 249, in enter_notify_event FigureCanvasBase.enter_notify_event(self, event, gu

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-08-05 Thread Michiel de Hoon
Are you running 32-bits or 64-bits Python? You can find out by running >>> import sys >>> print sys.maxint This will show 2147483647 on 32-bits Python. --Michiel. --- On Tue, 8/4/09, Uri Laserson wrote: > From: Uri Laserson > Subject: Re: [Matplotlib-users] Building current SVN trunk on Mac O

[Matplotlib-users] NavigationToolbar internationalization

2009-08-05 Thread Alexander Bruy
Hi, list I want to transtate NavagationToolbar tooltips in Russian and Ukrainian. Now I can do this only with creating custom toolbar (via subclassing) in code. Is there another way to do this? Maybe, there is any plans to add i18n support to some parts of matplotlib? Thanks, Alexander Bruy

[Matplotlib-users] matplotlib and QT 4.5.2

2009-08-05 Thread Alexander Bruy
Hi, all I try to use last stable version of matplotlib 0.9.85.2 with PyQt 4.5.2 under Windows XP Pro SP3, Python 2.5.2 and get error Traceback (most recent call last): File "/home/alex/.qgis//python/plugins/statist/statist.py", line 114, in doCalcStats d = doStatist.dlgStatist( self.iface )