2.5.44 speedmode
Menu Information
Graph: Speed Mode
Brief Information
Set speed mode property of graph layers
Command Line Usage
1. speedmode index:=folder;
2. speedmode sm:=off;
3. speedmode sm:=custom wks:=1 max:=500;
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
Display Name
|
Variable Name
|
I/O and Type
|
Default Value
|
Description
|
Target
|
index
|
Input
int
|
page
|
Specifies the target graphs.
Option list
- 0=folder:All in Active Folder
- All graphs in current folder. Embed graphs and graphs in the subfolders of the current folder are excluded.
- 1=recursive:All in Active Folder (Recursive)
- All graphs in current folder and its subfolders. Embed graphs are not included.
- 2=open:All in Active Folder (Open)
- All open graphs in current folder. Embed graphs, hidden graphs and graphs in the subfolders are not included.
- 3=embed:All in Active Folder (Include Embedded)
- All graphs in current folder, including embedded graphs and hidden graphs.
- 4=project:All in Project
- All graphs in the current project.
- 5=page:All in Active Page
- All graphs in the active page.
- 6=layer:Active Layer
- All graphs in active layer.
|
Speed Mode
|
sm
|
Input
int
|
off
|
Specifies speed mode setting.
Option list
- 0=off:Off
- Turns off the speed mode
- 1=low:On - Low
- Turns on speed mode by specifying the maximum points. For worksheet data, maximum points per curve are 5000. For matrix data, maximum points per dimension are: X =48, Y=48. You can see these settings in the Size/Speed tab of the Plot Details dialog.
- 2=med:On - Medium
- Turns on speed mode by specifying the maximum points. For worksheet data, maximum points per curve are 3000. For matrix data, maximum points per dimension are: X =32, Y=32. You can see these settings in the Size/Speed tab of the Plot Details dialog.
- 3=high:On - High
- Turns on speed mode by specifying the maximum points. For worksheet data, maximum points per curve are 800. For matrix data, maximum points per dimension are: X =16, Y=16. You can see these settings in the Size/Speed tab of the Plot Details dialog.
- 4=custom:Customize
- Turns on speed mode by specifying any maximum points you want with the variables: wks, max, mat, x and y.
|
Worksheet data, maximum points per curve
|
wks
|
Input
int
|
1
|
This variable is available only when Customize is selected for Speed Mode. It specifies whether or not the max variable should be available.
|
Max
|
max
|
Input
int
|
3000
|
This variable is available only when the wks variable is set to 1. It specifies the maximum points allowed per curve.
|
Matrix data, maximum points per dimension
|
mat
|
Input
int
|
1
|
This variable is available only when Customize is selected for Speed Mode. It specifies whether or not the x variable and the y variable should be available.
|
X
|
x
|
Input
int
|
32
|
This variable is available only when the mat variable is set to 1. It works with the y variable. Let n and m be the value of the x variable and the y variable respectively. When the number of data points in a data plot exceeds n or m, Origin displays a subset of the data plot composed of -- at maximum -- n by m points. This subset is drawn by extracting values at regular intervals from the matrix columns (X) and rows (Y).
|
Y
|
y
|
Input
int
|
32
|
This variable is available only when the mat variable is set to 1. It works with the x variable. Let n and m be the value of the x variable and the y variable respectively. When the number of data points in a data plot exceeds n or m, Origin displays a subset of the data plot composed of -- at maximum -- n by m points. This subset is drawn by extracting values at regular intervals from the matrix columns (X) and rows (Y).
|
Description
In addition to graphic image caching, you can use Origin's Speed Mode to increase the redraw speed of your graph layer. With speed mode, you can control the number of data points displayed in a graph layer. This XF is most useful when you are working with large data sets. Also, you can change speed mode settings in the Plot Details dialog.
Notes: When Speed Mode is enabled, the layer icon displays in red and the Speed Mode is on watermark appears in the layer. However, the watermark is not included when printing, copying, or exporting the graph.
Examples
1.To turn on the speed mode for active graph, run the following script:
speedmode sm:=3
2.To customize the speed mode settings for a 3D graph which is plotted from matrix data. You can select Graph: Speed Mode from the menu to open dialog when the graph is active. Then you can edit the options in the X-Function dialog.
Related X-Functions
Keywords:plotting speed
|