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

Home » Public Forums » archive » Re: slightly shifted plots (?)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: slightly shifted plots (?) [message #36998 is a reply to message #36994] Fri, 07 November 2003 14:51 Go to previous messageGo to previous message
mmiller3 is currently offline  mmiller3
Messages: 81
Registered: January 2002
Member
>>>> > "Antonio" == Antonio <angaspx@yahoo.it> writes:

> hi all, I was wondering whether there would be any routine
> that enable to slightly shift two almost identical
> functions so that they do not overlap in the same plot.
> thanks, cheers! a.

One method that can work well to separate overlapping data is to
add a small amount of random noise (jitter) to the data points as
they are plotted. This will tend to move overlapping values
apart on the plot, but does not affect calculations as it is only
added in the plot, not to the actual data. If the random noise
is small compared to the distribution of the data itself, then
the quality of the plot is not changed. This may not work for
calculations that don't include any noise though - it is hard to
add a small amount of 0...

Mike



P.S. For one implementation, see "jitter" from R
http://stat.ethz.ch/R-manual/R-patched/library/base/html/jit ter.html
http://www.r-project.org

Chambers, J. M., Cleveland, W. S., Kleiner, B. and Tukey, P.A.
(1983) _Graphical Methods for Data Analysis._ Wadsworth; figures
2.8, 4.22, 5.4.

Chambers, J. M. and Hastie, T. J. (1992) _Statistical Models in
S._ Wadsworth & Brooks/Cole.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to write in HDF-EOS format?
Next Topic: Re: Is it possible to change the title of a WIDGET_SLIDER?

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

Current Time: Fri Oct 10 09:12:20 PDT 2025

Total time taken to generate the page: 1.44103 seconds