[Matplotlib-users] ANN: matplotlib website 1.0

2008-10-16 Thread John Hunter
We've been working behind the scenes on a new documentation system for matplotlib, which integrates the web site, API documentation and PDF guide into a single source of sphinx/rest documents which are easier to maintain and extend, hopefully leading to better and more up-to-date docs. We went liv

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread John Hunter
On Tue, Oct 14, 2008 at 2:58 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions,PyArray_INT); > > in nxutils.cpp would become > > mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions, NPY_BOOL); > > Can anyone think of anything this would break,

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-14 Thread John Hunter
On Tue, Oct 14, 2008 at 7:35 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > I saw this blank image problem a couple of weeks ago, and I was seeing it in > my local doc builds as well. > > It appeared then that this change broke inline plots: > > """ > r6089 | jdh2358 | 2008-09-13 10:28:09 -040

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-14 Thread John Hunter
On Mon, Oct 13, 2008 at 6:56 PM, Eric Firing <[EMAIL PROTECTED]> wrote: >> However, unfortunately there appears to be some problem with the >> generation of the figures which are supposed to be embedded within that >> documentation - they're all appearing as nothing but blank white spaces, >> both

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread John Hunter
On Mon, Oct 13, 2008 at 2:27 PM, Mathew Yeates <[EMAIL PROTECTED]> wrote: > Angus pointed out that I need to do > res.fmt_xdata=foo > Duh. I was evaluating foo. > > But this still doesn't work! > The default formatting operation is still called. This is the correct usage -- so if it is not working

Re: [Matplotlib-users] Alter graph/labels based on zoom level

2008-10-12 Thread John Hunter
On Sun, Oct 12, 2008 at 9:01 PM, bwgoudey <[EMAIL PROTECTED]> wrote: > > Hi, > At the moment, I have a graph which has an un labelled x-axis and all i'm > drawing is a filled green rectangle every so often. I would like make it so > that when I zoom in to my graph past a certain threshold, the rec

Re: [Matplotlib-users] Change ticks font size with API

2008-10-10 Thread John Hunter
On Fri, Oct 10, 2008 at 4:17 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > I want to change the font size of x ticks labels. > The FAQ entry is only for pylab: > http://matplotlib.sourceforge.net/faq.html#TEXTOVERLAP > > I found this solution: > >for tick in ax.xaxis.get_major_ticks(

Re: [Matplotlib-users] How do I make a legend for Line2D objects in Basemap, colored using a colormap?

2008-10-09 Thread John Hunter
On Thu, Oct 9, 2008 at 2:40 PM, Zane Selvans <[EMAIL PROTECTED]> wrote: > Hmm. I'll have a look at these. Jeff Whitaker suggested them for > something else too. I too often feel like I'm just hacking my way > around in Matplotlib, without understanding how it is actually > "supposed" to be used

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 29, Issue 19

2008-10-09 Thread John Hunter
On Thu, Oct 9, 2008 at 5:12 AM, Michael <[EMAIL PROTECTED]> wrote: > I don't what is optimum, matplotlib has always been a bit hackish for > animation i think Calling cla or clf in the animation loop is probably always a bad idea, because of the flashing you have noticed. Trying to use a simple p

Re: [Matplotlib-users] Animation and imshow

2008-10-09 Thread John Hunter
On Tue, Oct 7, 2008 at 8:10 AM, Alexander Borghgraef <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how to do animated graphics in pylab using > imshow, so I made this little 'hello world' equivalent showing a > moving square over two frames. > Problem is I have to call draw twice to refresh

Re: [Matplotlib-users] Axis limits for dynamic plot.

2008-10-08 Thread John Hunter
On Wed, Oct 8, 2008 at 12:23 PM, Venkat Ramanan <[EMAIL PROTECTED]> wrote: > for i in p.arange(1,nframes): >A=2*p.sin(2*p.pi*(1/float(2*nframes))*i) >sindata=A*p.sin(x) >line.set_ydata(sindata) # update the data >p.draw() # redraw the canvas The autoscalin

Re: [Matplotlib-users] Compilation problems on Fedora Core2.

2008-10-07 Thread John Hunter
On Tue, Oct 7, 2008 at 11:32 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > This is a known problem with old versions of pygtk. > > See here: > > http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html See also this FAQ: http://matplotlib.sourceforge.net/faq.html#PYGTK24 --

Re: [Matplotlib-users] Getting resize_event to work

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 1:40 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Jon Froehlich wrote: >> Hi Eric, >> >> Thanks for the response. I am just calling show() within pylab and a GUI >> automatically pops-up. A screenshot is attached. It looks like the >> underlying GUI is TK? I am on Vista (unfo

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 11:23 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Basemap doesn't handle any GUI stuff - this is all done by matplotlib > proper. So, you'll need to look at the matplotlib docs to see how to > customize the toolbar. Mathew, To do stuff like adding menus and customizing

Re: [Matplotlib-users] apply factor to numbers on axis

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 3:52 AM, Henry Proudhon <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I wonder if there is a simple way to apply a multiplication factor to > the ticks labels of an axis. > > say I'm plotting a 100 x 100 matrix with imshow and want the axis to > show (0 to 70) instead of (0 t

Re: [Matplotlib-users] ellipse in log-log

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 7:15 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > In 0.98 ellipse is drawn using bezier curves, which do not scale > correctly in log-scaled plots. > > As an alternative, you can use a RegularPolygon with a high number of > vertices (this is exactly what 0.91 did). He

Re: [Matplotlib-users] Clear Figure

2008-10-05 Thread John Hunter
On Sun, Oct 5, 2008 at 3:50 AM, rocha <[EMAIL PROTECTED]> wrote: >>> self.canvas.figure.clf() >>> self.canvas.draw() >>> self.canvas.axes.plot([1.,2.,4.]) >>> >>> and nothing is plotted. The Figure is totally gray. I tried to do the >>> same thing in embedding_in_qt4.py example, modifying some par

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread John Hunter
On Tue, Sep 30, 2008 at 5:07 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > The problem is already well explained by Eric. And my solution is to > interpret the legend.pad as a fraction of the textsize (pad=0.3 seems > to work fine in my eyes). Note that this breaks the backward > compatibility. I

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread John Hunter
On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Good answer, but there may be one exception. The Matlab function > description indicates that it can produce eps files with the cmyk color > space, which is indeed something that publishers tend to want, and > something tha

Re: [Matplotlib-users] broken example - no module numerical_methods

2008-09-30 Thread John Hunter
On Tue, Sep 30, 2008 at 6:00 AM, Antonio Gonzalez <[EMAIL PROTECTED]> wrote: > Hello, > > Running the latest mpl (svn 6134), 'fill_between.py' from the examples > directory fails: > > File "fill_between.py", line 2, in >import matplotlib.numerical_methods as numerical_methods > ImportError: No

Re: [Matplotlib-users] imshow inconsistency from version 0.91 to 0.98

2008-09-25 Thread John Hunter
On Wed, Sep 24, 2008 at 2:16 PM, Haibao Tang <[EMAIL PROTECTED]> wrote: > for k in cm_keys: > imshow(Y, extent=(xstart, xstart+.7*col_interval, > ystart, ystart+.5*row_interval), > cmap=get_cmap(name=k)) > root.text(xstart+.75*col_interval, ystart, k, size=9) > xs

Re: [Matplotlib-users] Matplotlib rpms for RedHat, please

2008-09-25 Thread John Hunter
On Wed, Sep 24, 2008 at 9:35 PM, Dennis Newbold <[EMAIL PROTECTED]> wrote: > Hi all, > > The "Installing" page on the matplotlib website says: "You > probably don't need to compile matplotlib unless you want to or work > on an obscure platform. There are binary builds for Windows, OS X and > ma

Re: [Matplotlib-users] Multiple sub-plot goes off the top of the page

2008-09-25 Thread John Hunter
On Thu, Sep 25, 2008 at 6:34 AM, Peter Saffrey <[EMAIL PROTECTED]> wrote: > For me, the code below draws the top plot only half on the page. Can > anybody help me out? > > > > from pylab import * > > groups = [ [ 'A', 'B', 'C', 'D', 'E' ], >[ 'F', 'G', 'H', 'I' ], >

Re: [Matplotlib-users] Information request

2008-09-25 Thread John Hunter
On Thu, Sep 25, 2008 at 7:15 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > De Pauw Antoine wrote: >> Hi Jeff, >> >> I finally found out how to fill my figure with a background color using >> axes.set_axis_bgcolor(color), but I'm facing the following problem now: >> >> How could I get the lower col

Re: [Matplotlib-users] new_user matplotlib help

2008-09-25 Thread John Hunter
On Sat, Feb 9, 2008 at 11:05 AM, Jon Loehrke <[EMAIL PROTECTED]> wrote: > Sorry to bother everyone with this post. > > I am new to matplotlib and python in general and am finding a problem that I > don't understand. > > I've downloaded the scipy superpack (through easy_install) from C. > Fonnesbeck

Re: [Matplotlib-users] Newbie question - rotated XY chart

2008-09-24 Thread John Hunter
On Wed, Sep 24, 2008 at 8:04 PM, greg7201 <[EMAIL PROTECTED]> wrote: > > I am such a matplotlib newbie... but it looks very cool. > > I need to create a basic graph, EXCEPT the x axis needs to go down the page, > and the y axis is across the bottom. (The chart is to display drilling > information

Re: [Matplotlib-users] subplot within subplot

2008-09-24 Thread John Hunter
On Wed, Sep 24, 2008 at 1:21 PM, charles reid <[EMAIL PROTECTED]> wrote: > Hi - > > I haven't had any luck finding any examples of putting a subplot within a > subplot in the documentation/website/example files. Is this possible? For > example, I would want something like this: >

Re: [Matplotlib-users] Question on date plotting

2008-09-24 Thread John Hunter
On Wed, Sep 24, 2008 at 6:05 AM, Saju Pillai <[EMAIL PROTECTED]> wrote: > Hi, > > Just started playing with matplotlib and it is very impressive. > > I have a question on controlling the x-axis values being plotted. > Say I am recording a stock price every hour from say 10am to 3pm on a > daily b

Re: [Matplotlib-users] Efficiently processing large datasets

2008-09-23 Thread John Hunter
On Tue, Sep 23, 2008 at 5:56 AM, rfwatson <[EMAIL PROTECTED]> wrote: > Hello, > > I am using matplotlib in combination with QT4 as part of an audio > application I am building. Part of this involves plotting an > oscilloscope-style display (time vs intensity) for sets of raw audio data, > which I h

Re: [Matplotlib-users] How to pause prgoram from graphical screen

2008-09-23 Thread John Hunter
On Tue, Sep 23, 2008 at 9:46 AM, Roland Hauff <[EMAIL PROTECTED]> wrote: > I'm reading a serial port and plotting the acquired data using TKagg with the > plot() command. This gives me a nice graphical screen that updates as the > data arrives. What I would like to do is be able to pause the en

Re: [Matplotlib-users] building matplotib on linux

2008-09-23 Thread John Hunter
On Tue, Sep 23, 2008 at 10:28 AM, Michael Hearne <[EMAIL PROTECTED]> wrote: > I installed the freetype-devel libraries and this problem went away. > Any chance you also installed tk-devel or tcl-devel? I can't see how the addition of the freetype headers would fix a tk problem. JDH

Re: [Matplotlib-users] how to close (complitly destroy) pylab figure?

2008-09-22 Thread John Hunter
On Mon, Sep 22, 2008 at 5:19 AM, dmitrey <[EMAIL PROTECTED]> wrote: > John Hunter wrote: >> >> On Sun, Sep 21, 2008 at 3:28 PM, dmitrey <[EMAIL PROTECTED]> >> Could you be more precise about what you mean when you say it doesn't >> work? It works for me

Re: [Matplotlib-users] how to close (complitly destroy) pylab figure?

2008-09-21 Thread John Hunter
On Sun, Sep 21, 2008 at 3:28 PM, dmitrey <[EMAIL PROTECTED]> wrote: > Hi all, > how to close (complitly destroy) pylab figure? > > The feature is highly required for my module "openopt". > > I expected something like this will work but it doesn't Could you be more precise about what you mean when

Re: [Matplotlib-users] How to give a name to a figure?

2008-09-18 Thread John Hunter
On Mon, Sep 15, 2008 at 1:51 PM, Mathieu Dubois <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a (still) beginner in scipy and I have a small problem with figures. > Let me > explain. > > I have to plot a lot of huge data so I have a lot of figures. I have set > title and axes names. All the handles are

Re: [Matplotlib-users] Information request

2008-09-17 Thread John Hunter
On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <[EMAIL PROTECTED]> wrote: > Attached is a screenshot (zoom.png) from the gimp, zoomed in near the > axes border. The black horizontal line is the top axes border, the > horizontal grey line is the artifact, the vertical dashed line i

Re: [Matplotlib-users] Information request

2008-09-17 Thread John Hunter
On Wed, Sep 17, 2008 at 11:08 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > De Pauw Antoine wrote: >> Jeff, >> >> I finally managed to obtain a neat image with imshow and griddata >> >> The code snippet is here: >> http://snipplr.com/view/8307/map-plotting-python-code-temporary/ >> >> The only pro

Re: [Matplotlib-users] Information request

2008-09-17 Thread John Hunter
On Wed, Sep 17, 2008 at 3:28 AM, De Pauw Antoine <[EMAIL PROTECTED]> wrote: > The image generated is here: > http://www.kirikoo.net/images/5shrad-20080917-102544.png > > Also, I couldn't find any way to reduce the colorbar font size The colorbar method returns a matplotlib.colorbar.Colorbar insta

Re: [Matplotlib-users] OSX 10.5 event.key bug

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 9:00 PM, James Schombert <[EMAIL PROTECTED]> wrote: > I'm switching from an old graphics package (PGPLOT) to matplotlib, and I > prefer to use the graphics window to input commands (such as, a new > file name) by typing at the bottom of the frame > > so if the file name, for

Re: [Matplotlib-users] OSX 10.5 event.key bug

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 8:03 PM, James Schombert <[EMAIL PROTECTED]> wrote: > in matplotlib under 10.5 Mac OS X, if the event.key > is 'g' or 'l' then grid plotting ('g') or log plotting > ('l') is turned on > > is this a known bug? any workarounds? It's a feature, not a bug. Do you have a use ca

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 5:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote: > Hi folks, > I would like to save preliminary figures for later processing and > refinement with matplotlib. Is there a way to save or pickle a figure > object and later reload it. Matlab has a feature like that and and I wa

Re: [Matplotlib-users] plot legend behavior & question

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 4:09 PM, charles reid <[EMAIL PROTECTED]> wrote: > Hi there - > > I'm using the latest stable pylab/matplotlib (0.98.3) via OS X 10.5.4. I am > plotting a simple array of data, and I'm getting some strange behavior when > I try to add a legend to the plot. > First, the plot

Re: [Matplotlib-users] 'Inverting' a colormap (was "Next problem: pixel-to-pixel alpha variation")

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 2:40 PM, David Goldsmith <[EMAIL PROTECTED]> wrote: > --- On Tue, 9/9/08, David Goldsmith <[EMAIL PROTECTED]> wrote: > >> eventually ... I'd like to do what John implies >> is possible, i.e., "invert" a cm back to its RGB >> table - John (or anyone) can you short-cut the lea

Re: [Matplotlib-users] set font problem.

2008-09-15 Thread John Hunter
If you have 20 minutes to spare, then you can be well on your way to financial stability. 20 minutes is all it takes to listen to two short audio clips, about a revolutionary home business, that has global status. It's creating wealth and extra income for thousands around the world. Want to k

Re: [Matplotlib-users] set font problem.

2008-09-14 Thread John Hunter
On Sun, Sep 14, 2008 at 1:30 AM, sa6113 <[EMAIL PROTECTED]> wrote: > > Thanks for your help, it works, but it is very difficult because I want to > show a FontDialog contains all fonts in system to user and change the plot > text (Legend, Label and ex.) font to that. > How may I accomplish that? Is

Re: [Matplotlib-users] set font problem.

2008-09-13 Thread John Hunter
On Sat, Sep 13, 2008 at 4:35 AM, sa6113 <[EMAIL PROTECTED]> wrote: > > I want to set all font system to my texts, but I can't set all the fonts. I > am using this code: > > font= FontProperties( size='small' ,fname = 'Tahoma' ) > self.ax.legend(line, label, legend , prop =

Re: [Matplotlib-users] Fwd: WxAgg Figures not updating

2008-09-13 Thread John Hunter
On Sat, Sep 13, 2008 at 12:03 AM, Marshall Tappen <[EMAIL PROTECTED]> wrote: > I am having problems with the WxAgg backend on the Mac not updating > figures. Using this test code: > for i in xrange(250,len(x),25): > h.set_data(x[:i],y[:i]) > axis([0,6*pi,-2,2]) > draw() > time.sleep(0.5)

Re: [Matplotlib-users] legend for bar charts

2008-09-11 Thread John Hunter
On Thu, Sep 11, 2008 at 1:33 PM, Jonathon Anderson <[EMAIL PROTECTED]> wrote: > I eventually did it with > >b3l = bar(dates, b3, color='#9E73C1', width=4) >b2l = bar(dates, b2, color='#A6DE62', width=4) >b1l = bar(dates, b1, color='#F35E5A', width=4) >b0l = bar(dates, b0, color='#49

Re: [Matplotlib-users] Interactive animation

2008-09-11 Thread John Hunter
On Thu, Sep 11, 2008 at 10:51 AM, Peter Saffrey <[EMAIL PROTECTED]> wrote: > I'm trying to develop an application for interactive graph layout using > networkx and matplotlib. My idea is to use the usual spring layout, > where nodes repel each other and edges act as attractive forces between > node

Re: [Matplotlib-users] squishing a plot axis

2008-09-11 Thread John Hunter
On Thu, Sep 11, 2008 at 10:19 AM, Jonathon Anderson <[EMAIL PROTECTED]> wrote: > I've got a pretty standard "plot with a title" set up, but my title is > three lines long, and is pushed off the top of the figure by the > layout. > > How can I "squish" (rescale) the y-axis of my axes to give more ro

Re: [Matplotlib-users] Help: How to limit text to a definite area

2008-09-10 Thread John Hunter
On Wed, Sep 10, 2008 at 2:55 PM, Samir Wadhawan <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to draw a rectangle of a fixed size and them put a lable/text on > it. However if the text is too long, it goes out of bounds. Is there a way I > restrict the text within the rectangle margins. would i

Re: [Matplotlib-users] Next problem: pixel-to-pixel alpha variation

2008-09-09 Thread John Hunter
On Tue, Sep 9, 2008 at 12:40 AM, David Goldsmith <[EMAIL PROTECTED]> wrote: > Clearly (?) I can do what I'm after if I use MxNx4 data, but is that the only > way to have a varying alpha? Yep, currently that is the only way. If you start with luminance, you can use the colormapping code to gener

Re: [Matplotlib-users] subplots_adjust -- what am I doing wrong?

2008-09-09 Thread John Hunter
On Tue, Sep 9, 2008 at 7:12 AM, Adam <[EMAIL PROTECTED]> wrote: > This gets rid of the blank space, but at the expense of the aspect ratio, as > you mention. Isn't there away to preserve the aspect ratios of the > individual > sub-images, and just remove the white space between them? I really to

Re: [Matplotlib-users] subplots_adjust -- what am I doing wrong?

2008-09-09 Thread John Hunter
On Tue, Sep 9, 2008 at 6:26 AM, Adam <[EMAIL PROTECTED]> wrote: > I thought the desired result could be achieved by the following code, but > there is > still blank space (in the vertical-direction) between the subplots: By default, matplotlib will resize your axes to preserve the aspect ratio of

Re: [Matplotlib-users] Buggy 2D plot with ylim and large y values

2008-09-03 Thread John Hunter
On Wed, Sep 3, 2008 at 4:25 AM, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > Removing the call to ylim is not an acceptable solution, because this > is just a part (the problematic part) of the data I am trying to plot > (most of which fits within the ylimits). The problem also persists > when z

Re: [Matplotlib-users] axis and zoom

2008-09-02 Thread John Hunter
On Tue, Sep 2, 2008 at 5:04 AM, bernardo martins rocha <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I have some questions: > > 1. How can I zoom in the horizontal axis and maintain the vertical axis > unchanged with the zoom tool provided by matplotlib? Hold down the 'x' key while zooming to constrai

Re: [Matplotlib-users] Agent Problem

2008-09-01 Thread John Hunter
On Mon, Sep 1, 2008 at 4:37 AM, Lotfi Benz <[EMAIL PROTECTED]> wrote: > I am using matplotlib since three months, every thing was fine untill today > I have got this error message which is strange and I could not figure out > what it means. > here I paste the error message I got. > """ > Another ag

Re: [Matplotlib-users] Pixel numbers should be formated as integers

2008-08-30 Thread John Hunter
On Sat, Aug 30, 2008 at 4:13 PM, Xavier Gnata <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the TkAgg backend. It is nice and fine except one issue: > > Here is a trivial testcase: > > import pylab > import numpy > > M=numpy.zeros((2000,2000)) > pylab.imshow(M) > > The cursor position is displayed

Re: [Matplotlib-users] Trouble with scatter and legend

2008-08-28 Thread John Hunter
On Thu, Aug 28, 2008 at 1:34 PM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Please find attached the output (test.png). > The order of the legend entries is wrong. Am I missing > something ? OK, now I see your point. auto-legending doesn't respect the order of the plots across different artist ty

Re: [Matplotlib-users] Trouble with scatter and legend

2008-08-28 Thread John Hunter
On Thu, Aug 28, 2008 at 12:14 PM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Hi all, > > I am wondering if I can use scatter in connection with legend > (attached test for details). I am using the latest svn version. Your example works for me -- we recently added support for autolegending of scatter

Re: [Matplotlib-users] ylim does not work

2008-08-25 Thread John Hunter
On Fri, Aug 15, 2008 at 10:39 AM, CliftonH <[EMAIL PROTECTED]> wrote: > I'm plotting data that I get out of a database, which works fine. The only > thing that doesn't work, although it works with any other simple plot, is > the xlim()- and ylim()-function. > ylim(-9,13) > xlim(-2,25) > axhline(c

Re: [Matplotlib-users] Automatic margins

2008-08-13 Thread John Hunter
On Wed, Aug 13, 2008 at 12:40 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Mathieu Leplatre wrote: >> Is there a way to automatically guess margins according to chart content ? > > There is nothing like that built into mpl. It is not an easy thing to > do in general--that is, for an arbitrary set

Re: [Matplotlib-users] MPL 0.91.2: bottom of xlabel chopped off

2008-08-12 Thread John Hunter
On Tue, Aug 12, 2008 at 10:13 PM, Warren Weckesser <[EMAIL PROTECTED]> wrote: > I am using matplotlib version 0.91.2. When I use savefig to create a plot > in which the xlabel text has any kind of "descender" (e.g. "$x_1$", or even > simply a "j"), the lower part of the label is chopped off by the

Re: [Matplotlib-users] Trouble in PNG file [cgi]

2008-08-12 Thread John Hunter
On Tue, Aug 12, 2008 at 5:16 AM, Zainal Abidin <[EMAIL PROTECTED]> wrote: > I have a trouble when displat a PNG file which generated from matplotlib > here is the script from > http://www.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script > there is no image in the web browser, is there

Re: [Matplotlib-users] Figure existence test

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 4:24 PM, nobody <[EMAIL PROTECTED]> wrote: > > Bump... Does no-one have a solution for this? Sorry for not answering. There is no elegant way to do this so we should add support. In the meantime, the following hack should work >>> figs = [manager.canvas.figure for m

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 3:51 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: >> Is there a guide to translating code from the old to new Transforms >> structure? > Yes, in the API_CHANGES file, in the source distribution. (I'd link to > SVN, but it seems Sourceforge'

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 3:51 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: >> Is there a guide to translating code from the old to new Transforms >> structure? > Yes, in the API_CHANGES file, in the source distribution. (I'd link to > SVN, but it seems Sourceforge'

Re: [Matplotlib-users] ticks & labels

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 1:45 PM, Jeffrey Fogel <[EMAIL PROTECTED]> wrote: > The two things I have been unable to figure out are how to add a major > tick at all of the other magnitudes (those without a label) and how to > change the format of the labels so that only the exponent is showing. > I'm

Re: [Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 8:31 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Have you checked out the pylab examples? For me, they are the best way > to learn how to use matplotlib effectively. In particular: [EMAIL PROTECTED]:examples> find . -name "*.py"|xargs grep -il colorbar ./animation/dyn

Re: [Matplotlib-users] Scaling axes not data?

2008-08-10 Thread John Hunter
On Sun, Aug 10, 2008 at 8:06 AM, Boris Barbour <[EMAIL PROTECTED]> wrote: > > Hi, > > I have lots of data acquired via analogue to digital conversion. The data is > consequently represented as integers (often 16 bit resolution). To obtain the > correct signal and plot it, these data must of course

Re: [Matplotlib-users] Installation woes: phantom Numpy version?

2008-08-06 Thread John Hunter
On Wed, Aug 6, 2008 at 5:02 PM, Richard Lawrence <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello everyone, > > I've had a heck of a time trying to install matplotlib. I've tried > installing both from svn and from the pre-built 0.98.3 egg with no > success.

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread John Hunter
On Wed, Aug 6, 2008 at 1:28 PM, peter websdell <[EMAIL PROTECTED]> wrote: > No michael, that is what I was suggesting. Shame it doesn't work. > > I'm looking at using Enthoughts Chaco to do it. It's takes a bit more to get > it doing what I want though, and I don't know if it does alpha transparenc

Re: [Matplotlib-users] Feature Request: RectangleSelector BlockingInput

2008-08-05 Thread John Hunter
On Tue, Aug 5, 2008 at 6:26 PM, Elfnor <[EMAIL PROTECTED]> wrote: > This would be really useful for implementing a user image crop function, > similar to matlab's imcrop for example. David, since you are a recent matlab user and are deeply versed in the blocking code: how hard would it be to simp

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread John Hunter
On Tue, Aug 5, 2008 at 7:03 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Matlab ignores it, same as with a nan. Although intuitively I think of inf as very different from nan, my default is to go with matlab like behavior in the absence of compelling a argument otherwise. I won't be providing th

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread John Hunter
On Tue, Aug 5, 2008 at 3:46 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > But if I replace the Inf by a nan: y[2] = np.nan, then it plots fine. > > I know, I know, I can do this with masked arrays, but it cannot be that hard > to make this work correctly, and wouldn't that be much nicer? Desirable?

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-08-04 Thread John Hunter
On Sun, Aug 3, 2008 at 1:19 PM, Charlie Moad <[EMAIL PROTECTED]> wrote: > I was going to wait on John about the docs, but I went ahead and cut the > 0.98.3 release. The sdist including the docs was 34MB, so I decided not to > include them. This would also cause the binaries to be huge if we incl

Re: [Matplotlib-users] Using Hex number with shape syntax

2008-08-04 Thread John Hunter
On Mon, Aug 4, 2008 at 4:48 AM, Manuel Metz <[EMAIL PROTECTED]> wrote: > Use the named kwarg "linestyle": > > plot(Time, Value, '#330066', linestyle='.') I think you meant marker, since the '.' represents a marker rather than a linestyle plot(Time, Value, color='#330066', marker='.') JDH -

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward, http://JonathansCorner.com <[EMAIL PROTECTED]> wrote: > I emerged 0.91.2 through my distribution's packaging system. Do I need to > compile the newest version from source or something like that? > The 0.98.3 release will be out very soon -- just k

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > It seems to have broken with a recent update to Sphinx. Sphinx changed the > way that cross-reference urls are stored in the document tree. I have > updated matplotlib to use an approach that work for Sphinx both bef

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 1:40 PM, Sandro Tosi <[EMAIL PROTECTED]> wrote: > The doc compilation is fine, the show-inheritance is fixed, but just a > confirmation: what was the page with the "clickable" image? I seem to > remember 'api/artist_api.html' but now the image in it doesn't allow > to be "b

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Tue, Jul 29, 2008 at 1:12 PM, John Hunter <[EMAIL PROTECTED]> wrote: > We are in the final stages of preparing a new matplotlib release, and > a lot of work has gone into it. If you would like to test the release > and see if it is working for you, that would be a big

Re: [Matplotlib-users] Navigation toolbar w/o subplot configuration button

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 8:18 AM, Ben Axelrod <[EMAIL PROTECTED]> wrote: > Yes. I did this by deriving my toolbar class from the default > NavigationToolbar2WxAgg. Then deleting the buttons I did not want. I had to > delete by position, because I did not know their IDs. (Does anyone know how

Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-07-30 Thread John Hunter
On Wed, Jul 30, 2008 at 9:17 AM, stuartornum <[EMAIL PROTECTED]> wrote: > > Hi, > > Wondering if anyone has done something similar and could point me in the > right direction. > > I have a dictionary like this: > > Dict{'00:00:00':'23', '00:01:00':'29', '00:02:00':'13', '00:03:00':'78', > '00:04:00

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-29 Thread John Hunter
On Tue, Jul 29, 2008 at 1:12 PM, John Hunter <[EMAIL PROTECTED]> wrote: > We are in the final stages of preparing a new matplotlib release, and > a lot of work has gone into it. If you would like to test the release > and see if it is working for you, that would be a big

Re: [Matplotlib-users] imshow update norm make my app crash.

2008-07-29 Thread John Hunter
On Tue, Jul 29, 2008 at 6:52 PM, Laurent Dufrechou <[EMAIL PROTECTED]> wrote: > I've applied the idea you've said later about colormap. > > Now I would like on an event to refresh my view so I've written this code: I would like to see what self.low_clutter_val = self.clutter_low.GetPosi

Re: [Matplotlib-users] Waterfall Plot?

2008-07-29 Thread John Hunter
On Tue, Jul 29, 2008 at 1:48 PM, Travis Ruthenburg <[EMAIL PROTECTED]> wrote: > I'm new to matplotlib and was hoping someone could point me in the > right direction for making a waterfall plot, similar to MATLAB's > 'waterfall'. > > I'd like to plot a series of 2-D spectra staggered by time. The s

Re: [Matplotlib-users] bar plot picker with 0 height data

2008-07-29 Thread John Hunter
On Tue, Jul 29, 2008 at 1:20 PM, Ben Axelrod <[EMAIL PROTECTED]> wrote: > Thanks for the bug fix. Do you think this fix will make it into the 0.98.3 > release? it will. - This SF.Net email is sponsored by the Moblin Your Mo

[Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-29 Thread John Hunter
We are in the final stages of preparing a new matplotlib release, and a lot of work has gone into it. If you would like to test the release and see if it is working for you, that would be a big help http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc2.tar.gz Unfortunately, we do not have

Re: [Matplotlib-users] bar plot picker with 0 height data

2008-07-29 Thread John Hunter
On Tue, Jul 29, 2008 at 12:27 PM, Ben Axelrod <[EMAIL PROTECTED]> wrote: > I get an exception when I set up a bar chart with a picker that has a bar > with 0 height, and I click on the chart. Thanks for the report -- I just committed a fix for this to svn r5922 JDH --

Re: [Matplotlib-users] text picker

2008-07-29 Thread John Hunter
On Tue, Jul 29, 2008 at 10:55 AM, Ben Axelrod <[EMAIL PROTECTED]> wrote: > Text picking does not seem to work for me anymore since I upgraded from > 0.91.4 to 0.98.1. This is fixed in matplotlib svn and will be out in the next release. -

Re: [Matplotlib-users] An updated matplotlib user's guide

2008-07-28 Thread John Hunter
On Mon, Jul 28, 2008 at 12:40 PM, eliben <[EMAIL PROTECTED]> wrote: > > Is it only me or is the user's guide linked to from > http://matplotlib.sourceforge.net/ > (http://matplotlib.sourceforge.net/users_guide_0.98.1.pdf) quite old ? The > new user's guide seems to be available from > http://matplo

Re: [Matplotlib-users] plot() hangs up, how to rescue Python?

2008-07-26 Thread John Hunter
On Sat, Jul 26, 2008 at 5:46 PM, Anand Patil <[EMAIL PROTECTED]> wrote: > Well, I lost it... whatever was hung up apparently gave up and killed Python > when I shut down my local machine. It would still be nice to know how to fix > this though, in case it happens again... Sorry this happened -- I

Re: [Matplotlib-users] Histogram question

2008-07-26 Thread John Hunter
On Sat, Jul 26, 2008 at 3:47 PM, aditya shukla <[EMAIL PROTECTED]> wrote: > I am trying to plot a histogram of some values in an array: > eg:- > input_hist=[0.5,0.5,0.66,0.83,0.92,0.92,0.93,0.97,0.98,0.98,0.98,0.99] > after issuing the pylab.hist(input_hist) statement these are the return > values

Re: [Matplotlib-users] Problem plotting interactively from PyCrust

2008-07-26 Thread John Hunter
On Sat, Jul 26, 2008 at 12:55 PM, eliben <[EMAIL PROTECTED]> wrote: > Yes, WXAgg works. > What is the difference between WXAgg and WX backends ? I couldn't find any > real documentation on the subject and I would really like to know. Can WX do > something WXAgg can't ? WXAgg is the full featured

Re: [Matplotlib-users] Problem plotting interactively from PyCrust

2008-07-26 Thread John Hunter
On Sat, Jul 26, 2008 at 3:33 AM, eliben <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm running the latest matplotlib (and wxPython) with Python 2.5.2 on Win > XP. Everything works fine, the plotting quality is excellent, and > interactive plotting works nicely with IPython. > > However, I much prefe

Re: [Matplotlib-users] Help with converting from scilab

2008-07-25 Thread John Hunter
On Fri, Jul 25, 2008 at 10:22 AM, Peter Wesbdell <[EMAIL PROTECTED]> wrote: > Hello all, my first post here. > > I am moving from using scilab to Pylab, can anyone tell me why the two > following snippets of code produce very different results? BTW. The scilab > code produces the expected result.

Re: [Matplotlib-users] NaN bugs

2008-07-25 Thread John Hunter
On Fri, Jul 25, 2008 at 10:08 AM, Ben Axelrod <[EMAIL PROTECTED]> wrote: > I have noticed 2 bugs having to do with NaN handling in the scatter() I believe this is fixed in svn (0.98 branch) -- I tested your first example and it behaved as expected. I f you have a build environment, please test th

Re: [Matplotlib-users] Tick marks around bar chart

2008-07-24 Thread John Hunter
On Thu, Jul 24, 2008 at 11:53 AM, Jonathan Hayward http://JonathansCorner.com <[EMAIL PROTECTED]> wrote: > How do I control and/or remove the black tick marks on a bar chart? I've > turned off most of the other black material on boundaries, but these ones > are still there (see attached image). Yo

Re: [Matplotlib-users] Border appearance

2008-07-24 Thread John Hunter
On Thu, Jul 24, 2008 at 10:22 AM, Jonathan Hayward http://JonathansCorner.com > I'm looking at the tutorial ; I'd welcome suggestions or clarifications > about what I should be reading. The tutorial is a good start, as is the user's guide http://matplotlib.sourceforge.net/users_guide_0.98.1.pdf

Re: [Matplotlib-users] Scaling--I couldn't find it, but should this be in FAQ list?

2008-07-23 Thread John Hunter
On Wed, Jul 23, 2008 at 9:06 AM, Jonathan Hayward http://JonathansCorner.com >> fig = figure((8,6), dpi=100) # 800x600 > > When I tried placing that line in a couple of places, I got an error: Sorry, my fault, you need the keyword argument figsize: In [1]: import matplotlib.pyplot as plt In [

Re: [Matplotlib-users] Border appearance

2008-07-22 Thread John Hunter
On Tue, Jul 22, 2008 at 4:28 PM, Jonathan Hayward http://JonathansCorner.com <[EMAIL PROTECTED]> wrote: > On the two routines I'm modifying from examples, boundaries and borders are > generally a hefty black. > > How can I control color and/or thickness and/or turn off items like > boundaries that

<    4   5   6   7   8   9   10   11   12   13   >