Origin Version (Select Help-->About Origin): 7.5 Operating System: WinXP SP1 Hello, I tried to change the x-axis plot range of a 2D-graph (named dataplot1) via the script window by typing
set dataplot1 -b 1 -e 10;
but this results in a command error. What is going wrong?
Additionally, I'd also like to change the y-range, and also the x- and y-range of the plot in layer 2 of the active graph window. Can anyone help? Thank you very much in advance, bender
// layer 1 limits layer1.x.from = X min; layer1.x.to = X max; layer1.y.from = Y min; layer1.y.to = Y max; // layer 2 limits layer2.x.from = X min; layer2.x.to = X max; layer2.y.from = Y min; layer2.y.to = Y max;
The 'set' command takes a dataset, not a graph window, as argument which explains the command error. Also, the beginning and end arguments must be in separate statements. This will show points 4 through 10 in Data1_B but won't affect the X axis range...