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

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 jdh2...@gmail.com wrote: On Mon, Feb 22, 2010 at 6:28 PM, Eric Firing efir...@hawaii.edu wrote: Yes. You are looking

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 curious...@gmail.com wrote

[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

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
: Try 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 curious...@gmail.com wrote: Hi Jeff, thanks for your quick reply. Unfortunately, the line you sent me doesn't have any effect on the plot, either before

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
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 tick labels are gone, but unfortunately, matplotlib still

[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

[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

[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 change

Re: [Matplotlib-users] xticks vs yticks

2007-09-30 Thread Jan Strube
: Domain error on eval_scalars in Transformation::freeze matplotlib.__version__ Out[2]: '0.90.1' I am still in the learning phase, so any insight as to what's going on is appreciated. Best, Jan -- Jan Strube -- University of Oregon Stanford Linear Accelerator Center Bldg. 48 phone

[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.

[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