2011/2/3 Mike Alger <mal...@ryerson.ca>

> Sorry I was out of touch for a while I have been busy with other things,
>
>
>
> You would have to do some sort of  a bin solution with the method I
> suggested. So m/z values would not have to be exact but you would group
> ranges of them together.
>
>
>
> To be honest based on the plots you showed in your initial question I am
> surprised you don’t already have the data in a 2d array already. An example
> of the data  in the format you intend to start with would have really helped
> explain the situation.
>
>
>
> Matplotlib  has a plot module that bins things automatically for you  based
> on the data
> http://matplotlib.sourceforge.net/examples/api/histogram_demo.html  or you
> can use numpy.historgram function directly. If you are doing something like
> that already to compute your m/z values, just make sure use the same
> sequence  for your bins (see examples at
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html)
> and presto you have the makings of a perfectly aligned 2d array that can be
> plotted with pcolor or with 3d surface
>
>
>
> Again I hope this helps
>

ok, thanks. i thought there was a accurate solution, since i figured that
the amount of data points is so low that even lowering the resolution
wouldn’t help. but then i remembered that somebody told me that binning
would most likely be the only solution and now your mail.

i’ll certainly manage to do that, then; thanks again!
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to