Re: [Matplotlib-users] Plot aliasing

2008-12-27 Thread John Hunter
On Sat, Dec 27, 2008 at 10:29 AM, Kaushik Ghose kaushik_gh...@hms.harvard.edu 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.

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 ramer...@gmail.com 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

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 bala...@stanford.edu 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', ],

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 rwag...@vni.com 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

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 lee.j.j...@gmail.com 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

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 jdh2...@gmail.com 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

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 jscho...@uoregon.edu 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

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 matthiasmich...@gmx.net 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 kaushik_gh...@hms.harvard.edu 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

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 kaushik_gh...@hms.harvard.edu 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,

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 kaushik_gh...@hms.harvard.edu 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 kaushik_gh...@hms.harvard.edu 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] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 10:30 AM, John Hunter jdh2...@gmail.com 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 now get two entities

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 michael.oeverm...@tu-berlin.de 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

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 jorgen.stenar...@bostream.nu 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-trunkpython setup.py config

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 mhea...@usgs.gov 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

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 mhea...@usgs.gov 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:

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 michael.oeverm...@tu-berlin.de 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

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 chris.bar...@noaa.gov 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 jdh2...@gmail.com 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: Well, at least we have

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 jdh2...@gmail.com 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

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 chris.bar...@noaa.gov 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

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 lee.j.j...@gmail.com 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

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

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 6:20 AM, vehemental jimmy.pail...@gmail.com 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

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 jdh2...@gmail.com 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

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 alexander.cheme...@gmail.com 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

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 j...@iki.fi 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

Re: [Matplotlib-users] Bug in ubuntu intrepid

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 12:22 PM, Alejandro Weinstein alejandro.weinst...@gmail.com 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

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 j...@iki.fi wrote: John Hunter jdh2...@gmail.com 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 described in http

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 mauro...@gmail.com wrote: 'src/backend_agg.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x874ab2c ignored But everthing seems to be working OK, as I tested my application with the newly installed version and

[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:

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 jdh2...@gmail.com 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 robi...@gmail.com 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.

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 remove method

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) curve =

[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=80706package_id=278194release_id=646146 These what's new release notes, with graphs and links, are available in html at

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 what

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 buffer

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.Line2D

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 would

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

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 with

[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] 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? matplotlib

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 module ax1.legend(loc=1,

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 backend

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 =

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 like once

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

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 above,

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:

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(False)

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 various

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 r6453 with example examples/api/unicode_minus.py

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/where

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... does anyone I suggest completely

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'. Hey

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 use case is common enough

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 much luck

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 a

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

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:

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 author, is

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

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 correctly

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 data

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() ? Wow, that

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 create in

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 create in

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 frame.

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 on some

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

2008-11-19 Thread John Hunter
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, 2008/11/19 John Hunter [EMAIL PROTECTED]: On Wed, Nov 19

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-added

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 right

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. plot

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 empty

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 the

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 empty

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 of the

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; probably the latter. If I missed something

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 little

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? --if

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 do, but

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:

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 woes

Re: [Matplotlib-users] Python 2.6

2008-11-08 Thread John Hunter
On Fri, Nov 7, 2008 at 7:24 AM, Michael Droettboom [EMAIL PROTECTED] wrote: John Hunter wrote: What say you other developers -- any major holdups? I think this bug is reasonably serious, if anyone wants to take a look at it. It affects PDF, PS, SVG as well as the Gtk and GtkCairo mentioned

Re: [Matplotlib-users] Where else to look when tick_label.set_fontsize isn't working

2008-11-08 Thread John Hunter
On Sat, Nov 8, 2008 at 1:02 AM, Joshua J. Kugler [EMAIL PROTECTED] wrote: On Friday 07 November 2008, John Hunter said something like: http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem Sorry, I wasn't so much reporting a problem with matplotlib as I

Re: [Matplotlib-users] Python 2.6

2008-11-08 Thread John Hunter
On Thu, Nov 6, 2008 at 4:28 PM, Darren Dale [EMAIL PROTECTED] wrote: Stan West checked out my subprocess patch on windows with python-2.5, which should take care of a bunch of deprecation warnings. I need to double check that I got them all, maybe I can get to it this weekend. I'm in favor

Re: [Matplotlib-users] Several Functions, One plot (My Hello World)

2008-11-08 Thread John Hunter
On Sat, Nov 8, 2008 at 8:23 AM, Alan G Isaac [EMAIL PROTECTED] wrote: On 11/7/2008 10:36 PM [EMAIL PROTECTED] apparently wrote: I'm new to the list and also to matplotlib. I'm writing a small program to draw oil well diagrams in a simple way in 2D. I guess Mike is a bit nonplussed by the

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 GtkAgg,

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 flip

Re: [Matplotlib-users] Where else to look when tick_label.set_fontsize isn't working

2008-11-07 Thread John Hunter
On Fri, Nov 7, 2008 at 7:51 PM, Joshua J. Kugler [EMAIL PROTECTED] wrote: With the help of John Hunter and Stan West, I got some of my tick labels sizing correctly. I have this chunk of code: for label in self.main_axes.get_xticklabels(): label.set_fontsize(self.xtick_labelsize

Re: [Matplotlib-users] Combine jpegs

2008-11-06 Thread John Hunter
On Thu, Nov 6, 2008 at 9:00 AM, Nils Wagner [EMAIL PROTECTED] wrote: Hi all, Is it possible to combine jpegs with matplotlib or PIL ? Any pointer would be appreciated. if you have PIL installed, you can load them into mpl with imread, and then set the alpha channel to make one partially

Re: [Matplotlib-users] Python 2.6

2008-11-06 Thread John Hunter
On Thu, Nov 6, 2008 at 11:28 AM, KURT PETERS [EMAIL PROTECTED] wrote: I recently tried to install for python 2.6 and got an error that the dll is incompatible. Is there a version for 2.6? I didn't see one here: No, we haven't released any binaries for 2.6. It is probably getting to be time

Re: [Matplotlib-users] twin / dual / two axis seems to confuse or break toolbar magnifier

2008-11-04 Thread John Hunter
On Tue, Nov 4, 2008 at 7:29 AM, Michael Droettboom [EMAIL PROTECTED] wrote: Can you be more specific about what is going wrong? The zoom magnifier seems to work fine for me with or without twinx, but perhaps we just have different expectations of how it works. Could you perhaps provide

Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread John Hunter
On Tue, Nov 4, 2008 at 2:48 PM, Joshua J. Kugler [EMAIL PROTECTED] wrote: I've sent two messages to this list, and neither have appeared in the archives, or come back to me. Did I use the right combination of words to get stopped by a spam filter? :) I have not seen any messages from you in

Re: [Matplotlib-users] Setting tick labelsize programatically

2008-11-04 Thread John Hunter
On Tue, Nov 4, 2008 at 3:13 PM, Joshua J. Kugler [EMAIL PROTECTED] wrote: [Trying one more time.] I've read docs, search the list archive, and tried to step through code. The docs you are looking for are http://matplotlib.sourceforge.net/users/artists.html. How can I set things like

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