Re: [Matplotlib-users] Licence Question

2010-05-17 Thread John Hunter
On Mon, May 17, 2010 at 8:28 AM, Craig Lyndon wrote: > Hi All, > > Im new to matplotlib, and I love it, but I have a question about the > Licence agreement. > I am wanting to develop a commercial closed source application for my > company using python and matplotlib. > > I have tried reading the L

Re: [Matplotlib-users] introducing mpl_toolkits.gridspec

2010-05-11 Thread John Hunter
On Tue, May 11, 2010 at 11:39 AM, Jae-Joon Lee wrote: >> 2) Do you plan on checking this into mpl trunk (still as a mpl_toolkit >> module)? This looks sufficiently general and useful that we may simply want it to live in the main tree (not as a toolkit) and have subplot2grd helper functionality

Re: [Matplotlib-users] Problem with figure sizes using Qt4Agg

2010-05-03 Thread John Hunter
On Mon, May 3, 2010 at 4:02 PM, Darren Dale wrote: > On Sun, Apr 18, 2010 at 12:55 PM, Gökhan Sever wrote: >> >> >> On Sun, Apr 18, 2010 at 11:47 AM, Darren Dale wrote: >>> >>> On Tue, Apr 13, 2010 at 8:14 PM, Gökhan Sever >>> wrote: >>> > Hello, >>> > >>> > Could someone confirm me if there is

Re: [Matplotlib-users] Can't turn-off ticks when sharing axis

2010-04-22 Thread John Hunter
On Apr 22, 2010, at 12:28 PM, Gökhan Sever wrote: > Hello, > > Consider my simple test case: > > import matplotlib.pyplot as plt > > fp = plt.figure() > ax1 = fp.add_subplot(4,1,1) > ax1.plot(range(10)) > ax2 = fp.add_subplot(4,1,2) > ax2.plot(range(10)) > ax1.xaxis.set_major_locator (plt.N

Re: [Matplotlib-users] matplotlib colors vs html colors

2010-04-14 Thread John Hunter
On Wed, Apr 14, 2010 at 2:14 PM, Jae-Joon Lee wrote: > John, the relevant code to define the "colors" attribute seems to be > written by you. Maybe this is some matlab convention? Can you comment > on this? The original color letters did come from matlab, and some of the color RGB choices, like

[Matplotlib-users] schematic diagrams - fancy boxes, packers and arrows

2010-04-11 Thread John Hunter
This is mainly a question for JJ. I would like to make a schematic diagram, like you might get from Dia or OmniGraffle. With the offset boxes, annotations, vpackers/hpackers and fancy arrows, it seems like the pieces are mostly in place. Unlike simple annotations, I need to have multiple arrows

Re: [Matplotlib-users] how to plot a Polygon / plt.draw() problem

2010-04-11 Thread John Hunter
On Sun, Apr 11, 2010 at 7:15 AM, tomislav_ma...@gmx.com wrote: > can someone help me to plot a polygon in matplotlib? > > I have been reading about the axes.patches.Polygon class and I have defined > the > > Polygon object that has a preset lw and points. How do I plot it? > > I'm confused because

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-03-17 Thread John Hunter
On Wed, Mar 17, 2010 at 4:10 AM, Matthias Michler wrote: > once more I'd like to ask for comments about my feature request and proposed > patch. > Should I post it at the 'feature request' or  'patch' tracker? > > Thanks in advance for any comments. Hey Matthias -- This should be placed on the p

Re: [Matplotlib-users] Alpha compositing of ~60000 line plots takes forever

2010-03-16 Thread John Hunter
On Tue, Mar 16, 2010 at 8:46 AM, Jon Olav Vik wrote: > Thank you, thank you, thank you. > > This is just as convenient, 50% faster even for 1000 series, and runtime does > indeed scale as O(n) up to 1 series. The projected speedup for 6 > series > was 40x. However, in my actual use case

Re: [Matplotlib-users] Agg complexity exceeded

2010-03-12 Thread John Hunter
Note that there is a significant bug in the path.simplify code in the latest released version that is fixed in svn. The simplification should not be visible to the human eye. Please try the release candidate at http://drop.io/xortel1# if you don't have access to svn JDH On Fri, Mar 12, 2010

Re: [Matplotlib-users] Agg complexity exceeded

2010-03-12 Thread John Hunter
On Fri, Mar 12, 2010 at 12:15 PM, Eric Firing wrote: > This example is mostly obsolete--the clipping procedure is built-in. (The > value added by the example is the change in marker style.) Right, which is what I was trying to get at in the following: While this may not solve your case, becau

Re: [Matplotlib-users] Agg complexity exceeded

2010-03-12 Thread John Hunter
On Fri, Mar 12, 2010 at 8:30 AM, Tornes, Ivan E wrote: > I’m working on a project that handles large data sets.  Up to this point I > had not had any issues using matplotlib, but I tried yesterday to have it > plot a file that had 8 million float,float pairs in it and dies with the > following mes

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread John Hunter
On Tue, Mar 9, 2010 at 1:49 PM, Pribadi, Krishna wrote: > > I know it's badly out of date... > > I'd like to embed it but I'm not quite sure where to begin... > > Do you think a simple solution like calling it from the system command line > will open the plot in a new instance, so that the metada

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread John Hunter
On Tue, Mar 9, 2010 at 1:23 PM, Chris Barker wrote: > Pribadi, Krishna wrote: >> Based on what I’ve been reading regarding MPL, it seems that the >> matplotlib show() function causes another instance of a GUI loop to >> remain suspended. > > right --don't use show(), in fact, don't use pylab for t

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread John Hunter
On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: > Bizarre!  I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from > svn.  I have done a little grepping and other exploration, but have > completely failed to find where this change is occurring. cbook imports locale -- may be implica

[Matplotlib-users] matplotlib 0.99.3rc1 release candidate for testing

2010-03-09 Thread John Hunter
I have uploaded the src and some binaries for the matplotlib 0.99.3 (stable branch) release candidate rc1 . This is a bugfix release that contains at least one critical bugfix (the path.simplify bug) and numerous other small fixes. I built the OSX binaries on a 64 bit 10.6 python2.6 machine so I

Re: [Matplotlib-users] Polar Photometry Plots?

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 4:09 PM, R Fritz wrote: > Thank you very much. You have just made me a much happier grad student. > > I hope this answer gets added to the FAQ! Make us much happier developers :-) http://matplotlib.sourceforge.net/faq/howto_faq.html#contribute-to-matplotlib-documentation

Re: [Matplotlib-users] error, when calling "ax.redraw_in_frame()"

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 3:23 PM, John Hunter wrote: > OK, I just manually added this via a diff/patch.  Keep your eyes out > for flakiness.  I did try a matplotlib.test before committing and got > one error about the hexbin extent so there may be a little cleanup to > do.  I ignored

Re: [Matplotlib-users] error, when calling "ax.redraw_in_frame()"

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 12:21 PM, Michael Droettboom wrote: > Jae-Joon Lee wrote: >> >> I fixed this in the maintenance branch. >> But I'm failing with the svnmerge. >> I thought this issue has been fixed but I'm not sure what I'm doing >> wrong. > > I thought I had fixed it, but it seems to have b

Re: [Matplotlib-users] Artist tutorial different response

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 10:45 AM, Matthias Michler wrote: >> v0_99_maint is the current maintenance branch/ > > I checked out > https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint/ > and included my changes of trunk as you can see in the attached patch. > > Furthermore I

Re: [Matplotlib-users] error, when calling "ax.redraw_in_frame()"

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 10:09 AM, Matthias Michler wrote: > Hello list, > > I get an error, when calling "ax.redraw_in_frame()" (see below). > > I think this is due to the fact that the draw_wrapper expects args instead of > kwargs for the "draw" of an Axes instance and therefore provide a patch, >

Re: [Matplotlib-users] Artist tutorial different response

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 10:25 AM, Matthias Michler wrote: > On Wednesday 03 March 2010 17:02:58 John Hunter wrote: >> On Wed, Mar 3, 2010 at 9:56 AM, Matthias Michler >> >> wrote: >> > I attached a patch with modified documentation and further replacements >&

Re: [Matplotlib-users] Artist tutorial different response

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 9:56 AM, Matthias Michler wrote: > I attached a patch with modified documentation and further replacements > of 'get_bounds' in current svn. Could any of the developers have a look at it > and commit these changes or should a post the patch at the patch-tracker? The patch

Re: [Matplotlib-users] PSD amplitude disparity

2010-03-02 Thread John Hunter
On Tue, Mar 2, 2010 at 5:13 AM, Dunx wrote: > > Hi, > > I know about the difference between pylab.psd and mlab.psd, but in theory > the only difference between the returned values is: > > pylab.psd = 10*log10(mlab.psd) > > Except this is not true, there is noticeable difference: > > pylab.psd = 23

Re: [Matplotlib-users] Problems seeing a png created with matplotlib in firefox

2010-03-02 Thread John Hunter
On Tue, Mar 2, 2010 at 4:05 AM, Alexander Dietz wrote: > Hi, > > I have trouble seeing a png image that I have created with matplotlib > (0.99.1.1) in my firefox browser( 2.6) and I am not sure if it is a > browser issue of a bug in matplotlib. Strange -- I can see it fine in firefox 3.5 on Solar

Re: [Matplotlib-users] Plotting 2 Y Vars 1 X Var

2010-03-02 Thread John Hunter
On Mon, Mar 1, 2010 at 8:30 PM, kotsumu wrote: > > I have a X Variable in years and 2 y variables. That I want to plot on a > single graph. > I have already listed my X variable and 2 y variables in a list but I don't > know how to plot them on the single graph. > > My x variable for example 1948

Re: [Matplotlib-users] half-filled markers, two-colors

2010-03-01 Thread John Hunter
On Mon, Mar 1, 2010 at 8:12 PM, Jae-Joon Lee wrote: > John and T J, > > L1587 at lines.py > >    def set_mfc(self, val): >        'alias for set_markerfacecolor' >        self.set_markerfacecolor(val, alt=alt) > > "alt" is not defined and it currently raises an exception. Fixed -- thanks for the

Re: [Matplotlib-users] Max Size of an Attachment?

2010-03-01 Thread John Hunter
On Mon, Mar 1, 2010 at 9:45 AM, Wayne Watson wrote: > See Subject.  Is it 40K? The max size of the message body is 200K. If you are sending attachments, they will be mime encoded, so they encoding may be larger than the file size, and the limit applies to the encoded size. I am the list moderat

Re: [Matplotlib-users] Transparency with fig.canvas.mpl_connect

2010-02-28 Thread John Hunter
On Fri, Feb 26, 2010 at 5:14 PM, brianjpetersen wrote: > > Hi All, > > I'm a new matplotlib user on a Windows XP machine running mpl0.99.0 under > Python 2.5.  I'm using the default rc file. > > While reading through the excellent matplotlib "how-to" tutorial > (http://matplotlib.sourceforge.net/f

Re: [Matplotlib-users] Change the size of the plotted 'o's ?

2010-02-26 Thread John Hunter
On Fri, Feb 26, 2010 at 6:35 PM, mikey wrote: > Sorry a rather stupid question as there are '.'s available. Although I > wouldn't mind knowing if it's possible to tinker with the sizes of > 'o's and '.'s. See the "markersize" parameter http://matplotlib.sourceforge.net/api/pyplot_api.html#matplo

Re: [Matplotlib-users] Pixel Offset Example Not Working

2010-02-26 Thread John Hunter
On Fri, Feb 26, 2010 at 9:47 AM, mikey wrote: > Hi there, > > Just wondering if anyone knows how to do a pixel offset in matplotlib? > > I've tried running the example in > http://www.scipy.org/Cookbook/Matplotlib/Transformations#line-58 but There is an "official" transformations tutorial now in

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread John Hunter
On Feb 25, 2010, at 2:50 AM, Friedrich Romstedt wrote: > 2010/2/25 Reinier Heeres : >> Of course many 3D engines do this already, but the problem is always >> the integration. Is your engine python based and is the code (freely) >> available? I would be interested in taking a look. > > It's C

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread John Hunter
On Wed, Feb 24, 2010 at 8:17 AM, Friedrich Romstedt wrote: > I'm not shure whether someone can release software under GPL > incorporating MIT licensed software?  Otherwise I would release under > dual license. Yes, GPL projects can use MIT or BSD code, but not vice-versa. --

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread John Hunter
On Wed, Feb 24, 2010 at 7:14 AM, Alan G Isaac wrote: > On 2/24/2010 2:36 AM, Friedrich Romstedt wrote: >>  Can you explain to me why you are so restrictive about GPLed code?  I >>  mean, it's all OSS? > > > The licenses are very different: BSD (and MIT) do not impose a viral > copyleft.  This is w

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-23 Thread John Hunter
On Mon, Feb 22, 2010 at 6:28 PM, Eric Firing wrote: > Yes.  You are looking at ColorbarBase, which does not have an associated > mappable.  The derived Colorbar class does grab the cmap and norm from the > mappable used in the initialization.  Is this somehow not working? Did you > really need to

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-23 Thread John Hunter
On Tue, Feb 23, 2010 at 4:12 AM, Jan Strube wrote: > Hi John, > thanks for keeping at it. I have updated from svn > But this script >   File > "/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py", > line 278, in _config_axe

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 4:33 PM, John Hunter wrote: >  polycol = plt.hexbin(data['jetMomentum'][cut] / 1000, > data['deltaR'][cut],gridsize=50, norm=colors.LogNorm()) >  cb = plt.colorbar(norm=colors.LogNorm()) > > but this appears to be broken: I committed

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 3:42 PM, Jan Strube wrote: > Hi John, > the attachment may not make it to the list. However, please run the modified > test.py that I have attached. > It requires the attached input file. > Then change it to read the original input file. > In my case: > The broken case: OK

Re: [Matplotlib-users] missing module docs

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 1:44 PM, Ben Axelrod wrote: > I noticed that there are many modules in the current code base that are > not listed at: http://matplotlib.sourceforge.net/modindex.html. I > understand that a few are new files and that the documentation for these > will be generated during

Re: [Matplotlib-users] Clipping

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 10:11 AM, Michael Droettboom wrote: > The coordinates for Circle (and all patches) are in data coordinates. > So the (300, 300) is relative to the values in the data itself.  When > adding a patch directly to a plot, however, the limits may not > automatically update, so yo

Re: [Matplotlib-users] mplot3d stays?

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 10:01 AM, Ben Axelrod wrote: > John, your assesment of the problem is correct.  And I believe your suggested > solution is also correct.  Currently, each call to a mplot3d plot method is > treated independantly.  They get converted into custom PolyCollections which > eac

Re: [Matplotlib-users] dropdown menu

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 4:26 AM, Wolfgang Kerzendorf wrote: > Hello, > > Now that I have found the awesome widgets in matplotlib I want more: dropdown > menus? will that come at some stage? I have worked on it, but not finished it. I put the code in svn under examples http://matplotlib.sourc

Re: [Matplotlib-users] mplot3d stays?

2010-02-21 Thread John Hunter
On Sun, Feb 21, 2010 at 4:02 PM, Ben Axelrod wrote: > I am not a MPL developer, You are now :-) > but I am using mplot3d quite heavily right now to support 3D plots for a > client of mine.  I have found many bugs and > lacking features which I require in the mplot3d library and have modified my

Re: [Matplotlib-users] mplot3d stays?

2010-02-21 Thread John Hunter
On Sun, Feb 21, 2010 at 7:15 PM, David Arnold wrote: > Hi, > > What prevents me from using mplot3d in the classroom is highlighted by the > following example. I believe the problem arises because each artist (ie each polygon, line or 3d text object) is rendered separately, and so there is no way

Re: [Matplotlib-users] mplot3d stays?

2010-02-21 Thread John Hunter
On Sun, Feb 21, 2010 at 8:20 AM, Jakub Nowacki wrote: > Hi, > > I have quite general question. Since mplot3d now back in matplotlib, the > question is: is it going to stay there? Or is it some test release? I was > just wondering cause sometimes I use 3d plotting and use Mayavi2 for that but >

Re: [Matplotlib-users] plot(x,y) Trouble?

2010-02-21 Thread John Hunter
On Sun, Feb 21, 2010 at 9:52 AM, Andrea Gavana wrote: > On 21 February 2010 15:44, Alan G Isaac wrote: >> On 2/21/2010 10:29 AM, Wayne Watson wrote: >>> plot(2.8,3.4) doesn't work in my program >>> >> >> Why should it? > > I believe it should. It does in svn -- though it unhelpfully plots a line

Re: [Matplotlib-users] Problem with plotting fast spiking data

2010-02-18 Thread John Hunter
On Thu, Feb 18, 2010 at 4:19 PM, Jakub Nowacki wrote: > Hi, > > I work with neural models and I have problem with plotting fast spiking data. > The spikes on the plot appear to have different hight which changes when I > for example resize the plot window. The same problem is with saving data in

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-18 Thread John Hunter
On Thu, Feb 18, 2010 at 4:06 PM, Jan Strube wrote: > Hi John, > thanks for trying this also. Yes, I think it's a bug that not the scale is > log, but the data is. > Unfortunately, the solution really doesn't work for me. > Please see the attached screenshot. (Yes, it still says log_10 entries, but

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-18 Thread John Hunter
On Thu, Feb 18, 2010 at 10:25 AM, Jan Strube wrote: > Hi Eric, > thanks for your response. > > Your solution looks like it's going to return the right numbers, but for > some reason the tick labels are gone completely. (Except 0) > > The code I have is below. I do think the current behavior is a b

Re: [Matplotlib-users] how to plot data on image.

2010-02-18 Thread John Hunter
On Thu, Feb 18, 2010 at 2:01 AM, yogesh karpate wrote: > Dear All, >   I am facing one peculiar problem. I have ecg data of 2000 > points . I can plot it,but i want to plot the data on image . Kindly find > the attched image with this mail to get my problem.How should I go ahead. >

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-02-17 Thread John Hunter
On Wed, Feb 17, 2010 at 9:06 AM, Matthias Michler wrote: > thanks a lot for taking the time to go through this patch. I tried to > incorporate you remarks and attached a new patch. > The most difficult task is about the > documentation 'mpl/doc/users/navigation_toolbar.rst', because I'm not sure

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-02-17 Thread John Hunter
On Wed, Feb 17, 2010 at 8:08 AM, Matthias Michler wrote: > Hi list, Hi Gökhan, > > I once more would like to say that I like the 2 new features introduced by > Gökhan (key 'k' for xscaling and the generalized handling of the key-mapping, > which allows the user to choose its prefered key for a cer

Re: [Matplotlib-users] Interactive use of matplotlib in ipython

2010-02-17 Thread John Hunter
On Wed, Feb 17, 2010 at 7:42 AM, Wolfgang Kerzendorf wrote: > Hello, > > I would like to build a bit of an interactive fitter with matplotlib and > ipython (in pylab environment). I would like to have a a function, which > takes x and y as input, then plots these and fits a line to it (just nump

Re: [Matplotlib-users] Easy come easy go

2010-02-17 Thread John Hunter
On Wed, Feb 17, 2010 at 7:41 AM, Michiel de Hoon wrote: > An inconsistency in the definition of save_figure between different backends > is causing this problem. > > The GTK backends use >    def save_figure(self, button): > > but the tkagg, qt, qt4, and macosx backends use >    def save_figure(s

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 3:57 PM, Ernest Adrogué wrote: > 16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernandes: >> "\\"  works for titles and label, but not for DateFormatter, but \vspace did >> the trick! >> >> Thanks again for the help. >> >> ps: I'm new to python, but maybe ther

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-16 Thread John Hunter
On Mon, Feb 15, 2010 at 8:28 PM, T J wrote: > On Mon, Feb 15, 2010 at 5:22 PM, John Hunter wrote: >> Very nice and thorough work.  I think this should be included, but >> I'll wait to hear from other developers before committing.  Could you >> confirm that the unit t

Re: [Matplotlib-users] howto save MplWidget to png or tif file --- savefig not working

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 4:07 PM, Dave M Tung wrote: > > HI folks, > >    anybody know how to save a canvas (MplWidget)  to a png or tif file. >  Seems >    when I try to save the figure, > >    whichCanvas.canvas.ax.plot(xSlice, ySlice, 'bo', linewidth=1.5, > linestyle='-') > >    savefig does not

Re: [Matplotlib-users] add to a canvas while preserving overall formatting

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 11:14 AM, C M wrote: > I have a mpl graph embedded in wxPython, and I call a function, > customize_plot() to do a number of things to the plot:  adjust the > spacing around it, set the formatters, fontsizes, axis limits, set a > grid, etc. > > Now I want to potentially high

Re: [Matplotlib-users] can't update transform for polygon animation

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 10:54 AM, John Jameson wrote: > Hi John, > > Thanks for your help on the animation with patches, and now > I'm trying to do the same idea for matplotlib.patches.Polygon > ala your method for a circle patch: > >    initialize: >        xy =[[x0,y0],[x1,y1],[x2,y2]] >      po

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-15 Thread John Hunter
On Mon, Feb 15, 2010 at 5:59 PM, T J wrote: > On Sun, Feb 14, 2010 at 2:49 PM, T J wrote: >> I ran across: >> >>    http://old.nabble.com/half-filled-markers-td24003576.html >> >> The name "fillstyle" can give the wrong impression about what is being >> filled.  For example, see the comment here:

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-15 Thread John Hunter
On Mon, Feb 15, 2010 at 6:50 AM, Michiel de Hoon wrote: > I almost have a solution for this for the Mac OS X backend. I am stuck though > at what I should pass to enter_notify_event and leave_notify_event for the > guiEvent: > >    def leave_notify_event(self, guiEvent=None): >        """ >    

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-14 Thread John Hunter
On Sun, Feb 14, 2010 at 6:53 PM, David Arnold wrote: > All, > > Any Mac users out there? This script from the User Guide does not seem to > recognize entering or leaving a figure. Any thoughts? My Mac is currently dead, but I developed these events while I was a mac user and so am pretty sure th

Re: [Matplotlib-users] memory leak for GTKAgg animation

2010-02-14 Thread John Hunter
On Sat, Feb 13, 2010 at 2:53 PM, John Jameson wrote: > HI, > I find the very basic animation below has a memory leak (my pagefile usage > number keeps growing in the Windows XP Windows Task Manager Performance > graph).I don't see this with the "animation_blit_gtk.py" example on: > > http://matplo

Re: [Matplotlib-users] LineBuilder

2010-02-14 Thread John Hunter
On Sun, Feb 14, 2010 at 3:34 PM, David Arnold wrote: > line, =ax.plot([0], [0]) > plt.show() > linebuilder=LineBuilder(line) > > However, if I put the plt.show() on the last line, it works. Can anyone > explain? plt.show is meant to raise all GUI windows and start the mainloop. For many user int

Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?

2010-02-13 Thread John Hunter
On Sat, Feb 13, 2010 at 6:44 AM, Wayne Watson wrote: > In this case, it's spelling errors, mostly. axes for axis, etc. http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto http://matplotlib.source

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-13 Thread John Hunter
On Sat, Feb 13, 2010 at 8:03 PM, Wayne Watson wrote: > Suppose I plot a line from (0,0) to (1,1.5) to (2,2). Now I want to mark > (1,1.5) with a green circle. How is that done? You've posted repeatedly about how confusing the docs are, asking what you should read and what steps you should take to

Re: [Matplotlib-users] Finding the Supposed MPL show() "bug".

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 10:42 AM, Wayne Watson wrote: > That link has no reference to tkinter.  tk and tk2, plus a few others with > tk in their names, but nothing else.A search in the box produced nothing. As I said in my last email, the embedding_in_tk* files are the ones you want. JDH --

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 9:43 AM, Geoff Bache wrote: > > Hi all, > > I'm trying to generate graphs from my test results, with regions > coloured with succeeded and failing tests. It nearly works, but I have > the following problem. I am providing the data with fill_between, which > returns PolyColl

Re: [Matplotlib-users] Finding the Supposed MPL show() "bug".

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 9:18 AM, Wayne Watson wrote: > Yes, certainly,as  you explained a few days ago, the present use is > incompatible with idle usage. Further, you mentioned the need for ipython > and the "backend" to make it work (in IDLE?). The way we are using problem > seems a bit ambiguou

Re: [Matplotlib-users] logarithmic plotting and the grid

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 8:13 AM, Lee Boger wrote: > > I think he wants to turn the grid on for both major and minor ticks. I'm > interested in that also. Is there a way to do that? > > ax.grid(True, which='major') ax.grid(True, which='minor') JDH -

Re: [Matplotlib-users] Finding the Supposed MPL show() "bug".

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 2:41 AM, Wayne Watson wrote: > A Ground Hog movie moment? Deja vu all over again (Quoting Yega Berra.). > > I went right through John Hunter's comment of a day or two ago about the > need to solve this with ipython. That has to be taken into > consideration; otherwise, this

Re: [Matplotlib-users] blit animation with patches

2010-02-10 Thread John Hunter
On Wed, Feb 10, 2010 at 12:39 PM, John Jameson wrote: > Hi - > I am wondering how to animate using blit and patches. > The code below was modified from one of the examples. > You will see that it shows (and moves) the rectangle just fine, but > the circle never shows up. Artists must be added to

Re: [Matplotlib-users] Sankey diagram

2010-02-10 Thread John Hunter
On Wed, Feb 10, 2010 at 12:44 PM, Ben Axelrod wrote: > Really cool plot. > > Speaking of the 1.0 release, is there a target date set?  And if there is > going to be another bug-fix release before 1.0, is there a target date for > that? No target date yet, it has been on my wish list for a whil

Re: [Matplotlib-users] Sankey diagram

2010-02-10 Thread John Hunter
2010/2/9 Yannick Copin : > Hi List, > > I made a script to draw very simple (single-direction single-input > single-sided single-everything) Sankey diagrams (attached). I think I could > share, if it can be of any use... Great -- I had never heard of a Sankey diagram but just took a look on wikipe

Re: [Matplotlib-users] Pick event and annotate

2010-02-10 Thread John Hunter
On Wed, Feb 10, 2010 at 4:43 AM, Nils Wagner wrote: > Hi all, > > How can I combine onpick events with annotate ? > Any pointer would be appreciated. > > import numpy as np > import matplotlib.pyplot as plt > > fig = plt.figure() > ax = fig.add_subplot(111) > ax.set_title('click on points') > > li

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 11:36 AM, Wayne Watson wrote: > Thanks for the clarification. I'm really new to this, and do not know of > interactive mode. I presume there's a command to turn it off and on, and > possibly an example on how to do it. Is this method of operation with > show() mentioned anyw

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 10:06 AM, Wayne Watson wrote: > I'm sure not making much progress on understanding show(). When used in > XP in IDLE or by file execution (click on file name), it seems to tie up > the executing program.  In IDLE, the shell window stops and one must > exit the window. > > I'

Re: [Matplotlib-users] repaint subplot

2010-02-03 Thread John Hunter
On Wed, Feb 3, 2010 at 5:32 AM, Luis P. Guerra wrote: > Hi, > > I am newbie using Matplotlib. I have to do an interactive application and > before that, I am trying some tests to familiarize myself with the library. > > I am plotting some 2d data together with 2 buttons. When one of the buttons >

Re: [Matplotlib-users] Alpha channel problems?

2010-02-02 Thread John Hunter
On Tue, Feb 2, 2010 at 7:47 AM, Luc Gervais wrote: > Hello all, > > I am creating radar plots in matplolib and I cannot get transparent polygons. > > I have run the examples from the gallery: > http://matplotlib.sourceforge.net/examples/api/radar_chart.html > http://matplotlib.sourceforge.net/exam

Re: [Matplotlib-users] Label picker broken?

2010-02-01 Thread John Hunter
On Mon, Feb 1, 2010 at 4:34 PM, John Hunter wrote: > On Mon, Feb 1, 2010 at 3:47 PM, Jae-Joon Lee wrote: > >> I agree. >> Unfortunately, event handling is not my specialty, and given no response >> from other developers, I recommend you file a bug (and hope other develo

Re: [Matplotlib-users] Label picker broken?

2010-02-01 Thread John Hunter
On Mon, Feb 1, 2010 at 3:47 PM, Jae-Joon Lee wrote: > I agree. > Unfortunately, event handling is not my specialty, and given no response > from other developers, I recommend you file a bug (and hope other developers > fix this). I wrote the original functionality and example and do consider thi

Re: [Matplotlib-users] Draggable matplotlib legend

2010-01-29 Thread John Hunter
On Thu, Jan 28, 2010 at 10:14 PM, Fernando Perez wrote: > On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker > wrote: >> Might I suggest that that be made: >> >> leg.draggable(True) >> leg.draggable(False) >> > > Agreed.  My favorite api for toggles is: > > _state = True OK, this is committed.

Re: [Matplotlib-users] Draggable matplotlib legend

2010-01-28 Thread John Hunter
On Thu, Jan 28, 2010 at 3:02 PM, Adam Fraser wrote: > I thought I'd share a solution to the draggable legend problem since > it took me forever to assimilate all the scattered knowledge on the > mailing lists... Cool -- nice example. I added the code to legend.py. Now you can do leg = ax.legen

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread John Hunter
On Tue, Jan 26, 2010 at 12:00 PM, cwurld wrote: > > Hi, > > I am trying to generate some pngs without using the GUI interface using the > AGG backend. The problem is when I set figsize, the bottom part of the > x-axis label is clipped. I am using python 2.5 in windows XP. I just > installed the la

Re: [Matplotlib-users] Adding watermark to canvas background

2010-01-25 Thread John Hunter
On Mon, Jan 25, 2010 at 8:14 AM, Dimitri Linten wrote: > Hi Forum, > I am using matplotlib in a PyQt4 App. > I wanted to add a watermark-type  pictures to the standard white background > of the canvas. Does the following help? http://matplotlib.sourceforge.net/search.html?q=codex+watermark

Re: [Matplotlib-users] text box shadow

2010-01-19 Thread John Hunter
On Tue, Jan 19, 2010 at 4:34 PM, Jae-Joon Lee wrote: > This is generally a very difficult thing to do, as the position and > the extent of the text is determined when the figure is drawn. > > The best way, I guess, is to create a customized Text class, but I do > not recommend this unless you're f

Re: [Matplotlib-users] download older versions?

2010-01-19 Thread John Hunter
On Tue, Jan 19, 2010 at 11:44 AM, Ian Rose wrote: > Hello - > > How can I download an old version of matplotlib from sourceforge > (specifically, version 0.91.2)?  This version is already installed on > some other machines and I need to mirror the installation, but the OSes > are different so I ca

Re: [Matplotlib-users] mouse tracking with two y-axes

2010-01-13 Thread John Hunter
On Wed, Jan 13, 2010 at 6:59 AM, boriq wrote: > > Hi all, > > i have a plot with 2 y-axes and 1 x-axis. The mouse pointer shows the > y-coordinates of the second y-axis, but I want the mouse pointer to show the > y-coordinate of the first y-axis. > > Is there a way how to switch the mouse pointer

Re: [Matplotlib-users] Colorbar embedding in qt4

2010-01-03 Thread John Hunter
On Sun, Jan 3, 2010 at 7:02 PM, Alexander Hupfer wrote: > Thanks I got it fixed. > This leads to the follow up question: > What is the right way to keep an application responsive while the graph is > drawn? > Drawing a scatter plot with 300 points seems to take a while. I guess I need > to launch

Re: [Matplotlib-users] query about pyplot.text example

2010-01-03 Thread John Hunter
On Sun, Jan 3, 2010 at 2:50 PM, Eric Firing wrote: > I think that allowing display units would be easy to implement (as indicated > by Ryan's example), but font or physical units would be much trickier > because they would involve draw-time determinations.  Starting by allowing > only display unit

Re: [Matplotlib-users] Colorbar embedding in qt4

2010-01-03 Thread John Hunter
On Sun, Jan 3, 2010 at 11:34 AM, Alexander Hupfer wrote: > Hi, I have a scatter plot embedded in qt4 according to > http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html > what works fine > However if I try to add a colorbar to it by simply calling > > p = scatter()

Re: [Matplotlib-users] query about pyplot.text example

2010-01-03 Thread John Hunter
On Sun, Jan 3, 2010 at 10:22 AM, Ryan May wrote: >> the marker.  It would be great if one could specify the text offsets in >> units of the font size rather than in units of map distance. > > You can do it, it just takes a bit of knowledge about how different > transformations are used under the h

Re: [Matplotlib-users] parameters values in the title

2009-12-29 Thread John Hunter
On Tue, Dec 29, 2009 at 1:47 PM, kamaleon wrote: > > Hey all, > I have a program that contains two parameters > ... > beta=0.2 > delta=0.4 > . > . > in the title of my plot i want the value of the ratio beta/delta=0.5 to > executed automatically when i run the program. > > i need:confu

Re: [Matplotlib-users] Plotting Hex grid

2009-12-17 Thread John Hunter
On Thu, Dec 17, 2009 at 10:56 AM, Christopher Barker wrote: > iCy-fLaME wrote: >> I am aware of Hexbin, which is a kind of histogram with hexagonal >> cells. But what if my data comes in a Hex grid to start with? > >> What would be a good way to plot such data? > > Use the source, Luke! > > Take a

Re: [Matplotlib-users] first run works fine but on the second not

2009-12-14 Thread John Hunter
On Mon, Dec 14, 2009 at 12:38 PM, jenya56 wrote: > > I have the following in my PyScripter: > > import matplotlib > matplotlib.interactive(True) > from matplotlib.pylab import * > import pylab > > > if __name__ == '__main__': >   plot([1,2,3]) >   pylab.show() > #__main__ > > > For the first run i

[Matplotlib-users] ANN: job opening at Tradelink

2009-12-14 Thread John Hunter
We are looking to hire a quantitative researcher to help research and develop trading ideas, and to develop and support infrastructure to put these trading strategies into production. We are looking for someone who is bright and curious with a quantitative background and a strong interest in writi

Re: [Matplotlib-users] advaced scatter plot

2009-12-14 Thread John Hunter
On Mon, Dec 14, 2009 at 11:31 AM, jenya56 wrote: > > Dear all, I was wondering if there is equivalent in python of this function: > PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot > at the locations specified in the vectors X and Y. The current colormap of > the figure

Re: [Matplotlib-users] Normalized histogram

2009-12-14 Thread John Hunter
On Mon, Dec 14, 2009 at 10:22 AM, Susanne Pfeifer wrote: > Hello, > > I am relatively new to matplotlib and I was wondering whether there is > an easy possibility to generate a histogram whose height is normalized > to one (rather than the total area under the curve which is the case if > I use no

Re: [Matplotlib-users] Publish to HTML

2009-12-04 Thread John Hunter
On Fri, Dec 4, 2009 at 1:17 AM, David Arnold wrote: > All. > > I see the Sphinx tutorial Sampledoc on the Matplotlib site and am > working through the tutorial. This semester, my students have really > enjoyed using Matlab's publish to HTML tool, then they upload the > resulting files to their Dro

Re: [Matplotlib-users] Saving a plot to EPS

2009-12-02 Thread John Hunter
On Wed, Dec 2, 2009 at 3:20 PM, Michael Cohen wrote: > Hi, > To add more information.  I am trying this on two separate installs of > matplotlib 0.99, both using TkAgg as the backend.  One produces an > unreadable file, the other does produce a readable EPS.  However, even > in this case, zooming

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