Re: N00b help needed: Graphics
- To: mathgroup at smc.vnet.net
- Subject: [mg96880] Re: N00b help needed: Graphics
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Thu, 26 Feb 2009 08:00:10 -0500 (EST)
- References: <go319k$f2n$1@smc.vnet.net>
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.)
this works in 5.1:
f=Table[{x,Sin[x]},{x,0,Pi,0.1}]
g=Table[{x,Sin[x]+Random[Real,{-0.1,0.1}]},{x,0,Pi,0.1}]
Show[Block[{$DisplayFunction=Identity},{
ListPlot[f,PlotJoined\[Rule]True],
ListPlot[g,PlotStyle\[Rule]{Red,PointSize[0.02]}]
}]]
hth,
albert