Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: N00b help needed: Graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96862] Re: N00b help needed: Graphics
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 26 Feb 2009 07:56:50 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <go319k$f2n$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

data1 = Table[{x, Sin[x]}, {x, 0, 2 Pi, 2 Pi/64}] // N;
f = Interpolation[data1];
data2 = Table[{x, Sin[x] + RandomReal[{-0.1, 0.1}]}, {x, 0, 2 Pi,
      2 Pi/64}] // N;

Plot[f[t], {t, 0, 2 Pi}, Epilog -> Point /@ data2]

??

Regards
   Jens


Hauke Reddmann wrote:
> Hello,
> 
> I have a very simple problem: Visualization of
> two data sets f={{x1,y1},{x2,y2},...} and
> g={{X1,Y1},{X2,Y2},...}.
> The first set shall be replaced by an interpolated curve:
> F=Interpolation[f]. OK, that was trivial :-)
> The second shall be shown as small dots overlayed on the graph
> of f. Where is the problem, you ask? The problem is
> my uni has version 5 and all the Graphics primitives
> as shown on the Wolfram Internet site give no visible 
> output or even error messages! 
> Surely you have a command Plot[something_with_f_and_g]
> for me working for any data lists? (Spline madness is
> no issue, F is very smooth with my actual test data set f.)
> 
> THX,


  • Prev by Date: Re: DiscretePlot
  • Next by Date: Galois resolvent
  • Previous by thread: Re: N00b help needed: Graphics
  • Next by thread: Re: N00b help needed: Graphics