Re: [Matplotlib-users] Graphing in 3d

2009-09-04 Thread Brent Pedersen
On Fri, Sep 4, 2009 at 10:11 AM, Westly Ward wrote: > Hi. I need some help creating a 3d wireframe in matplotlib in python. Here > is my code. > > Code: > from __future__ import division > import matplotlib.pyplot as plt > from numpy import * > > fig = plt.figure() > from mpl_toolkits.mplot3d impor

[Matplotlib-users] caps on errorbar

2009-10-06 Thread Brent Pedersen
hi, i'm using the exact code pasted below, and copied from: http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_demo.html?highlight=errorbar i see the vertical error lines, but i'm not able to see the 'cap' as in the codex above, i've tried changing a few parameters in my matplotlib

[Matplotlib-users] axes_grid divider with room for axis

2009-11-09 Thread Brent Pedersen
hi, i'd like to use the divider stuff in axes_grid to plot a figure with 2 axes, with xticks on the bottom axis. in the script pasted below, if i use 0.07 as the min for the y-axis, then it chops off the top of the plot. if i use 0 as the min, then it doesn't chop of the top, but it doesnt show the

Re: [Matplotlib-users] axes_grid divider with room for axis

2009-11-09 Thread Brent Pedersen
On Mon, Nov 9, 2009 at 3:18 PM, Jae-Joon Lee wrote: > On Mon, Nov 9, 2009 at 6:03 PM, Brent Pedersen wrote: >> how can i have the divider account for the room needed >> for the >> labels and ticks? > > Doing this automatically is not straight forward. So you need to

[Matplotlib-users] transform for pylab.scatter

2008-07-02 Thread Brent Pedersen
hi, for pylab.plot, i am able to get the transform like this: import pylab xs = [0, 999] ys = [10, 555] f, = pylab.plot(xs, ys) t = f.get_transform() print t.transform(zip(xs, ys)) how can i do that for a pylab.scatter? this: s = pylab.scatter(xs, ys) print s.ge

Re: [Matplotlib-users] transform for pylab.scatter

2008-07-02 Thread Brent Pedersen
On Wed, Jul 2, 2008 at 2:53 PM, Brent Pedersen <[EMAIL PROTECTED]> wrote: > hi, for pylab.plot, i am able to get the transform like this: > >import pylab >xs = [0, 999] >ys = [10, 555] > >f, = pylab.plot(xs, ys) >t = f.get_transform() >

Re: [Matplotlib-users] Set MPLCONFIGDIR to something different

2008-08-18 Thread Brent Pedersen
On Mon, Aug 18, 2008 at 8:25 AM, stuartornum <[EMAIL PROTECTED]> wrote: > > Hi Jeff, > > Sorry I should have explained more. I am running a web app also I currently > working for a very large organisation so the infrastructure is quite > different to your average home / signle server setup. > > Tha

Re: [Matplotlib-users] list of tuples vs tuple of lists

2008-10-23 Thread Brent Pedersen
On Thu, Oct 23, 2008 at 6:35 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > You could use the (admittedly inscrutable) "unzip" technique: > > ax.plot_date(*zip(*items)) > > See this blog post for explanation: > > http://paddy3118.blogspot.com/2007/02/unzip-un-needed-in-python.html > > If you u

Re: [Matplotlib-users] draw to memory

2009-03-18 Thread Brent Pedersen
On Wed, Mar 18, 2009 at 2:48 PM, crwe crwe wrote: > Hi all, > > i need to draw a polygon (non-convex) into memory, so that i can query which > pixels are inside the polygon and which not. I came across matplotlib which > has some Polygon class in it so i presume i could use this (although so far

[Matplotlib-users] set background of axes + labels

2011-11-11 Thread Brent Pedersen
Hi, I have an image like this: https://docs.google.com/open?id=0B7eMlcFeoB_rMTU1OTU0NmMtMzM3MC00YWI3LWFlNTYtNzg0MTM4MWI3OWMz with an axes inside of another. I'd like to set the background behind the labels of the inner figure. I've tried set_frame_on on the axis, set_frameon on the figure, axisbg_

[Matplotlib-users] FigureCanvas transparency

2007-07-29 Thread Brent Pedersen
hi, with the simple script below, how can i make the image have a transparent background instead of white? it's saving RGB, not RGBA. thanks, -brent import matplotlib matplotlib.use('Agg') from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Fi

[Matplotlib-users] FigureCanvas transparency

2007-07-31 Thread Brent Pedersen
sending again, doesnt seem to have gone through... hi, with the simple script below, how can i make the image have a transparent background instead of white? it's saving RGB, not RGBA. thanks, -brent import matplotlib matplotlib.use('Agg') from matplotlib.backends.backend_agg import FigureCanva

[Matplotlib-users] backend_agg 1px off.

2008-04-16 Thread Brent Pedersen
hi, first, with backends agg and cairo, increasing the dpi increases the width of any edge that is drawn, is there a way to set this edge width constant? second, when using backend_agg, if i draw a patch with an edge at x=0 and the xlim(xmin=0) there's still a 1 pixel gap. this does not occur at t