2D Functions
Function Plot
Parametric Plot
Multiple Parametric Plot
Filled Plot
Multiple Filled Plot
Logarithmic Plot


2D Data Plots
Data Plot
Data Error Plot
Data Logarithmic Plot
Data Labeled Plot


Contour & Density Plots
Contour Plot
Density Plot
Level Curves


3D Functions
3D Function Plot
3D Parametric Plot
3D Multiple Parametric Plot
3D Vector Field
3D Gradient Field
Shadow 3D Function

3D Data Plots
Contour 3D Data Plot
Density 3D Data Plot


Special Plots
Vector Field
Bar Charts
Pie Chart
Zonotope Show


Links
About This Site
Citation & Credits
Sci.Vis. Tutorials
webComputing


Filled Plot of Function

Enter a function of x :   " >   

Plot the function for :   " >   <= x <=   " >



<%Mathlet Needs["Graphics`FilledPlot`"]; %> <%Mathlet MSPBlock[ {$$func, $$beg, $$end, $$fColorPrepared, $$fColourRed, $$fColourGreen, $$fColourBlue, $$fillAxes, $$XAxe, $$YAxe, $$xAxeOrigin, $$yAxeOrigin, $$fr1, $$fr2, $$fr3, $$fr4, $$xAxeLabel, $$yAxeLabel, $$xTicks, $$yTicks, $$plotLabel, $$frame, $$rotateLabel, $$xGrids, $$yGrids, $$aspectRatio, $$plotPoints, $$rColor, $$gColor, $$bColor, $$rColorBackg, $$gColorBackg, $$bColorBackg, $$imageSize, $$xRangeBeg,$$xRangeEnd,$$yRangeBeg,$$yRangeEnd }, (* specific options *) If[$$fillColour === "Automatic" , fColr = Automatic ]; If[$$fillColour === "Predefined" , fColr = $$fColorPrepared ]; If[$$fillColour === "Specify" , fColr = RGBColor[$$fColourRed, $$fColourGreen, $$fColourBlue] ]; If[$$fillCurves === "Back" , fCurv = Back ]; If[$$fillCurves === "Front" , fCurv = Front ]; If[$$fillCurves === "None" , fCurv = None ]; result = FilledPlot[ $$func, {x, $$beg, $$end}, Fills->fColr, Curves->fCurv, AxesFront->$$fillAxes, Axes->{$$XAxe,$$YAxe}, AxesOrigin-> If[$$axesOriginFlag === "Specified", {$$xAxeOrigin,$$yAxeOrigin}, Automatic], AxesLabel->{If[$$xAxeLabel === Null, "", ToString[HoldForm[$$xAxeLabel]]], If[$$yAxeLabel === Null, "", ToString[HoldForm[$$yAxeLabel]]]}, Ticks-> {If[$$xTicksFlag === "Specified" , $$xTicks , MSPToExpression[$$xTicksFlag]], If[$$yTicksFlag === "Specified" , $$yTicks , MSPToExpression[$$yTicksFlag]]}, Frame->$$frame, FrameLabel->{If[$$fr1 === Null, "", ToString[HoldForm[$$fr1]]], If[$$fr2 === Null, "", ToString[HoldForm[$$fr2]]], If[$$fr3 === Null, "", ToString[HoldForm[$$fr3]]], If[$$fr4 === Null, "", ToString[HoldForm[$$fr4]]]}, RotateLabel->$$rotateLabel, GridLines-> {If[$$xGridsFlag === "Specified" , $$xGrids , MSPToExpression[$$xGridsFlag]], If[$$yGridsFlag === "Specified" , $$yGrids , MSPToExpression[$$yGridsFlag]]}, AspectRatio->If[$$aspectRatioFlag === "Specified" , $$aspectRatio, MSPToExpression[$$aspectRatioFlag]], PlotLabel-> If[$$plotLabel === Null, "", ToString[HoldForm[$$plotLabel]]], PlotPoints->$$plotPoints, DefaultColor->If[{$$rColor,$$gColor,$$bColor} =!= {"","",""}, RGBColor[$$rColor,$$gColor,$$bColor], Automatic], Background-> If[{$$rColorBackg,$$gColorBackg,$$bColorBackg} =!= {"","",""}, RGBColor[$$rColorBackg,$$gColorBackg,$$bColorBackg], Automatic], PlotRange->{If[$$xPlotRange === "Specified",{$$xRangeBeg,$$xRangeEnd}, MSPToExpression[$$xPlotRange]], If[$$yPlotRange === "Specified",{$$yRangeBeg,$$yRangeEnd}, MSPToExpression[$$yPlotRange]]}, ImageSize-> If[NumberQ[$$imageSize],$$imageSize,Automatic] ]; If[Head[result] === Graphics, MSPShow[result] ] ] %> <%Mathlet MSPBlock[{$$fname, $$submitButton1}, c = If[$$fname === Null, "", ToString[$$fname]]; ftype = Switch[$$opt, "jpg", "JPEG", "tif", "TIFF", "eps", "EPSTIFF", "xbm", "XBitmap", "mps", "MPS", _ , $$opt]; If[Head[result] === Graphics, MSPReturn[DisplayString[result, ftype], "image/"<>ftype , c<>"."<>$$opt] ] ] %>

Save as : 

With file name :   " >


Filled Plot Options

<%Mathlet MSPSetDefault[$$fillColour, "Automatic"] %> Fills :  Defines the filling colours.

> Automatic    > Predefined :  

> Specify :    Red : " >   Green : " >   Blue : " >   (enter values between 0.00 and 1.00)

<%Mathlet MSPSetDefault[$$fillCurves, "Back"] %> Curves :   Controls how the lines of the curves are to be displayed.
Back causes curves to be covered by subsequent fills, Front places all curves in front of the fills and None causes the curves not to be drawn.


> Back > Front > None

<%Mathlet MSPSetDefault[$$fillAxes, "True"] %> AxesFront :    > True > False
Whether the axes and grid lines are to be drawn in front of or behind the graphic.


General options

Plot range : (All - all points are included, Automatic - outlying points are dropped)

X :  <%Mathlet MSPSetDefault[$$xPlotRange, "Automatic"] %> > Automatic   > All   > Specified   " >  < = x < =  " >

Y :  <%Mathlet MSPSetDefault[$$yPlotRange, "Automatic"] %> > Automatic   > All   > Specified   " >  < = y < =  " >

<%Mathlet MSPSetDefault[$$XAxe, "True"] %> <%Mathlet MSPSetDefault[$$YAxe, "True"] %> Axes :   X : > True > False      Y : > True > False

<%Mathlet MSPSetDefault[$$axesOriginFlag, "Automatic"] %> Axes origin : > Automatic > Specified    X : " >    Y : " >

Axes labels :   X : " >   Y : " >

<%Mathlet MSPSetDefault[$$xTicksFlag, "Automatic"] %> <%Mathlet MSPSetDefault[$$yTicksFlag, "Automatic"] %> Ticks :
Whether to draw tick marks if there are axes. You may specify the positions at which ticks will be drawn.

X :   > Automatic > None > Specified :   " > (enter a list of values)

Y :   > Automatic > None > Specified :   " > (enter a list of values)


<%Mathlet MSPSetDefault[$$frame, "False"] ;%> Frame :   > False   > True

Frame labels :

Frame label down :   " >   Frame label left :   " >

Frame label up :   " >   Frame label right :   " >

<%Mathlet MSPSetDefault[$$rotateLabel, "True"] %> Rotate labels : > True     > False   (whether to allow text in frame labels to be vertically positioned)

<%Mathlet MSPSetDefault[$$xGridsFlag, "None"] %> <%Mathlet MSPSetDefault[$$yGridsFlag, "None"] %> GridLines :
Whether to draw gridlines. You may specify the positions at which gridlines will be drawn.

X :   > None > Automatic > Specified :   " > (enter a list of values)

Y :   > None > Automatic > Specified :   " > (enter a list of values)


Plot label :  " >

<%Mathlet MSPSetDefault[$$aspectRatioFlag, "1/GoldenRatio"] %> Aspect ratio :   > Default > Automatic > Specified :   " >
Setting the AspectRatio option changes the whole shape of your plot. AspectRatio gives the ratio of height to width.
Its default value is the inverse of the Golden Ratio — supposedly the most pleasing shape for a rectangle.
Automatic determines the shape of the display area from the original coordinate system.


<%Mathlet MSPSetDefault[$$plotPoints, "25"] %> Plot points :   " >   (the minimum number of points at which to sample the function)

Plot color (RGB color) :  red part :  " >   green part :  " >   blue part :  " >
Specifies the default color to be used for axes, frames and bounds of the figure. The values of the color parts must be between 0 and 1.

Background (RGB color) :  red part :  " >   green part :  " >   blue part :  " >

Image size :   ">   specifies that the image should have a width of x printer's points

  
© 2004 webComputing,   Scientific Visualization