Re: Combination of line plots and point plots

Hi Henner,

> i wonder if i really can't combine two functions (lets say f,g: R -> R) in a
> plot, with one of them beeing display as a line and the other as points in
> the coordinate system.
> up to now i didn't really try, but the fact that i can change the way data
> is displayed only (?) by calling methods on the GraphicsModeControl object
> of the display i added the (data)referneces to makes it seem so, or is there
> a way?

You need to use two different MathTypes for this, as
illustrated in Section 2.5 of Ugo's tutorial.  For this
you can't just substitute a MathType (x -> z) for (x -> y),
but rather need to change to something like (w -> (x, y))
for the function you want as points, as in Ugo's tutorial.

> i also would like to combine line plots with histograms, is it possible if
> both data sets have the same y-axis mapping (and how) ?

You'll need different MathType each with a different
ScalarMap.  You can easily change the MathType of any
Data using the changeMathType(MathType new_type) method.
Given a FlatField with MathType (x -> y) you can change
it to (x -> z) by:

  g = (FlatField) g.changeMathType(MathType.stringToType("(x -> z)"));

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html