RibbonPlot3D Examples

Jon McLoone (jonm@wolfram.co.uk)

Comments

There is already a version of RibbonPlot3D on MathSource written by Robert Dickau. This version of RibbonPlot3D has more flexibility in terms of options but unlike his cannot yet handle indexed data. Data supplied to the ListRibbonPlot3D function is assumed to be evenly spaced.

There is no significant error checking in the functions so the user must take care to supply suitable arguments.

Examples

<< "RibbonPlot.nb";

The basic RibbonPlot3D forms a wide ribbon in 3D whose z value is determined by the function of the x value.

RibbonPlot3D[Sin[x], {x, 0, 6}];

Giving multiple functions plots these beside each other in the y plane.

RibbonPlot3D[{Sin[x], Cos[x]}, {x, 0, 6}]

How these are placed can be controlled the option RibbonSeperation

RibbonPlot3D[{Sin[x], Cos[x]}, {x, 0, 6}, 
      RibbonSeperation -> 0];

Other options control whether a base line and solid ends are drawn

RibbonPlot3D[{Sin[x], Cos[x]}, {x, 0, 6}, ShowBase -> True, 
      ShowEnds -> True];

Where this base appears can be controlled by the option RibbonBase

RibbonPlot3D[{Sin[x], Cos[x]}, {x, 0, 6}, ShowBase -> True, 
      ShowEnds -> True, RibbonBase -> -1];

ShowSides controls whether the sides of the Ribbon are filled down to the base line and PlotPoints gives the number of sampling points.

RibbonPlot3D[{1 + Sin[x], Cos[x] + 1}, {x, -2, 2}, 
      PlotPoints -> 6, RibbonBase -> -3, 
      ShowSides -> True, ShowEnds -> True];

All Graphics3D options are supported.

RibbonPlot3D[(x^2), {x, -2, 2}, Axes -> True];

ListRibbonPlot3D is the data equivalent of the function.

ListRibbonPlot3D[Table[Random[] g, {g, 0, 10}, {t, 0, 10}], 
      ShowSides -> True];