How Plot

 

Plot Methods

GraphLayer::AddPlot method support plot data from worksheet and matrix.

Template and Plot IDs

Before plotting with this method, please make sure to create a graph with the correct template. For example, if you want to make a 3D scatter plot, please create a graph window with template of "3D" first. The following table lists the plot IDs and the corresponding graph template name for each plot type.

Graph Type Plot ID Column Designation Template (*.OTP)
3D bars IDM_PLOT_SURFACE_BARS XYZ gl3dbars
3D Bars IDM_PLOT_3D_BAR XYY bar3d
3D Ribbons IDM_PLOT_3D_RIBBON XYY ribbon
3D Scatter IDM_PLOT_3D_SCATTER_MATRIX Matrix gl3DScatterMat
3D Scatter + Error Bar IDM_PLOT_3D_SCATTER_ERR XYZZ gl3DError
3D scatter or trajectory plots IDM_PLOT_3D_LINE XYZ 3d, traject, gl3d, glTraject
3D Surface IDM_PLOT_3D_SURFACE_NEW XYZ glmesh, glcmap, glwirefrm, glwireface
3D surface plots IDM_PLOT_3D_MESH Matrix mesh, xconst, yconst, cmap, wirefrm, wireface, glmesh, glxconst, glyconst, glcmap, glwirefrm,glwireface
3D Vector IDM_PLOT_3D_VECTOR XYZXYZ/XYZdXdYdZ gl3DVector
3D Walls IDM_PLOT_3D_WALL XYY walls
Area IDM_PLOT_AREA XY area
Bar IDM_PLOT_BAR XY bar
Box IDM_PLOT_BOX Y box
Bubble (indexed size) IDM_PLOT_INDEX_SIZE XYY scatter
Bubble + color mapped (2 Y's selected) IDM_PLOT_INDEX_SIZE_COLOR_SAME_COLOUMN XYY scatter
Bubble+color mapped (3 Y's selected) IDM_PLOT_INDEX_SIZE_COLOR XYYY scatter
Color mapped IDM_PLOT_INDEX_COLOR XYY scatter
Column IDM_PLOT_COLUMN XY column
Column Stack, Wind Rose IDM_PLOT_COLUMN_STACK XYY Range (2Y selected) column, windrose
Contours IDM_PLOT_CONTOUR Matrix contour, contline, contgray
Error Bar IDM_PLOT_ERRBAR XYyErr Errbar
Fill area IDM_PLOT_FILL_COLOR_BAND XYY fillarea
Fill area IDM_PLOT_AREA_STACK XYY Range (2Y selected) fillarea
Floating Bar IDM_PLOT_COLUMN_FLOAT XYY floatbar
Heat Map IDM_PLOT_HEAT_MAP Matrix HeatMap
High-Low-Close IDM_PLOT_HILOCLOSE XYYY hclose
Histogram IDM_PLOT_HISTOGRAM_TYPE X hist
Image IDM_PLOT_MATRIX_IMAGE Matrix image
Japanese Candlestick IDM_PLOT_STOCK_CHART_CANDLESTICK OHLC Candlestick
Line IDM_PLOT_LINE XY line
Line+symbol IDM_PLOT_LINESYMB XY linesymb
OHLC Bar Chart IDM_PLOT_STOCK_CHART_BAR OHLC OHLCBarchart
OHLC Chart IDM_PLOT_OPEN_HI_LO_CLOSE OHLC Candlestick, OHLCBarChart
Parallel IDM_PLOT_PARALLEL YY Parallel
Pie chart IDM_PLOT_PIE_TYPE XY pie
Polar IDM_PLOT_POLAR XY polar
Polar Contour IDM_PLOT_TRI_CONTOUR XYZ PolarContour, TriContour, TriContline, TriContgray
Polar X(R) Y(Theta) IDM_PLOT_POLAR_XR_YTHETA XY PolarXrYTheta
Scatter IDM_PLOT_SCATTER XY scatter
Smith Chart IDM_PLOT_SMITH_CHART XY SmithCht
Stack Bar IDM_PLOT_BAR_STACK XYY Range (2Y selected) bar
Ternary IDM_PLOT_XYZ_TRIANGULAR XYZ ternary
Ternary Contour IDM_PLOT_TERNARY_CONTOUR XYZZ TernaryContour
X Error Bar IDM_PLOT_X_ERRBAR XYxErr Errbar
XYAM Vector IDM_PLOT_VECTOR XYYY vector
X Y Error IDM_PLOT_XY_ERROR_BARS XxErrYE ERRBAR
XYXY Vector IDM_PLOT_FLOWVECTOR XYXY vectxyxy
Y Error IDM_PLOT_Y_ERROR_BARS XYE ERRBAR

A Way to Get Template Name

Need to specify graph template in AddPlot method when plot in Origin C. To know the graph template name, please reference the following steps.

To get the template name for Surface plot.

  1. Plot this 3D graph in Origin panel, then right click on the title of this 3D graph window, choose Save Template As...
  2. In dialog there is a editbox named Template Name, this is the template name for the type graph.

For example, the template of Color Map Surface is "CMAP".