Thanks Maximillian for your help.

Could you please tell me how to surface plot with those data files using
Matplotlib?...i.e both reading the data files and then surface plotting in
matplotlib?

Sayan


On 11 April 2013 02:25, Maximilian Trescher <fau...@trescher-it.de> wrote:

> Hi,
> >
> >   *np.savetxt(fname, np.array([pp_za,pv_za]).T, '%f')*
>
> does maybe
>
> np.savetxt(fname, np.array([pp_za,pv_za, np.ones(1000)*t]).T, '%f')
> does what you want? (replace 1000 with approppriate length)
>
> and a comment about:
> >      if pp_za[i] < 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
>
>
>
>


-- 


--------------------------------------------------------------------------
*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

Volunteer , Padakshep
www.padakshep.org
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to