[Matplotlib-users] Box plot and missing data (NaN/Masked)

2011-07-13 Thread mdekauwe
Hi, I am trying to plot some arrays with missing data, noted as -.9. I have tried setting these values to NaN and using numpy masked arrays. Neither produces the correct plot when using box plot. Any suggestions? e.g. import matplotlib.pyplot as plt import numpy as np # works fine y = np.a

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Benjamin Root
On Wednesday, July 13, 2011, Justin McCann wrote: > 2011/7/13 SULSEUNG-JIN : >> Thanks, Justin >> >> I think I made a confusing example code. Here comes new one: > > Maybe you just need to force a call to draw() and set your x/y limits. > This works for me on matplotlib 1.0.1 > > $ ipython -pylab

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
If I set like vec = 100*numpy.random.random((10,3)) it does not shpw lines even with changing the set_xlimit and set_ylimit. I guess there is something related with scaling. Jin --- > Date: Wed, 13 Jul 2011 16:44:01 -0400 > Subject: Re: [Matplotlib-users] Question on LineCollection > From:

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
Justin, your code works flawlessly. Well, I've got the "vec" from pytables like: vec = [ [x['sStart'],x['sEnd'],x['dIdent'],x['gi'] ] for x in table.where('(gi == currGi) & (sId == currSubId)') ] With the above "vec", it does not work. Do you have any idea? Jin. --- > Date: Wed, 13 Ju

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN : > Thanks, Justin > > I think I made a confusing example code. Here comes new one: Maybe you just need to force a call to draw() and set your x/y limits. This works for me on matplotlib 1.0.1 $ ipython -pylab # from matplotlib.collections import LineCollection f = fig

Re: [Matplotlib-users] trouble redrawing the canvas when embedding the matplotlib figure in wxpython , also tooltip not being enabled when matplotlib figure placed in wxpython

2011-07-13 Thread Ravi Kanth Vanapalli
Reposting it as the content of my query in my previous post on the website. Hi all, > > I am having trouble redrawing the canvas when embedding the simple > matplotlib graph into wxpython. > I tried creating the required GUI using the XRCed. > My aim is to display two check boxes, one with Sin an

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
Thanks, Justin I think I made a confusing example code. Here comes new one: segs = [] for i in range(0, len(vec)): x1 = vec[i][0] #x1 = 300 x2 = vec[i][1] #x2 = 400 y1 = y2 = vec[i][2] segs.extend( [[(x1,y1),(x2,y2)]] ) l

Re: [Matplotlib-users] matplotlib-py3 branch won't show in Ubuntu 10.04

2011-07-13 Thread Jorge Garcia
In case it helps, I also tried the simple plot test recommended in the matplotlib FAQ: Here's the traceback it gave me. $HOME=/home/cadsoft CONFIGDIR=/home/cadsoft/.matplotlib matplotlib data path /usr/local/lib/python3.1/dist-packages/matplotlib/mpl-data loaded rc file /usr/local/lib/python3.1/

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN : > Hi, > > I'm plotting thousands of short lines on a plot. Because "plot" and "Line2D" > are quite slow for this case, I'm trying to use lineCollection. Here comes > the part of my testing code: > >     ... >     segs = [] > >     # Manual set for testing >     x2 = np.zero

Re: [Matplotlib-users] matplotlib-py3 branch won't show in Ubuntu 10.04

2011-07-13 Thread Jorge Garcia
Hi Darren, I think your correct, the matplotlibrc file says that the backend is set to Agg. Here's the traceback: BUILDING MATPLOTLIB matplotlib: 1.1.0 python: 3.1.2 (r312:79147, Sep 27 2010, 09:45:41) [GCC 4.4.3] platform: linux

Re: [Matplotlib-users] Symbol plotting

2011-07-13 Thread Paul Ivanov
Richard Hattersley, on 2011-07-13 09:58, wrote: > Is there a standard way to add fixed-size, arbitrary-design symbols to axes? > - Their position must be given in data coordinates > - Their size must be given in physical coordinates (inches/points) > > They basically need to behave like plot m

[Matplotlib-users] trouble redrawing the canvas when embedding the matplotlib figure in wxpython , also tooltip not being enabled when matplotlib figure placed in wxpython

2011-07-13 Thread Ravi Kanth Vanapalli
Hi all, I am having trouble redrawing the canvas when embedding the simple matplotlib graph into wxpython. I tried creating the required GUI using the XRCed. My aim is to display two check boxes, one with Sin and one with Cos signal. And then a show button. By default both the checkboxes are clic

[Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
Hi, I'm plotting thousands of short lines on a plot. Because "plot" and "Line2D" are quite slow for this case, I'm trying to use lineCollection. Here comes the part of my testing code: ... segs = [] # Manual set for testing x2 = np.zeros(2,dtype=int) ys2 = [np.zeros(2,dt

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-13 Thread Paul Ivanov
JD83, on 2011-07-13 08:59, wrote: > > I am writing a script with a matplotlib figure embedded in a Tkinter Frame : > > fig=Figure() > ax=fig.add_subplot(111) > canvas = FigureCanvasTkAgg(fig, root) > > and so on... > > Everything goes well but when i try to clear the figure, the xaxis and yaxi

[Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-13 Thread JD83
I am writing a script with a matplotlib figure embedded in a Tkinter Frame : fig=Figure() ax=fig.add_subplot(111) canvas = FigureCanvasTkAgg(fig, root) and so on... Everything goes well but when i try to clear the figure, the xaxis and yaxis don't desappear, so that the next axis print over the

[Matplotlib-users] Symbol plotting

2011-07-13 Thread Richard Hattersley
Is there a standard way to add fixed-size, arbitrary-design symbols to axes? - Their position must be given in data coordinates - Their size must be given in physical coordinates (inches/points) They basically need to behave like plot markers, but with the ability to specifiy arbitrary designs