comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: scatter plots make large PostScript files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: scatter plots make large PostScript files [message #64502] Fri, 02 January 2009 10:47
pyoachim is currently offline  pyoachim
Messages: 2
Registered: January 2009
Junior Member
On Jan 1, 1:35 pm, Ed Hyer <ejh...@gmail.com> wrote:
> Too large, in fact. In this case, I want the scatter as an underlay to
> a line plot showing the averaged data. But the resulting EPS file is
> just too huge. Any tips/tricks/brilliant ideas on how to get the plot
> I want with a manageable EPS file size?

What I often advocate in these situations is using hist2d and contour
to plot the underlying data as a contour plot.
Re: scatter plots make large PostScript files [message #64510 is a reply to message #64502] Fri, 02 January 2009 05:58 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Jan 2, 3:54 am, anand <jana...@gmail.com> wrote:
> On Jan 2, 12:35 am, Ed Hyer <ejh...@gmail.com> wrote:
>
>> Too large, in fact. In this case, I want the scatter as an underlay to
>> a line plot showing the averaged data. But the resulting EPS file is
>> just too huge. Any tips/tricks/brilliant ideas on how to get the plot
>> I want with a manageable EPS file size?
>
> you can use the keyword NSUM while plotting. it is like binning the
> available
> data. NSUM=10 would reduce the number of data points in the scatter
> from
> say, N, to N/10.
>
> Anand.

Note that because NSUM averages, the resulting plot does not represent
the original scatter (and it goes without saying that outliers
disappear). I find it's often better to randomly sample the original
points. If there are noriginal points in the data set and you want to
plot nplot of them:

randomsort=sort(randomu(seed,noriginal))
plot, x[randomsort[0:nplot-1]], y[randomsort[0:nplot-1]], psym=3

-Jeremy.
Re: scatter plots make large PostScript files [message #64512 is a reply to message #64510] Fri, 02 January 2009 00:54 Go to previous message
anand is currently offline  anand
Messages: 11
Registered: December 2008
Junior Member
On Jan 2, 12:35 am, Ed Hyer <ejh...@gmail.com> wrote:
> Too large, in fact. In this case, I want the scatter as an underlay to
> a line plot showing the averaged data. But the resulting EPS file is
> just too huge. Any tips/tricks/brilliant ideas on how to get the plot
> I want with a manageable EPS file size?

you can use the keyword NSUM while plotting. it is like binning the
available
data. NSUM=10 would reduce the number of data points in the scatter
from
say, N, to N/10.

Anand.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: scatter plots make large PostScript files
Next Topic: Approximate convolution - for loop problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:28:40 PDT 2025

Total time taken to generate the page: 0.08309 seconds