Re: [Matplotlib-users] Multiple mplot3d figures: new plots display over old ones?

2011-02-15 Thread Benjamin Root
On Tue, Feb 15, 2011 at 6:29 PM, Paul Leopardi wrote: > Hi Benjamin, > On Wed, 16 Feb 2011 03:07:25 AM you wrote: > > I have not figured out what is causing the difference between my > computers. > > This might be backend-dependent (and maybe version-dependent). Have you > > tested your code on d

[Matplotlib-users] Slider: can valmax be updated?

2011-02-15 Thread Nicolas Bigaouette
Hi all, I'm using a matplotlib.widgets.Slider on my animated figure. Sometime, I want to refresh the maximum value of the slider (since new values to plot were generated). Is it possible to update the "valmax" value of the slider? If not, is it possible to delete the slider and create a new one?

Re: [Matplotlib-users] matploblib multithreading

2011-02-15 Thread Paul Ivanov
wukan, on 2011-02-14 23:39, wrote: > Hi ,When I use matplotlib to draw 2D graphics in django web site,I encounter > a problem. > when server users use matplotlib to draw graphics simultaneously will > cause website collapse. > when one user use matplotlib to draw graphics will have no problem.

Re: [Matplotlib-users] histogram for discrete data

2011-02-15 Thread Paul Ivanov
Bala subramanian, on 2011-02-15 16:06, wrote: > Friends, > I created a histogram plot using data files that have discrete values > (sample file attached 'test.dat').However when i view the plot, i see that > the bars are not located exactly over the values. For example in the > attached figure (te

Re: [Matplotlib-users] Multiple mplot3d figures: new plots display over old ones?

2011-02-15 Thread Benjamin Root
On Tue, Feb 8, 2011 at 8:43 PM, Benjamin Root wrote: > On Tue, Feb 8, 2011 at 5:53 PM, Paul Leopardi > wrote: > >> Hi Ben, >> On Wed, 9 Feb 2011 03:15:19 AM you wrote: >> > As formatted, the code would not run. I presume that everything after >> "for >> > j in range(0,M):" should be indented?

Re: [Matplotlib-users] make plot() cycle through line style instead of colour

2011-02-15 Thread Ryan May
On Tue, Feb 15, 2011 at 9:24 AM, Sebastian Busch wrote: > Dear list, > > if I do a > > plot([1,2],[1,2]) > plot([1,2],[1,3]) > plot([1,2],[1,4]) > > I will get three lines. All have linestyle='-', the colour is changed > automatically: blue, green, red, ... > > Can I change this behaviour to: All

Re: [Matplotlib-users] Any update to plot_surface? Problem to set it in log scale

2011-02-15 Thread Benjamin Root
2011/2/14 Gaël KANEKO > Hi, > I have some problems to plot a 3d plot_surface (and contour plot) in log > scale (y and z or x,y and z). > There is nothink in the help sections of thus plot to plot them in log > scale (neither in thus plot code commentary). > I tried to find a solution by myself (

[Matplotlib-users] make plot() cycle through line style instead of colour

2011-02-15 Thread Sebastian Busch
Dear list, if I do a plot([1,2],[1,2]) plot([1,2],[1,3]) plot([1,2],[1,4]) I will get three lines. All have linestyle='-', the colour is changed automatically: blue, green, red, ... Can I change this behaviour to: All have the colour black, and the linestyle is changed /automatically/ '-', '--'

Re: [Matplotlib-users] Any update on streamline plot

2011-02-15 Thread Jeff Whitaker
On 2/14/11 4:54 PM, Benjamin Root wrote: On Mon, Feb 14, 2011 at 5:30 PM, John Hunter > wrote: On Sun, Feb 13, 2011 at 11:45 PM, Tom Flannaghan mailto:tj...@cam.ac.uk>> wrote: > It would also be helpful if anyone has suggestions on a particular issue I had.

[Matplotlib-users] histogram for discrete data

2011-02-15 Thread Bala subramanian
Friends, I created a histogram plot using data files that have discrete values (sample file attached 'test.dat').However when i view the plot, i see that the bars are not located exactly over the values. For example in the attached figure (test.png), i see a bar (gray) placed between values 1 and 2

Re: [Matplotlib-users] How to create space between two subplots?

2011-02-15 Thread Omer Khalid
Hi Aman, Thanks a lot for your help and providing me the link to the function. It sorted out my query :) Cheers Omer On Tue, Feb 15, 2011 at 14:44, Aman Thakral wrote: > Hi Omer, > > use the subplots_adjust keyword argument (or click on the adjust > subplots icon in the navigation toolbar at

Re: [Matplotlib-users] How to create space between two subplots?

2011-02-15 Thread Aman Thakral
Hi Omer, use the subplots_adjust keyword argument (or click on the adjust subplots icon in the navigation toolbar at the bottom of the figure). http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.subplots_adjust -Aman On Tue, Feb 15, 2011 at 6:05 AM, Omer Khalid wrot

[Matplotlib-users] matplotlib on osx problem

2011-02-15 Thread Robert Thompson
Hi everyone, I'm not quite sure what to call my problem so searching for it is difficult, but I'll try and describe it the best I can: Matplotlib in python on OSX seems to have an issue with the pan/zoom tool. When I click it and drag the plot around, it does not update until I release the mo

[Matplotlib-users] How to create space between two subplots?

2011-02-15 Thread Omer Khalid
Hi, I am trying to create two subplots in the same figure. Currently, the x-axis of first plot overlaps with the title of second plot. I was wondering if there is a function for figure object that allows to create vertical space between two plots so that the axis and title text doesn't overlap?