Re: [Matplotlib-users] Black and white mode

2012-10-03 Thread Will Furnass
On Tue, 02 Oct 2012 11:37:50 -0400, Tony Yu wrote: On Tue, Oct 2, 2012 at 8:31 AM, William Furnass w...@thearete.co.ukwrote: Did anything ever come of the MPL black and white mode mentioned in the following? I rarely want to produce colour plots and having an inbuilt mechanism for cycling

Re: [Matplotlib-users] How to modify the navigation toolbar easily in a matplotlib figure window?

2012-10-03 Thread Phil Elson
Note, however, code has been improved for the 1.2.0 release to make it easier to modify the set of buttons that are used. In backend_bases.py, look for the NavigationToolbar2 class. Ah yes! I knew I did that for a good reason. :-) Good thinking Ben!

Re: [Matplotlib-users] Black and white mode

2012-10-03 Thread Benjamin Root
On Tue, Oct 2, 2012 at 11:37 AM, Tony Yu tsy...@gmail.com wrote: On Tue, Oct 2, 2012 at 11:04 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Oct 2, 2012 at 8:31 AM, William Furnass w...@thearete.co.ukwrote: Did anything ever come of the MPL black and white mode mentioned in the

Re: [Matplotlib-users] Control the position of a figure window

2012-10-03 Thread Benjamin Root
On Tue, Oct 2, 2012 at 11:38 PM, Jianbao Tao jianbao@gmail.com wrote: Hi, Is it possible to specify the position of a figure window when one is created? This will be a killing feature if one wants to put the figure window at the right place in the screen automatically. It is annoying if

Re: [Matplotlib-users] Create a figure window without navigation toolbar

2012-10-03 Thread Benjamin Root
On Tue, Oct 2, 2012 at 11:09 PM, Jianbao Tao jianbao@gmail.com wrote: Hi, I know one can make a figure window without toolbar by doing mpl.rcParams['toolbar'] = 'None' However, this approach is kind of annoying if one just wants to remove the toolbar for one figure window and to keep

[Matplotlib-users] Eclipse with PyDev on Ubuntu - updating matplotlib version in eclipse ide

2012-10-03 Thread Harshad Surdi
Hi, I am using Eclipse IDE for Java Developers with PyDev on Ubuntu 12.04 and I am quite new to Ubuntu and Eclipse. Can you guide me as to hos to update matplotlib in PyDev in Eclipse? -- Best Regards, Harshad Surdi --

Re: [Matplotlib-users] Create a figure window without navigation toolbar

2012-10-03 Thread Phil Elson
Personally, I am not a fan of adding a window specific keyword to the figure function (although there may be some there already). With 1.2 you can use Matthew Emmett/Paul Ivanov's awesome new context manager to remove the toolbar for the duration of the with statement: import matplotlib.pyplot

Re: [Matplotlib-users] Black and white mode

2012-10-03 Thread Ignas Anikevicius
On 02/10/12 11:37:50 -0400, Tony Yu wrote: [...snip...] The discussion that you link to talks specifically about line styles. In the past there's been discussion of adding a linestyle cycle rc param, but I don't think there's been progress on that front. [...snip...] Just wanted to pop

Re: [Matplotlib-users] Black and white mode

2012-10-03 Thread Michael Droettboom
I've been thinking a lot lately about how CSS could be used to specify styles in matplotlib. It would allow one to specify any set of styles to cycle through (colors, linestyles, whatever other properties). axes.nth-child(0) { color: blue } axes.nth-child(1) { color: green } vs.

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Phil Elson
This works for me with 1.2 (not tested before that): import matplotlib.pyplot as plt import numpy as np x = np.array([0, 1, None, 1, 0]) y = np.array([0, 1, None, 0, 1]) plt.plot(x, y) plt.show() I get two distinct lines crossing each other at (0.5, 0.5) HTH,

[Matplotlib-users] Development advice needed

2012-10-03 Thread Jianbao Tao
Dear all, As some of you might have noticed, I am asking questions frequently recently, most of which are naive ones. The reason for this is that I recently decided to develop a satellite data viewer with matplotlib, and I am new to both python and matplotlib. Here is a little background of

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Anthony Floyd
Hi Jianbao, First some context: at the company I work for, we've been using matplotlib to do much of what you want to do for the past 4 years. We have created our own application for plotting, interrogating, and manipulating time-series data coming from both simulations and measurements, although

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Eric Firing
On 2012/10/03 4:24 AM, Charleux Ludovic wrote: Hello, I want to plot multiple lines using matplotlib.pyplot.plot using the None separator: when i zoom or plot lines that go far away from the axis limits, they their direction is changed. I encounter a bug shown by the folowing code: import

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Sterling Smith
Jianbao, The one thing I would add to Anthony's response, which is a good summary of what I would say, is that you should look into the animation aspects of matplotlib, and the xdata and ydata attributes of lines/axes for speed in replotting mostly similar situations. I regret having not

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Benjamin Root
On Wed, Oct 3, 2012 at 1:02 PM, Phil Elson pelson@gmail.com wrote: I don't get this on matplotlib/master (and therefore probably not on 1.2rc2). I'm pretty sure masked array line plotting was fixed at some point this release cycle (I cannot find the appropriate github issue to link to),

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Jianbao Tao
Dear Anthony, Thank you so much for your advice. I embedded my response below. Jianbao On Wed, Oct 3, 2012 at 10:49 AM, Anthony Floyd anthonyfl...@gmail.comwrote: Hi Jianbao, First some context: at the company I work for, we've been using matplotlib to do much of what you want to do for

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Charleux Ludovic
Thanks for your multiple answers. I'll try the same manipulation with the 1.2 version as soon as possible. Concerning the debate between the use of None and numpy.nan, I tryed both methods before posting and they both lead to the same bug on my version. I'm using the None/numpy.nan trick to plot

Re: [Matplotlib-users] Control the position of a figure window

2012-10-03 Thread Gökhan Sever
I was after a similar issue once, and asked this question at SO: http://stackoverflow.com/questions/7802366/matplotlib-window-layout-questions Manual positioning is fine sometimes if I want to really place windows side-by-side for comparison purposes. However it would be nicer if mpl were to

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Eric Firing
On 2012/10/03 8:11 AM, Charleux Ludovic wrote: Thanks for your multiple answers. I'll try the same manipulation with the 1.2 version as soon as possible. Concerning the debate between the use of None and numpy.nan, I tryed both methods before posting and they both lead to the same bug on my

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Anthony Floyd
Hi Jianbao, Do you have any references, such as screen shots, gallery, examples, or whatever? I am very curious to see what people can do with matplotlib. If you can find a Windows machine (or a Windows VM) and stomach a 60 MB download, visit

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Jianbao Tao
Thank you so much, Anthony. After weighing the options, I decided to go for Tkinter. The major reason for this is portability. BTW, I checked out your website. Those screenshots are quite impressive. :-) Jianbao On Wed, Oct 3, 2012 at 3:27 PM, Anthony Floyd anthonyfl...@gmail.comwrote: Hi