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


Data Plot

Choose data type :

<%Mathlet MSPSetDefault[$$list1, "List"]%> > List without x values   

Data Plot of {y1, y2, ...} plots y1, y2, ... values. The x coordinates for each point are taken to be 1, 2, ...

List of data {y1, y2, ... } :  " >


> List with x values

Data Plot of {{x1, y1}, {x2, y2}, ...} plots points (x1, y1), (x2, y2) ...

The lists for x and for y must have equal dimensions

List of data {x1, x2, ... } :  " >

List of data {y1, y2, ... } :  " >



<%Mathlet MSPBlock[{$$list, $$nestlistX, $$nestlistY, $$plotjoined, $$h, $$pointSize, $$frame, $$plotLabel, $$fr1, $$fr2, $$fr3, $$fr4, $$xAxeLabel, $$yAxeLabel, $$rotateLabel, $$xAxeOrigin, $$yAxeOrigin, $$xAxe, $$yAxe, $$xTicks, $$yTicks, $$xGrids, $$yGrids, $$aspectRatio, $$rColor, $$gColor, $$bColor, $$rColorBackg, $$gColorBackg, $$bColorBackg, $$imageSize, $$xRangeBeg,$$xRangeEnd,$$yRangeBeg,$$yRangeEnd}, style={}; If[$$pointSize =!= Null, style = Append[style, PointSize[$$pointSize]]]; If[$$h =!= Null, style = Append[style, Hue[$$h]]]; If[$$list1 === "List", If[VectorQ[$$list, NumberQ], l = $$list], If[MatrixQ[l1 = MapThread[{#1,#2}&,{$$nestlistX, $$nestlistY}],NumberQ], l = l1] ]; If[MSPValueQ[l], result = ListPlot[l, Axes->{$$xAxe,$$yAxe}, PlotJoined->$$plotjoined, PlotStyle->style, PlotRange->{If[$$xPlotRange === "Specified",{$$xRangeBeg,$$xRangeEnd}, MSPToExpression[$$xPlotRange]], If[$$yPlotRange === "Specified",{$$yRangeBeg,$$yRangeEnd}, MSPToExpression[$$yPlotRange]]}, AxesLabel->{If[$$xAxeLabel === Null, "", ToString[HoldForm[$$xAxeLabel]]], If[$$yAxeLabel === Null, "", ToString[HoldForm[$$yAxeLabel]]]}, PlotLabel-> If[$$plotLabel === Null, "", ToString[HoldForm[$$plotLabel]]], 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, AxesOrigin-> If[$$axesOriginFlag === "Specified", {$$xAxeOrigin,$$yAxeOrigin}, Automatic], Ticks-> {If[$$xTicksFlag === "Specified" , $$xTicks , MSPToExpression[$$xTicksFlag]], If[$$yTicksFlag === "Specified" , $$yTicks , MSPToExpression[$$yTicksFlag]]}, GridLines-> {If[$$xGridsFlag === "Specified" , $$xGrids , MSPToExpression[$$xGridsFlag]], If[$$yGridsFlag === "Specified" , $$yGrids , MSPToExpression[$$yGridsFlag]]}, AspectRatio->If[$$aspectRatioFlag === "Specified" , $$aspectRatio, MSPToExpression[$$aspectRatioFlag]], DefaultColor->If[{$$rColor,$$gColor,$$bColor} =!= {"","",""}, RGBColor[$$rColor,$$gColor,$$bColor], Automatic], Background-> If[{$$rColorBackg,$$gColorBackg,$$bColorBackg} =!= {"","",""}, RGBColor[$$rColorBackg,$$gColorBackg,$$bColorBackg], Automatic], ImageSize-> If[NumberQ[$$imageSize],$$imageSize,Automatic] ]; If[Head[result] === Graphics, MSPShow[result]], "The lists are incompatible."] ] %> <%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 :   " >


Data Plot options

Plot joined :  <%Mathlet MSPSetDefault[$$plotjoined, "False"] %> > True   > False   whether to draw a line joining the points

Point color in Hue style:  "> the value of Hue must be between 0 and 1

Point size :   ">   The diameter of points is given as a fraction of the total width of the graph The initial default point size is 0.008

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 label :  " >   y label :  " >

<%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:   " > (list of values)

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

<%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:   " > (list of values)

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

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

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)

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.


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