Re: [Matplotlib-users] Python 2.6

2008-11-08 Thread John Hunter
On Sat, Nov 8, 2008 at 6:10 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > My original patch does not work for this case, because the figimage is > drawn by Figure.draw() not by Axes.draw() method. > I'm attaching a new patch where I applied the same correction to the > Figure.draw(). > I tested Gt

Re: [Matplotlib-users] Python 2.6

2008-11-08 Thread John Hunter
On Sat, Nov 8, 2008 at 5:45 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > I think the problem is caused by the image compositing logic in the > Axes.draw() method. > It currently makes a composite image first and then flip the resulting > image if necessary. > But I think what should happen is to

Re: [Matplotlib-users] Python 2.6

2008-11-09 Thread John Hunter
On Sat, Nov 8, 2008 at 10:39 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > John, > I'm attaching an another patch, which seems to give a correct result > for the figimage_demo. > The flipud_out() calls before compositing seems to have no effect, so Ahh, I think you found the ultimate source of our

Re: [Matplotlib-users] Matplotlib with native OSX port of GTK

2008-11-11 Thread John Hunter
On Mon, Nov 10, 2008 at 6:00 AM, Marcus Vinicius Eiffle Duarte <[EMAIL PROTECTED]> wrote: > So, all the libraries and headers are installed in the default > folders. However, when I try to build matplotlib I get the following > error: > In file included from src/backend_gdk.c:9: > /usr/include/py

Re: [Matplotlib-users] Save a plot background

2008-11-16 Thread John Hunter
On Sat, Nov 15, 2008 at 3:23 PM, Hrafnkell Pálsson <[EMAIL PROTECTED]> wrote: > > Hi > I haven't managed to save a plot background into buffer to be able to > restore it later. > I use matplotlib to draw weather maps (see www.belgingur.is), and though the > weather constantly changes the outlines o

Re: [Matplotlib-users] Twin axes share Formatters, but not ticks

2008-11-16 Thread John Hunter
On Sun, Nov 16, 2008 at 8:31 PM, Joshua J. Kugler <[EMAIL PROTECTED]> wrote: > In opening: Thank you very much to Stan West and John Hunter for their > help so far. > > OK, I've hit either a genuine bug in Matplotlib, or a serious gap in my > understanding; probabl

Re: [Matplotlib-users] More info: Re: Twin axes share Formatters, but not ticks

2008-11-16 Thread John Hunter
On Sun, Nov 16, 2008 at 8:38 PM, Joshua J. Kugler <[EMAIL PROTECTED]> wrote: > I am leaning toward this being a true bug. If you take a look at > attached plot (the code for which is where I first noticed this bug), > you'll notice that the dates on the top graph (the one with two axis) > look a l

Re: [Matplotlib-users] Set Ellipse Linestyle

2008-11-16 Thread John Hunter
On Sun, Nov 16, 2008 at 8:32 PM, B Clowers <[EMAIL PROTECTED]> wrote: > I've been trying to set the linestyle of an ellipse with no success. I keep > getting an attribute error whether I try setting the property via accessing > the ellipse instance directly or through the artist. Any ideas? > > -

Re: [Matplotlib-users] More info: Re: Twin axes share Formatters, but not ticks

2008-11-16 Thread John Hunter
On Sun, Nov 16, 2008 at 9:26 PM, Joshua J. Kugler <[EMAIL PROTECTED]> wrote: >> w/o seeing the code that generated the figure it is hard to know, but >> the "bold look" probably arises from rendering the same tick labels >> twice in the same location, eg if you have a twinx, as it appears you >> d

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread John Hunter
On Mon, Nov 17, 2008 at 8:05 AM, Hrafnkell Pálsson <[EMAIL PROTECTED]> wrote: > > Hi > > I tried you suggestions but it didn't work out for me. > In the following code I try to save the axes and the grid from figure1 into > buffer and then restore it on figure2 but figure2.png turns out to be of an

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread John Hunter
On Mon, Nov 17, 2008 at 1:50 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > I think the savefig() command calls draw() internally, doesn't it? Ahh yes. The copy_from_bbox / restore_region was conceived as an aid to animation and I don't think I've used it in the context of savefig where none of th

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread John Hunter
On Mon, Nov 17, 2008 at 8:05 AM, Hrafnkell Pálsson <[EMAIL PROTECTED]> wrote: > > Hi > > I tried you suggestions but it didn't work out for me. > In the following code I try to save the axes and the grid from figure1 into > buffer and then restore it on figure2 but figure2.png turns out to be of an

Re: [Matplotlib-users] API_CHANGES & MIGRATION.txt

2008-11-18 Thread John Hunter
On Tue, Nov 18, 2008 at 3:41 AM, Benjamin Bardiaux <[EMAIL PROTECTED]> wrote: > Dear matplotlib users, > > I'l looking for the files > > http://matplotlib.sf.net/API_CHANGES > http://matplotlib.sourceforge.net/MIGRATION.txt > > that seem to have disappear from the new sf website. Thanks -- I've re

Re: [Matplotlib-users] Axis lines crossing in them middle of the plot

2008-11-18 Thread John Hunter
On Tue, Nov 18, 2008 at 4:25 AM, Mike Hansen <[EMAIL PROTECTED]> wrote: > What would you recommend as the best way going about this? I'm > willing to put some work in on this. There was someone back in July > who posted some code moving in this direction, but it didn't feel like > it was the rig

Re: [Matplotlib-users] Save a plot background

2008-11-18 Thread John Hunter
On Tue, Nov 18, 2008 at 9:41 AM, Hrafnkell Pálsson <[EMAIL PROTECTED]> wrote: > > Ok, I tried your last suggestion and sure enough it worked. > But it turns out to solve only half of my problem. I'd like to be able to > restore the background (using the Agg backend) and then use it further, i.e. >

Re: [Matplotlib-users] API_CHANGES & MIGRATION.txt

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 8:46 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > I have converted API_CHANGES to "reST-light", meaning most of the older > notes are just literal text blocks. Excellent, thanks. > MIGRATION.txt is mostly out of date (particularly the part about 0.98.x > being "blee

Re: [Matplotlib-users] Can't create graphs

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 1:22 PM, Goyo <[EMAIL PROTECTED]> wrote: > Make sure yu're using a backend with a user interface. > > http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend Also, you can get more verbose input at runtime with the --verbose-helpful flag: > python histo

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 3:06 PM, Katie Thomas <[EMAIL PROTECTED]> wrote: > Oh, I figured it out. It's not there. How do I reinstall the X11 dev I have some notes on how to install on OS X that covers this -- see http://ipython.scipy.org/moin/Py4Science/InstallationOSX The explanation on the

Re: [Matplotlib-users] Embedding Basemap in a wx app

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote: > Greetings. Trying to develop a desktop application for interactive > mapping using wxPython and Matplotlib, I have been doing some > experiments with embedding maps generated by the Basemap module into a > wxPython fram

Re: [Matplotlib-users] Installation problem

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 3:56 AM, domenico09 <[EMAIL PROTECTED]> wrote: > > I got the same problem on my portable(windowx XP) but not on my desk > top(windows XP) ! > I reinstalled python, numpy and matplotlib either from internet and from my > desk top (where things works well) but I got the same

Re: [Matplotlib-users] Scatter is slow to render many points

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 8:56 AM, Gregory Desvignes <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm using matplotlib inside the backend_gtkagg with the scatter function > to draw a simple graph with 2 to 4 points. The points may have > only 2 differents sizes and 4 differents color depending

Re: [Matplotlib-users] Embedding Basemap in a wx app

2008-11-19 Thread John Hunter
t; Thank you very much for your help. I would like to donate the working > example source code (attached) to the Matplotlib examples section, > just in case it may be helpful to someone else. > > I intend to provide a more sophisticated exemple soon. > > With warmest regards,

Re: [Matplotlib-users] general matplotlib usage questions

2008-11-20 Thread John Hunter
On Thu, Nov 20, 2008 at 7:12 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > You can use the subplot_adjust button on the toolbar for some degree of > customization. But in general, it can be a somewhat time consuming to get > the layout just right. I think it would be difficult for mpl to determine

Re: [Matplotlib-users] Hiding a subplot

2008-11-20 Thread John Hunter
On Thu, Nov 20, 2008 at 8:06 AM, Søren Nielsen <[EMAIL PROTECTED]> wrote: > Hi, > > I have a canvas with two subplot.. I want to be able to hide on of the > subplots by pushing a button and letting the remaining subplot fill the > entire canvas. > > If I use the set_visible(True) parameter I correc

Re: [Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread John Hunter
On Thu, Nov 20, 2008 at 10:24 AM, Joshua Lippai <[EMAIL PROTECTED]> wrote: > Hey, > > I'm working on a project for which I would like to dump data into a > file in a specified directory (that doesn't necessarily exist yet). I > know matplotlib.mlab.save(fname, X) will only work if I want to save >

Re: [Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread John Hunter
On Thu, Nov 20, 2008 at 11:22 AM, Christopher Barker <[EMAIL PROTECTED]> wrote: > Joshua Lippai wrote: >> Now that just leaves creating the directory. I like >> the cbook.mkdirs implementation a lot better than the non-recursive >> version in os... thanks for the tip! > > why not os.makedirs() ?

Re: [Matplotlib-users] wx backup show figure (WAS: general matplotlib usage questions)

2008-11-20 Thread John Hunter
On Thu, Nov 20, 2008 at 1:29 PM, Robin <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 5:22 PM, Christopher Barker >> try wxPython -- it's easy to install and works well. > > Thanks - it does seem nicer (doesn't have the mouse over resizing)... > > However I have one problem where a figure I c

Re: [Matplotlib-users] wx backup show figure (WAS: general matplotlib usage questions)

2008-11-20 Thread John Hunter
On Thu, Nov 20, 2008 at 1:29 PM, Robin <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 5:22 PM, Christopher Barker >> try wxPython -- it's easy to install and works well. > > Thanks - it does seem nicer (doesn't have the mouse over resizing)... > > However I have one problem where a figure I c

Re: [Matplotlib-users] poly_between and time series data

2008-11-21 Thread John Hunter
On Thu, Nov 20, 2008 at 10:09 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Shailesh Kochhar wrote: >> Hello, >> >> I am trying to fill the space below a curve where my x-axis is indexed >> by time. The matplotlib api documentation and the examples don't touch >> on this subject and I haven't had mu

Re: [Matplotlib-users] Moving a patch with the mouse

2008-11-21 Thread John Hunter
On Fri, Nov 21, 2008 at 3:31 AM, Søren Nielsen <[EMAIL PROTECTED]> wrote: > Is it possible to change say the centre point of a circle patch and do a > redraw? (couldn't find a function in the documentation) or do I have to > remove the old patch and plot a new one. I want to bind mouse movement to

Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-21 Thread John Hunter
On Fri, Nov 21, 2008 at 2:45 AM, Simon Kammerer <[EMAIL PROTECTED]> wrote: > After looking at the source of matplotlib.colors, it seems to me that > different alpha values are something Colormap is not designed for. Yes, it looks like the colormap only holds the RGB channels, but it also looks fa

Re: [Matplotlib-users] plotting labels for each 'artist' in a basemap

2008-11-21 Thread John Hunter
On Thu, Nov 13, 2008 at 10:38 PM, John [H2O] <[EMAIL PROTECTED]> wrote: > > Hello, using matplotlib 0.98 with mpl_toolkit Basemap: > > I'm trying to create a plot with a series of ellipses over a map. I've > followed the tutorial, and can create the same figure as shown here: > http://matplotlib.so

Re: [Matplotlib-users] plotting labels for each 'artist' in a basemap

2008-11-21 Thread John Hunter
On Fri, Nov 21, 2008 at 10:37 AM, Eric Bruning <[EMAIL PROTECTED]> wrote: >> Can you post a complete, free-standing example script which replicates >> the problem > > import matplotlib.pyplot as plt > f=plt.figure() > ax=f.add_subplot(111) > ax.plot(range(10)) > ax.text(-10, 5, 'this one is ok') >

Re: [Matplotlib-users] Any news on wxMPL ?

2008-11-21 Thread John Hunter
On Fri, Nov 21, 2008 at 11:38 AM, Christopher Barker <[EMAIL PROTECTED]> wrote: > massimo sandal wrote: >> I tried to wrote to Ken McIvor (wxmpl author) about this but received no >> answer. > > How long has it been -- he could be on vacation or something. > >> - If wxmpl has been abandoned by its

Re: [Matplotlib-users] plotting labels for each 'artist' in a basemap

2008-11-21 Thread John Hunter
On Fri, Nov 21, 2008 at 12:26 PM, Eric Bruning <[EMAIL PROTECTED]> wrote: > My preference would be to see the error rather than mysteriously not > see text. The latter would be more frustrating to debug - hard to > track down. A scientific user should probably know that he's > overextending the fl

Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-23 Thread John Hunter
On Sun, Nov 23, 2008 at 2:01 AM, Paul Ivanov <[EMAIL PROTECTED]> wrote: > I took a stab at it, how does this look? > > I also took the liberty of adding alpha to LinearSegmentedColormap and > updated its docstring changing two somewhat ambiguous uses of the word > 'entry' with 'key' and 'value'. H

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread John Hunter
On Sat, Nov 22, 2008 at 6:46 PM, Angus McMorland <[EMAIL PROTECTED]> wrote: > 2008/11/22 Zane Selvans <[EMAIL PROTECTED]>: >> Does anybody know of an easy way to take two intersecting curves, A(x) and >> B(x), and fill the areas between them only when A(x) < B(x) and not when >> A(x) > B(x)? > > Lo

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread John Hunter
On Sun, Nov 23, 2008 at 1:26 PM, John Hunter <[EMAIL PROTECTED]> wrote: > http://matplotlib.sourceforge.net/examples/api/fill_where_demo.html > > The code is much simpler than the fill_between_posneg original > example, which I have just removed from svn. The fill between

Re: [Matplotlib-users] Problems with, LaTeX symbols, axes rescaling

2008-11-24 Thread John Hunter
On Mon, Nov 24, 2008 at 6:23 PM, Zane Selvans <[EMAIL PROTECTED]> wrote: > whether it's just the fact that I'm using the SVN code. > The first thing I noticed is that all of the LaTeX symbols I have in my > plots are now messed up. I could see this being a font issue... does anyone > know how/whe

Re: [Matplotlib-users] Problems with, LaTeX symbols, axes rescaling

2008-11-24 Thread John Hunter
On Mon, Nov 24, 2008 at 8:37 PM, Zane Selvans <[EMAIL PROTECTED]> wrote: > > On Nov 24, 2008, at 5:23 PM, John Hunter wrote: > > The first thing I noticed is that all of the LaTeX symbols I have in my > > plots are now messed up. I could see this being a font issue... d

Re: [Matplotlib-users] polar

2008-11-25 Thread John Hunter
On Tue, Nov 25, 2008 at 2:40 PM, Drain, Theodore R <[EMAIL PROTECTED]> wrote: > Michael, > I think the issue is that there is no Unicode in the script that was attached > - it's just a simple polar call so the user isn't really Unicode". > > I think Unicode is starting to creep into the source in

Re: [Matplotlib-users] polar

2008-11-25 Thread John Hunter
On Tue, Nov 25, 2008 at 3:16 PM, John Hunter <[EMAIL PROTECTED]> wrote: > If the unicode minus is sufficiently problematic for you, I can add an > rc param. Something like > > axis.unicode_minus : True Added as rc param 'axes.unicode_minus' in svn r64

Re: [Matplotlib-users] plotting a matplotlib.lines.Line2D instance directly

2008-11-29 Thread John Hunter
On Sat, Nov 29, 2008 at 6:48 AM, TP <[EMAIL PROTECTED]> wrote: > Hi everybody, > > In my own application, I want to specialize matplotlib.lines.Line2D to be > able to deal with units. > Concerning this class, is there a direct means to plot instances? > > For example, if I do: > a=matplotlib.l

Re: [Matplotlib-users] Plotting a list of lines

2008-11-29 Thread John Hunter
On Thu, Nov 27, 2008 at 11:21 AM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote: > Then, in a checkbox event, I do the following: > > index = event.GetSelection() > plot = self.plot_list[index] > if self.FileList.IsChecked(index): > plot[0].set_visible(True) > else: > plot[0].set_visible(

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 9:17 AM, Nate <[EMAIL PROTECTED]> wrote: > Is there a way to plot lines with drop shadows? > Nothing built-in -- but you can fake it:: import matplotlib.pyplot as plt import numpy as np t = np.arange(0.0, 2.0, 0.01) s = np.sin(2*np.pi*t) fig = plt.figu

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 1:08 PM, Eric Emsellem <[EMAIL PROTECTED]> wrote: > Hi > > this may be a known problem (didn't find anything on this issue) but here it > is: > > - when I start a session with "ipython -pylab" I often get crashes with my > session. When I mean "often", it means really often

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 2:43 PM, twentypoundtrout <[EMAIL PROTECTED]> wrote: > So there is no way to say plot a line. Grab that image. Apply a standard > SVG filter (like Gaussian). And overlay the blur? I do not know the PIL > well enough to know if this is feasible. You can do this using an e

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 3:40 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > I appreciate the work you're doing on this, and while I don't have any > very strong opinions on the API questions you raise, I would request > that you include in the docstrings information at least at the level of > the ab

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread John Hunter
On Tue, Dec 2, 2008 at 12:09 PM, Eric Emsellem <[EMAIL PROTECTED]> wrote: > Really annoying but as mentioned before, I cannot get a set of commands which > consistenly break the session, so... Since there does not appear to be an easy diagnosis or fix, you may want to consider switching your back

Re: [Matplotlib-users] unexpected keyword argument error while running legend_demo3.py

2008-12-03 Thread John Hunter
On Wed, Dec 3, 2008 at 9:15 AM, Nitin Bhide <[EMAIL PROTECTED]> wrote: > Hi, > > I am getting following error while running the 'legend_demo3.py' from the > examples. > > exec codeObject in __main__.__dict__ > File "D:\nitinb\SoftwareSources\SVNPlot\legendtest.py", line 13, in >ax1.legend(lo

Re: [Matplotlib-users] Matplotlib and Python 3

2008-12-04 Thread John Hunter
On Thu, Dec 4, 2008 at 8:42 PM, David Cournapeau <[EMAIL PROTECTED]> wrote: >> Quick question. Is matplotlib python 3 compatible? Has anyone switched to >> python >> 3? Anecdotally, how much of a pain is it to switch over, if you use common >> scientific libraries such as PIL and VTK? >> > > matp

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 9:10 AM, Fago, Matt - AES <[EMAIL PROTECTED]> wrote: > > So what is to be done here? It seems to me that at least the factor of two > should be > fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab > documented. Ideally, I'd think this normalization w

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 10:56 AM, Ryan May <[EMAIL PROTECTED]> wrote: > My only other concern is whether this belongs in 0.98.x. This is a behavior > change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. > on whether this should go in 0.98.x or go in a later release. It's a j

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 12:45 PM, Chad Kidder <[EMAIL PROTECTED]> wrote: > I've got many series of data that I want to plot, and each has an > additional scalar that is valid for the whole series. What I want to > do is plot all these series on top of each other (plot can do this > just fine), but

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 1:25 PM, Chad Kidder <[EMAIL PROTECTED]> wrote: --- > Instead of getting a grayscale plot out, I'd like to use a colormap > like jet() or winter(). Any ideas there? How about? import matplotlib.cm as cm for ii in range(nlines): color = cm.jet(z[i

[Matplotlib-users] fancy patch formatting breaking tex document

2008-12-08 Thread John Hunter
In the Curve class of patches.py, where we are doing: _style_list["-"] = Curve and interpolating this into a rest table via patches._pprint_styles, which looks like this:: == = Class Name Attrs ==

Re: [Matplotlib-users] MPL colors

2008-12-09 Thread John Hunter
On Tue, Dec 9, 2008 at 1:01 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote: > Dear ALL, > > MPL accepts several formats for passing color information for the > plotting methods (plot, xlabel, ylabel, etc.) and these are well > documented. The set_color() and other methods in > matplotlib.Lines.Line

[Matplotlib-users] ANN: matplotlib-0.98.4

2008-12-10 Thread John Hunter
We have just released a new version of matplotlib, available for download at https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646146 These "what's new" release notes, with graphs and links, are available in html at http://matplotlib.sourceforge.net/use

Re: [Matplotlib-users] Anyone see this after upgrading?

2008-12-10 Thread John Hunter
On Wed, Dec 10, 2008 at 5:01 PM, Ryan Wagner <[EMAIL PROTECTED]> wrote: > Just upgraded to 98.4. Can reproduce this on two XP32 boxes. Any > thoughts? > This is a bug in the win32 installer, which has gtkagg set as the default backend. You can fix this by setting TkAgg in the backend, which is

Re: [Matplotlib-users] blit example on MacOS with ipython

2008-12-10 Thread John Hunter
On Wed, Dec 10, 2008 at 5:20 PM, pierre garrigues < [EMAIL PROTECTED]> wrote: > > # create the initial line > x = np.linspace(-3, 3, 1000) > line, = plt.plot(x, np.sin(x), animated=True) > > # save the clean slate background -- everything but the animated line > # is drawn and saved in the pixel b

Re: [Matplotlib-users] use of del() to delete a line

2008-12-11 Thread John Hunter
On Thu, Dec 11, 2008 at 7:56 AM, TP <[EMAIL PROTECTED]> wrote: > TP wrote: > >> I have a question about the behavior of "del()" Python built-in. > > Ok, del only removes a name from the local namespace. > I have found an old answer of John, below. It seems that a better solution > is to use the rem

Re: [Matplotlib-users] when the same Line2D is plot on two subplots, it disappears on the two subplots

2008-12-11 Thread John Hunter
On Thu, Dec 11, 2008 at 10:19 AM, TP <[EMAIL PROTECTED]> wrote: > Hi, > > I use matplotlib 0.91.2. > When I plot the same Line2D on two subplots, it disappears: execute the > following script: > > ### > from pylab import * > ion() > f = figure() > s = f.add_subplot("211") > curv

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-13 Thread John Hunter
On Sat, Dec 13, 2008 at 9:38 AM, John Hunter wrote: > My guess is that you may be seeing the antialiasing of your pdf > renderer. matplotlib has a pretty good antialiasing renderer for the > screen display (antigrain) but your mileage may vary for your pdf > renderer. Since pdf

Re: [Matplotlib-users] problem with matplotlib-0.98.5-py2.5-macosx-10.3.egg

2008-12-13 Thread John Hunter
On Sat, Dec 13, 2008 at 3:01 PM, Robin wrote: > As in my other mail I am having trouble building from source. > Previously I used the mac .egg to get around this, but the > matplotlib-0.98.5-py2.5-macosx-10.3.egg for 0.98.5 doesn't appear to > work. I think the egg may be broken. Try grabbing th

[Matplotlib-users] New OSX installers (beta)

2008-12-14 Thread John Hunter
I *think* I may have figured out what is causing some of the dynamic linkage problems several of you have reported on our OSX installers. I have build a new egg snapshot, and better yet, and new binary mpkg installer for OSX. Give them a try: http://matplotlib.sourceforge.net/snapshots/matplot

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-14 Thread John Hunter
On Sun, Dec 14, 2008 at 6:25 PM, Mauro Cavalcanti wrote: > Dear ALL, > > I have experienced a strange problem when installing Matplotlib 0.98.5 > using Easy_Install under Ubuntu Hardy. I receive a message like this: > "error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file > or dire

Re: [Matplotlib-users] New OSX installers (beta)

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 1:08 AM, Scott Lasley wrote: > Hello, > > I used your new beta installer to install matplotlib on a G5 running > OS X 10.5.5. I tried the contour demo and got this error > > pylab_examples$ pythonw contour_demo.py > Traceback (most recent call last): > File "contour_demo

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 6:20 AM, vehemental wrote: > The program is working as expected...except memory wise...the program keeps > growing... > each time plot is pressed it's growing...I believe it's due to some poor > programming on my side, but I can't really put my finger on it right now. I >

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 9:44 AM, John Hunter wrote: > By default matplotlib overplots, so every time you call plot a new > line is added to the canvas. You can turn this behavior off using the > hold method Sorry, on second look it appears you have a more serious problem. Typically yo

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 9:45 AM, Alexander Chemeris wrote: > I experience the same problem. Full shell session (of one > command ;) is following: > > ~$ sudo easy_install matplotlib > Searching for matplotlib > Reading http://pypi.python.org/simple/matplotlib/ > Reading http://matplotlib.sourcefo

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 11:04 AM, Jouni K. Seppänen wrote: > The (812 pixels high) image has been embedded in a png of height 617, > but in the pdf file it has height 446. 446/617 is about .72, so the > problem must be that the pdf backend forces the dpi to 72, while the png > file is being saved

Re: [Matplotlib-users] Bug in ubuntu intrepid

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 12:22 PM, Alejandro Weinstein wrote: > Hi: > > Is anybody aware of the MPL bug on Ubuntu intrepid? > > https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/299381 > Thanks for the head's up -- I posted a comment with a suggestion about what may be going on. JDH

Re: [Matplotlib-users] figimage and image magnification (was: imshow with pdf)

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 2:21 PM, Jouni K. Seppänen wrote: > "John Hunter" writes: > >>> I'll take a closer look at this later. >> >> Thanks for looking into this Jouni -- please make sure to fix in the >> branch and merge to the trunk, as describ

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 2:49 PM, Mauro Cavalcanti wrote: > 'src/backend_agg.cpp') in > ignored > > But everthing seems to be working OK, as I tested my application with > the newly installed version and it runs without crashes. Yes, this is the cruft I referred to earlier in my email. distutil

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 10:30 AM, John Hunter wrote: >> using in favour of matplotlib). Plotting the data twice- the first time >> without >> symbol showing every data point and the second time onlywith the symbol >> and some skip in the data - doesn't help as I n

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 10:09 AM, Michael Oevermann wrote: > Hi all, > > I am trying to find a solution to the following problem (without > success so far): > I have some high frequency data which I want to plot with a simple > plot command using a solid line and a symbol. However, since I have m

Re: [Matplotlib-users] Can not build trunk on windows

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 12:38 PM, Jörgen Stenarson wrote: > Hi > > I get the following error when I try to build matplotlib on a windows > machine. It builds fine if I comment out the offending line in setup.py. > > C:\python\external\matplotlib-trunk>python setup.py config > --compiler=mingw32 bu

Re: [Matplotlib-users] error installing matplotlib from egg

2008-12-16 Thread John Hunter
On Mon, Dec 15, 2008 at 7:08 PM, Michael Hearne wrote: > I get the following output when trying to install the latest version of > matplotlib from an egg. I'm running Mac OS X 10.5.5. We've had a lot of trouble with our eggs. I am not sure this is all our fault, because it looks like some combi

Re: [Matplotlib-users] error installing matplotlib from egg

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:13 PM, Michael Hearne wrote: > John - I get the same error at the end. I've been able to build the package > from the tarball successfully. Output follows: No, this is not the same. In the original post you had error: lib/matplotlib/mpl-data/matplotlib.conf.template

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:17 PM, Christopher Barker wrote: > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5.egg/matplotlib/image.py", > line 19, in >from matplotlib import _png > ImportError: > dlopen(/Library/Frameworks/Python.framew

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:20 PM, Michael Oevermann wrote: > That's exactly what I was looking for! But how do I get the new feature > into my > matplotlib version? Either wait for the next release and use the workaround for now, or install from svn. See http://matplotlib.sourceforge.net/fa

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:17 PM, Christopher Barker wrote: > However, once installed, I tried to run it, and got libpng issues -- > aaarrgg!: Could you also test the mpkg zip file -- I am curious if that shows the same png problems for you. JDH -

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:25 PM, John Hunter wrote: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5.egg/matplotlib/_png.so, >> 2): Symbol not found: _png_destroy_read_struct >> Referenced from: > > > Wel

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 3:59 PM, John Hunter wrote: > Just a quick comment -- the symbol _png_destroy_read_struct is not > defined in the png sources I am using (png_destroy_read_struct is). > Thus it looks like a C++ name mangling issue, probably introduced when > the mpl c++ includ

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 3:17 PM, Christopher Barker wrote: >> > python myfile.py -dPS > > same error -- why does it need to use png at all with PS? Chris, Thanks for all the tests. The image module uses _png. Even the vector backends need raster images. We could move the import into the met

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 7:06 PM, Jae-Joon Lee wrote: > ps. John, are you releasing a new maintenance version? I'm afraid that > my previous patch broke one of the example. Sorry, I thought the fix > was obvious and didn't pay much attention. Yes, and I had just completed a round of testing when

[Matplotlib-users] requesting for testing, os x installers

2008-12-17 Thread John Hunter
I uploaded new OSX binary eggs and a mpkg file to the sourceforge site. We have at least one more bugfix release to push out later, and before I do that I'd really like to know if the current installers resolve the known problems. If you have an OS X platfor to test on, I'd like to hear from you

Re: [Matplotlib-users] figimage and image magnification (was: imshow with pdf)

2008-12-17 Thread John Hunter
On Mon, Dec 15, 2008 at 2:44 PM, John Hunter wrote: > I am not sure what figimage should mean for a vector backend so I want > to hear from Perry who motivated the function. When I implemented it > on his original request, I understood it to be a raw pixel dump to the > canvas wit

Re: [Matplotlib-users] bad keys in event.key

2008-12-17 Thread John Hunter
On Wed, Dec 17, 2008 at 1:24 PM, James Schombert wrote: > Using matplotlib 0.98.5 on OSX 10.5, the following error > occurs for many key_press events using the standard > connect class - letter such as c,v,s etc (and most important, backspace) > > Exception in Tkinter callback > Traceback (most re

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

2008-12-17 Thread John Hunter
On Wed, Dec 17, 2008 at 12:22 PM, Matthias Michler wrote: > Hello John and others, > > my favorite solution is: >> * axes param: specific for a given axes in figure; interface would >> be something like >> >>ax.auto_toolbar_keys(False) This is on my list of things to do JDH

Re: [Matplotlib-users] [Fwd: Matplotlib 0.98.5 egg on Mac OS X : Install Problem]

2008-12-17 Thread John Hunter
On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose wrote: > Hi Everyone, > > I am running into a problem when trying to install 0.98.5 egg on a Mac OS X > machine. Any help much appreciated. Relevant error messages follow: I posted binaries to fix this problem and have requested testers, so please tr

Re: [Matplotlib-users] Matplotlib 0.98.5 egg on Mac OS X : Install Problem

2008-12-17 Thread John Hunter
On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose wrote: > Hi Everyone, > > I am running into a problem when trying to install 0.98.5 egg on a Mac OS X > machine. Any help much appreciated. Relevant error messages follow: Did you miss my repeated posts on this subject, asking for people to test the

Re: [Matplotlib-users] Error with matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg

2008-12-17 Thread John Hunter
On Wed, Dec 17, 2008 at 4:43 PM, Kaushik Ghose wrote: > Hi John, > > The install goes fine, but I come up blank on the import. > > Thanks > -Kaushik > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > +

Re: [Matplotlib-users] Error with matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg

2008-12-17 Thread John Hunter
On Wed, Dec 17, 2008 at 4:50 PM, Kaushik Ghose wrote: > Hi John, > > I tried the .egg package but no joy. > > Thanks > -Kaushik > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > ++

Re: [Matplotlib-users] legend: axespad, pad, handlelen, labelsep - without effect

2008-12-19 Thread John Hunter
On Fri, Dec 19, 2008 at 8:36 AM, Jae-Joon Lee wrote: > The legend class has been reimplemented recently and the name of some > keyword arguments (and their meaning) has been changed. Those > parameters you're using are deprecated ones. It is supposed to show > you some warnings if deprecated param

Re: [Matplotlib-users] Can't build on Ubuntu Intrepid

2008-12-20 Thread John Hunter
On Sat, Dec 20, 2008 at 12:19 AM, Ryan Wagner wrote: > Hi guys, > >I've been trying to build the newest version of MPL on Ubuntu Intrepid > for a few days now. I'm not getting anywhere. I believe I have all the > correct dev packages installed. I had tried to build 0.98.3 but it came out > via

Re: [Matplotlib-users] bugfix for: ImportError: No module named _backend_gdk

2008-12-24 Thread John Hunter
On Tue, Dec 23, 2008 at 11:48 PM, Balaji S. Srinivasan wrote: > I figured out that this was due to an extra comma in setupext.py. > Edit line 1347 to remove the extra comma, changing this: > > module = Extension( > > 'matplotlib.backends._backend_gdk', > ['src/backend_gdk.c', ], #< HERE IS TH

Re: [Matplotlib-users] Backtrace when including a legend with 0.98.5.1

2008-12-26 Thread John Hunter
On Fri, Dec 26, 2008 at 4:14 AM, Adam Mercer wrote: > Hi > > I've noticed that one of my codes is failing with the following > backtrace since updating to 0.98.5.1: Could you please post a complete, free-standing example? Also, you might want to test against 98.5.2 which has been released with s

Re: [Matplotlib-users] Plot aliasing

2008-12-27 Thread John Hunter
On Sat, Dec 27, 2008 at 10:29 AM, Kaushik Ghose wrote: > Hi Gang, > > I was plotting some data collected from an ADC and noticed an odd aliasing > issue. Please see the images on the following site. > > http://assorted-experience.blogspot.com/2008/12/odd-aliasing-issue-with-matplotlib.html > > I w

Re: [Matplotlib-users] Displaying data that is changing

2008-12-28 Thread John Hunter
On Sun, Dec 28, 2008 at 12:39 PM, Leotis buchanan wrote: > Hey Guys, > > I want to use matplotlib to plot data that is changing every second, I am > thinking that in order to do this i will have to update the data array with > the new data , > and redraw the graph. Is this the recommended way to d

<    1   2   3   4   5   6   7   8   9   10   >