[Matplotlib-users] Google Summer of Code

2012-03-01 Thread Mic
Hello, Is it possible to use PyPy with: * BioPython * Pysam * Matplotlib * etc If not than it might be good idea to get a support for it with help of Google Summer of Code, because PyPy getting faster and faster. Cheers,

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-01 Thread Jean-Baptiste Marquette
Le 29 févr. 2012 à 23:29, questions anon a écrit : I have a txt file (with an associated prj file) containing gridded weather data. Firstly how can I open this file and convert it to a numpy array? You should have a look on ATpy package : http://atpy.github.com/ Cheers

[Matplotlib-users] pydata hack Friday night in Santa Clara

2012-03-01 Thread John Hunter
I'll be attending the pydata hack night in Santa Clara tomorrow night. We'll be hacking on matplotlib, ipython, pandas, numpy and more. If you are interested in stopping by, there is space for 200, many more than the number of attendees at pydata. The event info is here:

[Matplotlib-users] FigureCanvasQTAgg has no 'renderer' error in v1.1, works in v1.0.1

2012-03-01 Thread Dave Engelsma
Hello -- When I run the following code (heavily adapted from the matplotlib examples): ... SCHistogram = Figure(figsize=(6,6), dpi=300, facecolor='w') # 6 inches across (X-axis) by 4 inches tall (Y-axis) ax = SCHistogram.add_subplot(111) canvas = FigureCanvas(SCHistogram) AxisTitleFontProps =

[Matplotlib-users] transparent graph in Basically

2012-03-01 Thread Mariusz Sypek
Hi I am struggling with making graph transparent. Basically, i have wxpython app with graph located on panel. The panel has bitmap background so i wanted to get rid of white background of chart in order to make whole thing nice looking. However, i can't solve it. I was trying setting with

Re: [Matplotlib-users] Google Summer of Code

2012-03-01 Thread Peter Cock
On Thu, Mar 1, 2012 at 8:14 AM, Mic micta...@gmail.com wrote: Hello, Is it possible to use PyPy with: * BioPython * Pysam * Matplotlib * etc If not than it might be good idea to get a support for it with help of Google Summer of Code, because PyPy getting faster and faster. Most of

[Matplotlib-users] Does matplotlib.animation module use weakrefs?

2012-03-01 Thread Bernhard Heijstek
Hello, I'm trying to run a rudimentary animation code (http://pastebin.com/ZNRhDmPR). When I don't explicitly give a name to the FuncAnimation object, the code doesn't work. I mean, just dropping in: anim.FuncAnimation(fig, update_figure, np.arange(0, 2*np.pi, 0.1), interval=50) instead of,

[Matplotlib-users] Setting the bin content of a histogram

2012-03-01 Thread EnderWiggin
Hi all, I'm currently using the hist plot from matlibplot. Here I have the following question: is there an easy way to set the bin content of a specified bin? For example, I would like to call set_bin_content(bin_index=1, value=1) once instead of filling in 1 times the same value. Thank

Re: [Matplotlib-users] Does matplotlib.animation module use weakrefs?

2012-03-01 Thread Ryan May
On Feb 29, 2012, at 20:00, Bernhard Heijstek bernhard.heijs...@yahoo.com wrote: Hello, I'm trying to run a rudimentary animation code (http://pastebin.com/ZNRhDmPR). When I don't explicitly give a name to the FuncAnimation object, the code doesn't work. I mean, just dropping in:

[Matplotlib-users] xtick labels size and positions

2012-03-01 Thread Pawel
Hi all, Is it possible to set the size of only some tick labels? I have text tick labels (residue names). I'd like to reduce the font size of just two of the labels to make them fit better, but keep the size of the remaining labels the same. And in a similar vein, is it possible to change the

Re: [Matplotlib-users] Setting the bin content of a histogram

2012-03-01 Thread Jeffrey Blackburne
Hi, I'm currently using the hist plot from matlibplot. Here I have the following question: is there an easy way to set the bin content of a specified bin? For example, I would like to call set_bin_content(bin_index=1, value=1) once instead of filling in 1 times the same

Re: [Matplotlib-users] xtick labels size and positions

2012-03-01 Thread Benjamin Root
On Thu, Mar 1, 2012 at 11:33 AM, Pawel pawe...@gmail.com wrote: Hi all, Is it possible to set the size of only some tick labels? I have text tick labels (residue names). I'd like to reduce the font size of just two of the labels to make them fit better, but keep the size of the remaining

Re: [Matplotlib-users] custom markers from images?

2012-03-01 Thread Benjamin Root
On Wed, Feb 29, 2012 at 5:47 PM, C M cmpyt...@gmail.com wrote: I'd like to use, in one case, small loaded images (pngs) as markers on an interactive matplotlib plot (using the OO approach). I'd potentially like to be able to point-pick these markers, too, as well as have them update

Re: [Matplotlib-users] custom markers from images?

2012-03-01 Thread C M
Yeah, there are better ways to do that, somewhat. The problem with the proposed solution is that it relies on non-public APIs, which are can be subject to change without deprecation. Instead, I would have created the figimage object with a particular transform object that would have placed

Re: [Matplotlib-users] matplotlib hanging on Mac OS 10.7 with Python 2.7.2 EPD 7.2-2 (64-bit)

2012-03-01 Thread Benjamin Root
On Thu, Mar 1, 2012 at 10:59 AM, Jean-Baptiste Marquette marqu...@iap.frwrote: Dear Python gurus, I have written the attached script to plot data from SAMP interaction with TOPCAT (http://www.star.bris.ac.uk/~mbt/topcat/). I select a row on a given table (VOtable format) in TOPCAT, got the

Re: [Matplotlib-users] backend with edition capabilities

2012-03-01 Thread Benjamin Root
On Wed, Feb 29, 2012 at 4:02 PM, Federico Ariza ariza.feder...@gmail.comwrote: Dear all I am a long time matplotlib user (under linux) but new to the list (second post). On of the things that bothers me the most is the inability of the standard backend to change simple things (line color,

Re: [Matplotlib-users] custom markers from images?

2012-03-01 Thread Benjamin Root
On Thu, Mar 1, 2012 at 1:11 PM, C M cmpyt...@gmail.com wrote: Yeah, there are better ways to do that, somewhat. The problem with the proposed solution is that it relies on non-public APIs, which are can be subject to change without deprecation. Instead, I would have created the figimage

Re: [Matplotlib-users] xtick labels size and positions

2012-03-01 Thread Pawel
Thanks Ben. Your solution for setting different fontsizes worked like a charm! For the other question, what I meant by padding was the distance of the tick label from the axis. This is what I set with the following command: matplotplib.pyplot.rc(('xtick.major','ytick.major'), pad=10) so

Re: [Matplotlib-users] xtick labels size and positions

2012-03-01 Thread Benjamin Root
On Thu, Mar 1, 2012 at 3:03 PM, Pawel pawe...@gmail.com wrote: ** Thanks Ben. Your solution for setting different fontsizes worked like a charm! Glad it worked. For the other question, what I meant by padding was the distance of the tick label from the axis. This is what I set with the

Re: [Matplotlib-users] xtick labels size and positions

2012-03-01 Thread Pawel
Got it. Thanks again. Pawel On 03/01/2012 04:11 PM, Benjamin Root wrote: On Thu, Mar 1, 2012 at 3:03 PM, Pawel pawe...@gmail.com mailto:pawe...@gmail.com wrote: Thanks Ben. Your solution for setting different fontsizes worked like a charm! Glad it worked. For the other

Re: [Matplotlib-users] backend with edition capabilities

2012-03-01 Thread Andrea Gavana
On 1 March 2012 21:37, Benjamin Root wrote: On Wed, Feb 29, 2012 at 4:02 PM, Federico Ariza ariza.feder...@gmail.com wrote: Dear all I am a long time matplotlib user  (under linux) but new to the list (second post). On of the things that bothers me the most is the inability of the

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-03-01 Thread Russell E. Owen
In article rowen-a1b6dd.12441428022...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: In article CACM7dVw_Lde1QDS4vRvi-zTit8gqFYgYuyRLakOqBy0AVii7oA-JsoAwUIsXosN+BqQ9rBEUg@pu blic.gmane.org, William Jennings willim...@gmail.com wrote: Hello mat plot lib users! I feel quite

Re: [Matplotlib-users] backend with edition capabilities

2012-03-01 Thread Jerzy Karczmarczuk
Andrea Gavana : Anyway, if I am not completely off-track, this is something I had been looking for as well in matplotlib a while back (3, 4 years ago), but at that time I was told it would have been complicated to implement it for all the live backend (I can't recall the exact reason). I

Re: [Matplotlib-users] impossible to deactivate minor grid in logscale

2012-03-01 Thread Paul Hobson
Federico, You were so close! Try this: fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(100), range(100)) #If comment the following line everything is fine ax.set_xscale('log') xaxis = ax.get_xaxis() xaxis.grid(False, which='minor') xaxis.grid(False, which='major') plt.show() Hope

Re: [Matplotlib-users] backend with edition capabilities

2012-03-01 Thread Benjamin Root
On Thursday, March 1, 2012, Jerzy Karczmarczuk jerzy.karczmarc...@unicaen.fr wrote: Andrea Gavana : Anyway, if I am not completely off-track, this is something I had been looking for as well in matplotlib a while back (3, 4 years ago), but at that time I was told it would have been

Re: [Matplotlib-users] pydata hack Friday night in Santa Clara

2012-03-01 Thread Mic
Would be greate if it would be possible to record talks and slides and make them public for whome are not leaving near by. Thank you in advance. On Fri, Mar 2, 2012 at 12:06 AM, John Hunter jdh2...@gmail.com wrote: I'll be attending the pydata hack night in Santa Clara tomorrow night. We'll

Re: [Matplotlib-users] pydata hack Friday night in Santa Clara

2012-03-01 Thread Fernando Perez
On Thu, Mar 1, 2012 at 4:16 PM, Mic micta...@gmail.com wrote: Would be greate if it would be possible to record talks and slides and make them public for whome are not leaving near by. The hack night will be 'open space' so not videotaped, but the main workshop will be, thanks to the awesome

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-01 Thread questions anon
python, numpy through enthought - Python 2.7.2 |EPD 7.1-1 (32-bit)| (default, Jul 3 2011, 15:13:59) [MSC v.1500 32 bit (Intel)] on win32 imports at the top of the script: import numpy as N import matplotlib.pyplot as plt from numpy import ma as MA from mpl_toolkits.basemap import Basemap import

Re: [Matplotlib-users] pydata hack Friday night in Santa Clara

2012-03-01 Thread Mic
+1 On Fri, Mar 2, 2012 at 10:46 AM, Fernando Perez fperez@gmail.comwrote: On Thu, Mar 1, 2012 at 4:16 PM, Mic micta...@gmail.com wrote: Would be greate if it would be possible to record talks and slides and make them public for whome are not leaving near by. The hack night will be

Re: [Matplotlib-users] backend with edition capabilities

2012-03-01 Thread Matt Newville
Dear Andrea, All On 1 March 2012 22:31, Andrea Gavana andrea.gav...@gmail.com wrote: I thought the OP's original question was something like the Matlab plot editor (or whatever is its name), which allows you to edit line colours, styles, gridlines styles, this kind of stuff on a live plot

Re: [Matplotlib-users] draw lines in basemap

2012-03-01 Thread Paul Hobson
David, The loop is you have is unnecessary. You can plot the markers and the lines at the same time like so: from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import matplotlib.lines as lines import numpy as np m =

Re: [Matplotlib-users] draw lines in basemap

2012-03-01 Thread Paul Hobson
Whoops, make that: from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import matplotlib.lines as lines import numpy as np m = Basemap(llcrnrlon=-11.5,llcrnrlat=51.0,urcrnrlon=-4.5,urcrnrlat=56.0, resolution='i',projection='cass',lon_0=-4.36,lat_0=54.7) lats =