[Matplotlib-users] Hiding data via legend

2009-08-03 Thread Gökhan Sever
Hello, I was wondering if it is possible to hide some data on figures using a say right click option to any of the legend entry and make it temporarily hidden/visible to better analyse the rest of the data? Check this screenshot for example: http://img25.imageshack.us/img25/9427/datahiding.png

Re: [Matplotlib-users] Plot aesthetics

2009-08-03 Thread Gökhan Sever
On Mon, Aug 3, 2009 at 8:52 PM, Yang Zhang wrote: > Hi, recently I've been using the beautiful (and easy-to-use) pycha[1] > package for simple bar charts: > > http://img522.imageshack.us/img522/7139/tput.png > > So far, pycha is the closest thing I've found to Office 2007-caliber > aesthetics. H

[Matplotlib-users] Plot aesthetics

2009-08-03 Thread Yang Zhang
Hi, recently I've been using the beautiful (and easy-to-use) pycha[1] package for simple bar charts: http://img522.imageshack.us/img522/7139/tput.png So far, pycha is the closest thing I've found to Office 2007-caliber aesthetics. However, pycha is much more limited than matplotlib, and I hap

[Matplotlib-users] y axis label placement

2009-08-03 Thread dek
I am wondering how I can dynamically place the y axis label depending on the length of ticker text. I have a canvas within wxpython app using wxagg but I'm unsure how to place the ylabel so that it's in a suitable place say when ticker label length could be one digit or 7+. At the 7+ digits the ax

Re: [Matplotlib-users] define standard longitude for lambert conformal projection

2009-08-03 Thread Jeff Whitaker
Ufuk Utku Turuncoglu wrote: > Hi, > > Is there any way to set standard longitude value for lambert conformal > projection. My current basemap parameters are, > > m = Basemap(projection='lcc', > lat_1=30.0, > lat_2=60.0, > lat_0=40.0, > lon_0=16.0, >

[Matplotlib-users] define standard longitude for lambert conformal projection

2009-08-03 Thread Ufuk Utku Turuncoglu
Hi, Is there any way to set standard longitude value for lambert conformal projection. My current basemap parameters are, m = Basemap(projection='lcc', lat_1=30.0, lat_2=60.0, lat_0=40.0, lon_0=16.0, llcrnrlon=-10.0, llcrnrlat

[Matplotlib-users] wxagg and cups printeer

2009-08-03 Thread Janwillem
Inspired by examples like http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx2.html I added matplotlib.use('WXAgg') to my (wxPython) script in order to directly copy the matplotlib.backends.backend_wxagg.FigureCanvasWxAgg to a wx canvas. On my ubuntu 9.04 AMD64 PC it works f

[Matplotlib-users] Change Font Properties of Annotations

2009-08-03 Thread Gewton Jhames
I'm having problems to simply set 'bold' the font weight of some annotations. Tryin'this: fig = plt.figure(frameon=False) ax = plt.gca() font = matplotlib.font_manager.FontProperties(family='Tahoma', weight='extra bold', size=12) annotation_total = ax.annotate('Total:', xy=(0, -320), xycoords='ax

Re: [Matplotlib-users] Windows 64 bit support for matplotlib?

2009-08-03 Thread Mark Rubelmann
On Mon, Aug 3, 2009 at 3:24 PM, Clem Wang wrote: > Being a new Windows user, there's much that I don't understand... (please > no flaming here...) > > I'm running Windows 7 with a 64 bit OS. When I try to install: > matplotlib-0.98.5.3.win32-py2.6 > > I get this error message: > Python version 2

Re: [Matplotlib-users] Windows 64 bit support for matplotlib?

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 2:24 PM, Clem Wang wrote: > However, that is not true because Python 2.6 (64 bit) is in fact installed. > > I believe the actual problem is due to the fact I'm trying to install the 32 > bit library and there is no 64 bit library version of matplotlib. Could you please test

[Matplotlib-users] Windows 64 bit support for matplotlib?

2009-08-03 Thread Clem Wang
Being a new Windows user, there's much that I don't understand... (please no flaming here...) I'm running Windows 7 with a 64 bit OS. When I try to install: matplotlib-0.98.5.3.win32-py2.6 I get this error message: Python version 2.6 required, which was not found in the registry. However, that

[Matplotlib-users] Histogram with logarithmic x-axis

2009-08-03 Thread Thomas Robitaille
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) and to change the tick formatter to a Log formatter, or is there a m

Re: [Matplotlib-users] A couple of new gallery examples?

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 11:37 AM, Josh Hemann wrote: > > I am submitting two possible gallery additions for bar charts and boxplots. > The existing examples are good, but being relatively new to matplotlib I had > to learn quite a bit to enhance these charts to fit my needs. Learning is > good of co

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-03 Thread Mark Rubelmann
On Mon, Aug 3, 2009 at 1:01 PM, Christopher Barker wrote: > John Hunter wrote: > >> Wriing a GUI neutal idle event handler is not easy -- I've spent some > >> time on it but crashed and burned on tk > > > I think > > it would be great if we could abstract the idle handler and timeout > > handler

Re: [Matplotlib-users] Design questions

2009-08-03 Thread Gewton Jhames
plt.subplots_adjust combined with ajustments in fig.set_size_inches is finally working. On Fri, Jul 31, 2009 at 11:55 AM, Tony S Yu wrote: > On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote: > > Anyone? > > On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames wrote: > >> Guys, there is the code. >> On

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-03 Thread Christopher Barker
John Hunter wrote: >> Wriing a GUI neutal idle event handler is not easy -- I've spent some >> time on it but crashed and burned on tk > I think > it would be great if we could abstract the idle handler and timeout > handler across the GUIs so that mpl animation would be easier, but to > date th

[Matplotlib-users] A couple of new gallery examples?

2009-08-03 Thread Josh Hemann
I am submitting two possible gallery additions for bar charts and boxplots. The existing examples are good, but being relatively new to matplotlib I had to learn quite a bit to enhance these charts to fit my needs. Learning is good of course, but maybe these "more complete" examples will help othe

Re: [Matplotlib-users] Include icon in plot

2009-08-03 Thread Jae-Joon Lee
Hmm, your code runs just fine for me (of course with different icon, but I don't think it matters). Can you try to install the 0.99rc version of mpl and see if it solves the problem? Since the error is not reproduced in my side, I have little to help. Also, try the figimage and see if you see a sa

Re: [Matplotlib-users] clabel and bbox

2009-08-03 Thread Andres Luhamaa
Jae-Joon Lee wrote: On Sat, Aug 1, 2009 at 5:04 PM, Andres Luhamaa wrote: Thank You, but now I have another little annoying issue. Besides clabel I add some text manually to my plot with plt.text and sometimes the clabel and plt.text overlap, and no matter in which order I plot them, the str

Re: [Matplotlib-users] polar() is not equal to ax.plot (where ax is a PolarAxes)?

2009-08-03 Thread Michael Droettboom
I'm not able to see a difference between the two methods here: from pylab import * import numpy as np r = np.arange(0, 3.0, 0.01) theta = 2*np.pi*r fig = figure() ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True) ax.plot(theta, r) show() polar(theta, r) show() Can you provide a standalone s

Re: [Matplotlib-users] Include icon in plot

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 6:55 AM, Bas van Leeuwen wrote: > PS, @John, I'd like to try the imshow approach first because it is not > in a figure but in a QT frame containing several subplots. But thank > youfor the suggestion, I will try if the imshow approach appears > fruitless. All matplotlib axe

Re: [Matplotlib-users] can't build matplotlib with easy_install

2009-08-03 Thread Danny Navarro
Hi all, In the end I could easy_install matplotlib with: easy_install http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-0.98.5/matplotlib-0.98.5.3.tar.gz The tip was mentioned in a previous thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg0951

Re: [Matplotlib-users] Include icon in plot

2009-08-03 Thread Bas van Leeuwen
Hi, Sorry about the snippet, I will privide working code from now on. I found a reproduction path for the error, it occurs (seemingly random, but frequent) when there is more than one image in the plot and you try to zoom. Code: import Image from pylab import * im = Image.open("icon.png") ax = s

[Matplotlib-users] slow rendering of 2K arrays using imshow in Animation_blit_tk.py

2009-08-03 Thread Auré Gourrier
Hi all, I recently bumped into a problem while trying to display imshow images (2048x2048 pix) in a GUI based on TkAgg (matplotib0.91.2, python 2..4.4, numpy1.0.4). In brief, building the image with imshow is Ok, but the call to show() or draw() takes about 1.2 s on my system (XP, 2.8Ghz, 2Go r

[Matplotlib-users] can't build matplotlib with easy_install

2009-08-03 Thread Danny Navarro
Hi all, I'm trying to install matplotlib with easy_install but fails when building: -- └┌(%:~/sandbox/virtualenvs/matplotlibenv)┌- easy_install matplotlib Searching for matplotlib Reading