Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe

2009-07-13 Thread Stephen George
Hi Christoph, Sorry for my delay to get back to you. The svn version seems to work fine with GTK support, at least my application had no problems running The versions I tested with are as follows: python version: 2.6.0 final 0 numpy version: 1.3.0 matplotlib version: 0.98.6svn g

Re: [Matplotlib-users] centering axis ticks labels

2009-07-13 Thread Johann Cohen-Tanugi
import numpy as np import matplotlib.pylab as plt ROIS=["1.0","0.9","0.8","0.7","0.6","0.5","0.4","0.3","0.2","0.1"] EMINS=["100","125","150","175","200","250","300","500","700","1000"] d=np.array([81.820974990633303, 82.905629922471107, 79.590599078715002, 83.8076661158848, 84.340371447361704, 8

Re: [Matplotlib-users] centering axis ticks labels

2009-07-13 Thread Johann Cohen-Tanugi
the example works very well, but what I have is 10 numbers that I want to put in between 11 ticks. Actually what I havve is a checkerboard (using pcolor) and I want to label the X and Y of each pixel and now I am confused with the API to do that... The example uses objects that can provide L

[Matplotlib-users] Creating new type of plot

2009-07-13 Thread Uri Laserson
Hi everyone, I am trying to create some brand new types of plots for a unique data set that I have. My question basically boils down to getting some advice on what is the proper way to set up a function that will act like one of the matplotlib pyplot functions (e.g., have all the same behavior re

Re: [Matplotlib-users] plotting disjoint horizontal lines

2009-07-13 Thread Chloe Lewis
If your collection of points is a numpy array, you can use the column of y-coordinates as the first argument to the plotting function hlines. E.g, inside ipython --pylab: ptn = array(([1,1],[3,1],[2,4],[4,4])) hlines(ptn[:,1], -1, 1) But at that point the horizontal lines are on the edges o

Re: [Matplotlib-users] speeding-up griddata()

2009-07-13 Thread Jeff Whitaker
Robert Cimrman wrote: > Hi all, > > I would like to use griddata() to interpolate a function given at > specified points of a bunch of other points. While the method works > well, it slows down considerably as the number of points to > interpolate to increases. > > The dependence of time/(number

[Matplotlib-users] Simple "stuff" for a general-purpose matplotlib book

2009-07-13 Thread Sandro Tosi
Hi all, as you might know, I'm writing a book about matplotlib. I'm approaching the last chapter, the one I would have liked to dedicate to "science". Editors and I, anyhow, decided it would have been too much off-topic for the public we are targetting, so we have instead decided to present a seri

[Matplotlib-users] plotting disjoint horizontal lines

2009-07-13 Thread Afi Welbeck
Hi, I'm a newbie, and I'm trying to plot horizontal lines with the following points: [1,1], [3,1], [2,4] and [4,4]. Also, is there a way of putting them together in lists, (say the pair of points that plot one horizontal line ) for easy plotting? Could anyone please help me with the code? Than

[Matplotlib-users] speeding-up griddata()

2009-07-13 Thread Robert Cimrman
Hi all, I would like to use griddata() to interpolate a function given at specified points of a bunch of other points. While the method works well, it slows down considerably as the number of points to interpolate to increases. The dependence of time/(number of points) is nonlinear (see the

Re: [Matplotlib-users] histogram with "ready" data

2009-07-13 Thread Davide Setti
ehm ehm... maybe bar() ? :-) -- Davide Setti blog: http://blog.flatlandia.eu home: http://www.flatlandia.eu -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limit

[Matplotlib-users] histogram with "ready" data

2009-07-13 Thread Davide Setti
Hi all, i need to plot an histogram from already calculated data. I think an example can be helpful :-) I have a list: [ (22, 0), (19, 1), (15, 0), ... ] while in each tuple the first number is the height of the bar (the first bar has value 22, the second has value 19...) the second is the

Re: [Matplotlib-users] Backend Comparison

2009-07-13 Thread vehemental
Let me give some results of experience regarding these issues On the same dataset of 600 *7500 points, with the simple plot function, (from the example, embedding in wxagg) WxAgg was much faster than Wx... on a linux machine, while the WxAgg drawing appeared close to a second or 2 after launc