Benjamin Root-2 wrote:
>
> On Tue, Sep 6, 2011 at 12:01 PM, surfcast23 <surfcas...@gmail.com> wrote:
>
>>
>> Thanks for everyone responses and help
>>
>> Che,
>>
>> You are correct on what I have to do. The problem is that I have a data
>> set
>> with ~1250 so I cant' do the sorting or finding the mean by hand. I guess
>> what I need to to is to write a script that will sort the values, bin
>> them,
>> and keep track of the number of values in each bin. Then find the mean
>> value
>> in each bin. Then the scrip has to take the number of values in each bin
>> and
>> plot that versus the mean of each bin. I apologies for the lack of
>> clarity
>> in my earlier posts. It was unclear to me what exactly had to be done
>> until
>> this weekend.
>>
>>
>>
> I think you really need to read up on the NumPy documentation. There are
> functions that will do this for you. NumPy can load/save data, sort them,
> bin them, find means and standard deviations, etc... You don't need to
> re-invent the wheel.
>
> Plus, you keep on talking about having a script for each part. While it
> is
> great that you like modularity, Python does support the use of functions,
> and I would encourage you to use them.
>
> Cheers,
> Ben Root
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
Hi Ben,
I will read up the numpy docs when I get some time. I am only writing one
script that will do everything sorry if I gave the impression of having
multiple scripts.
--
View this message in context:
http://old.nabble.com/How-do-you-Plot-data-generated-by-a-python-script--tp32328822p32410694.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the
Bottom Line. Protect your business and customers by understanding the
threat from malware and how it can impact your online business.
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users