Re: [Matplotlib-users] Connecting the Dots with Scatter Plot (Motion Jumps)

2010-02-03 Thread Philipp Bender
Hi, your problem is that you enter the X values in an unordered way? Then, you just have to sort the key-value-pairs before plotting. One way it works is to create a dict in the form "d = {x1: y1,x2:y2}" (with a for loop and so on), then extract the keys: k = d.keys() k.sort() v = [d[key] for

Re: [Matplotlib-users] How Exit Gracefully after a Show?

2010-02-03 Thread Philipp Bender
Hi, > If I select the x in > the upper right, it dies badly. This is maybe another problem, after closing the windows the program should exit with exitcode 0. -- # -*- coding: utf-8 -*- from pylab import * t = linspace(0,10,100) plot(t, sin(t)) show() -

Re: [Matplotlib-users] Findng the right args and kwargs

2010-02-03 Thread Michael Cohen
Can anyone help? Michael On 2/1/2010 9:04 PM, Michael Cohen wrote: > Hi all, > One of the most persistent problems I have with matplotlib is finding > out which kwargs and args are available for some commands. > For instance, I am looking at manipulating axis ticks and labels in > mplot3d, so I w

[Matplotlib-users] How Exit Gracefully after a Show?

2010-02-03 Thread Wayne Watson
See Subject. I'm looking at an example whose last line is Show(). I see nothing on the graphic that will allow me to exit. If I select the x in the upper right, it dies badly. -- My life in two words. "Interrupted Projects." -- WTW (quote originator)

[Matplotlib-users] Connecting the Dots with Scatter Plot (Motion Jumps)

2010-02-03 Thread Wayne Watson
I have a bunch of (x,y) points that relate to an ordered path of a meteor; however, when plotted they may no become ordered. For example, (0,0), (2,2), (1,1), (3,4) ... Point 2 jumps backwards. I'd like to connect the points with a line, or better, a line with an arrow indicating direction, so

[Matplotlib-users] make autoscale_view even less tight?

2010-02-03 Thread C M
I'm using autoscale_view for the y axis, but find with a marker size > about 10, it will autoscale the graphs such that some markers are bisected by the edges of the frame. I already have it set to: self.subplot.autoscale_view(tight=False, scalex=False, scaley=True) so I'd basically like "ti

Re: [Matplotlib-users] re ndering bug in bar3d

2010-02-03 Thread Ben Axelrod
I completely understand how hard z sorting can be. However, I think the orthogonal planes that compose the parallel boxes is a pretty constrained problem that does not require a general solution. I might be able to lend a hand if I had some pointers where to get started in the mplot3d library.

Re: [Matplotlib-users] re ndering bug in bar3d

2010-02-03 Thread Reinier Heeres
Hi, Unfortunately z-sorting the polygons is a really hard problem. Or in fact, in the way it is currently implemented, an unsolvable problem. Please remember that mplot3d is not a full-blown 3d engine. Fixing this would require either a z-buffer or things such as BSP trees, which I do not think ar

Re: [Matplotlib-users] How do you use ticklabel_format?

2010-02-03 Thread Joseph Smidt
Sebastian, Thanks, your hint worked. On Wed, Feb 3, 2010 at 1:54 PM, Sebastian Busch wrote: > Joseph Smidt wrote: >> Hello, >> >>     I'm trying to make a simple plot that doesn't use scientific >> notation for the x axis ... >> Is there way to use this >> ScalarFormatter some how?  ... > >

Re: [Matplotlib-users] How do you use ticklabel_format?

2010-02-03 Thread Sebastian Busch
Joseph Smidt wrote: > Hello, > > I'm trying to make a simple plot that doesn't use scientific > notation for the x axis ... > Is there way to use this > ScalarFormatter some how? ... does this help? from pylab import * a = arange(1600) plot(a,a) xscale('log') from matplotlib.ticker import S

[Matplotlib-users] How do you use ticklabel_format?

2010-02-03 Thread Joseph Smidt
Hello, I'm trying to make a simple plot that doesn't use scientific notation for the x axis since the axise only goes from 1 to 1600. I tried using ticklabel_format like this: from pylab import * l, cltt = loadtxt('ABF_20_20.dat',unpack=True) semilogx(l, cltt) xlim(1,1600) ax = gca() ax.t

Re: [Matplotlib-users] how to add text below the legend

2010-02-03 Thread Ernest Adrogué
1/02/10 @ 16:15 (-0500), thus spake Jae-Joon Lee: > See if the example below works. > > plot([1,2,3], label="test") > a=legend() > > import matplotlib.offsetbox as offsetbox > txt=offsetbox.TextArea("Test 2") > box = a._legend_box > box.get_children().append(txt) > box.set_figure(box.figure) >

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 >

[Matplotlib-users] repaint subplot

2010-02-03 Thread Luis P. Guerra
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 is pressed, only a few points should be remain in the plot, and whe