Re: [Matplotlib-users] Appending an extra column in

2013-04-10 Thread Sayan Chatterjee
0: > > pp_za[i] = 2 - abs(pp_za[i]) > > if pp_za[i] > 2: > > pp_za[i] = pp_za[i] % 2 > > in general > > pp_za[pp_za < 0] = 2 - abs(pp_za[pp_za < 0]) > pp_za[pp_za > 2] = pp_za[pp_za > 2] % 2 > > is shorter and much faster. > > Max &g

[Matplotlib-users] Appending an extra column in

2013-04-10 Thread Sayan Chatterjee
matter if you don't), I want to see the phase plot evolving with time. Thus the need of a time axis and hence plot with V(velocity-Yaxis), X ( Position -X axis) and t (Time-Z axis).Once the data files are created properly, how to plot them using Matplotlib? Regards, Sayan -- ----

Re: [Matplotlib-users] Plotting from datafile

2013-04-01 Thread Sayan Chatterjee
Thanks Benjamin...I put that plt.ylim earlier but at a wrong place. It worked. Thanks again! On 1 April 2013 19:01, Benjamin Root wrote: > > > On Mon, Apr 1, 2013 at 7:29 AM, Sayan Chatterjee < > sayanchatter...@gmail.com> wrote: > >> Thank you very much!!...&#x

Re: [Matplotlib-users] Plotting from datafile

2013-04-01 Thread Sayan Chatterjee
r the concerned simulation. :) Sayan On 1 April 2013 07:02, Benjamin Root wrote: > > > > On Sun, Mar 31, 2013 at 11:51 AM, Sayan Chatterjee < > sayanchatter...@gmail.com> wrote: > >> Thank you very much I have been able to plot from the data files, but >> faci

Re: [Matplotlib-users] Plotting from datafile

2013-03-31 Thread Sayan Chatterjee
in your data. > > Good luck. > > Steven > > > On Wed Mar 27 10:07:10 2013, Sayan Chatterjee wrote: > >> Hi Steven, >> >> I am a newbie to Python and hence Matplotlib. I cannot get your point >> properly. Could you please redirect me to a page where the usage

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Sayan Chatterjee
y you should try genfromtxt after loadtxt doesn't work. > Or, that is my normal method. > > Steven > > > On Wed Mar 27 07:16:45 2013, Sayan Chatterjee wrote: > >> Thank you very much for your prompt reply. >> >> Florian, your reply seems to be the answer to m

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Sayan Chatterjee
> import numpy as np > import matplotlib.pyplot as plt > > for file in os.path.listdir(): > x, y = np.loadtxt(file, unpack=True) > plt.scatter(x,y) > plt.savefig(file + '.png') > > Cheers, > > Florian > > > Am 27.03.2013 09:32, schri

[Matplotlib-users] Plotting from datafile

2013-03-27 Thread Sayan Chatterjee
ks in anticipation. Regards, Sayan -- ------ *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874513565 blog: www.blissprofound.blogspot.com Volu