Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-23 Thread Jan Strube
Gentlemen! Thanks a lot for your help. This works now for me (with and without the norm in the colorbar() call) Best, Jan On Tue, Feb 23, 2010 at 3:47 PM, John Hunter wrote: > On Mon, Feb 22, 2010 at 6:28 PM, Eric Firing wrote: > > Yes. You are looking at ColorbarBase, which does not ha

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-23 Thread Jan Strube
Hi John, thanks for keeping at it. I have updated from svn But this script import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import LogFormatter from matplotlib import colors class LogFormatterHB(LogFormatter): def __call__(self,

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread Jan Strube
Hi John, Eric, sorry to bug again, but was either of you able to reproduce my findings that in svn head the tick labels don't get printed if the formatter changes them to be outside the range of the axis? Cheers, Jan On Fri, Feb 19, 2010 at 10:40 AM, Jan Strube wrote: > Hi John,

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-19 Thread Jan Strube
===== On Thu, Feb 18, 2010 at 10:29 PM, John Hunter wrote: > On Thu, Feb 18, 2010 at 4:06 PM, Jan Strube wrote: > > Hi John, > > thanks for trying this also. Yes, I think it's a bug that not the scale > is > > log, but the data is. > >

[Matplotlib-users] hexbin log bins and colorbar

2010-02-17 Thread Jan Strube
Dear matplotters, encouraged from the excellent response times to my last problem, I am trying to explore more features of matplotlib. My current problem is with hexbin. I have been using numpy.histogram2d and imshow so far for 2d histograms, but I must admit that hexbin looks quite pretty. In or

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
eb 14, 2010, at 5:41 PM, Jan Strube wrote: > > Dear matplotters, >> >> I'm trying to follow >> http://matplotlib.sourceforge.net/examples/pylab_examples/ >> ganged_plots.html >> as an example how to turn of the ticks in the case of shared x axes. >> The

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
> ax1.xaxis.offsetText.set_visible(False) > > where ax1 is the upper axes. > > Regards, > > -JJ > > > On Mon, Feb 15, 2010 at 4:50 AM, Jan Strube wrote: > > Hi Jeff, > > thanks for your quick reply. > > Unfortunately, the line you sent me doesn't have

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
eb 14, 2010, at 5:41 PM, Jan Strube wrote: > > Dear matplotters, >> >> I'm trying to follow >> http://matplotlib.sourceforge.net/examples/pylab_examples/ >> ganged_plots.html >> as an example how to turn of the ticks in the case of shared x axes. >> The

[Matplotlib-users] turning off tick labels

2010-02-14 Thread Jan Strube
Dear matplotters, I'm trying to follow http://matplotlib.sourceforge.net/examples/pylab_examples/ganged_plots.html as an example how to turn of the ticks in the case of shared x axes. The tick labels are gone, but unfortunately, matplotlib still plots a '1e5' on the axis for which I have turned of

[Matplotlib-users] plotting problems in qt4agg backend on Mac OS X

2009-07-15 Thread Jan Strube
Hi matplotters, I am trying to create an image and save it to pdf. Unfortunately, the result is much different if I save it to pdf, eps or png. I am on Mac OS X 10.4, using qt4 4.5.0 and the qt4agg backend (but the problems also occur with -dmacosx). The plot I am trying to make is an overl

[Matplotlib-users] xticks vs yticks

2007-10-04 Thread Jan Strube
I'm having some problems understanding the difference between pylab.xticks() and pylab.yticks() Consider the following: > import pylab as P > import numpy as N > > data = N.random.random((10, 10)) > P.matshow(data) > P.xticks([0, 1, 2], ['1', '2', '3']) > P.show() Why does this work, but if I ch

[Matplotlib-users] doc bug

2007-09-30 Thread Jan Strube
It appears that IndexFormatter is no longer in ticker.py as the user guide (Table 6.3, p.58) suggests. Cheers, Jan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http:/

Re: [Matplotlib-users] xticks vs yticks

2007-09-30 Thread Jan Strube
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py", > line 1287, in draw > self.transData.freeze() # eval the lazy objects > ValueError: Domain error on eval_scalars in Transformation::freeze > > > matplotlib.__version__

Re: [Matplotlib-users] Native file format

2007-02-07 Thread Jan Strube
On 2/7/07, Edin Salkovic <[EMAIL PROTECTED]> wrote: On 2/4/07, Eric Firing <[EMAIL PROTECTED]> wrote: > Jan Strube wrote: > > Hi List, > > is there a way to store matplotlib figures in something like a native > > file format? > > I am thinking of someth

[Matplotlib-users] Native file format

2007-02-04 Thread Jan Strube
Hi List, is there a way to store matplotlib figures in something like a native file format? I am thinking of something that keeps track of all the objects (patches(?)) in a mpl figure, so that later you could just revisit that figure and change properties. Or add/remove objects from the canvas. I