Mike Buess
USA
3037 Posts |
Posted - 09/24/2002 : 8:38:30 PM
|
Are you referring to the New Graph button that opens an empty plot window? If so, it runs the command
win -t Plot Origin; // Open a new plot window using the template Origin.otp
To create a button that does that and also changes the axis titles first open a new text file in Notepad. (If you are using Origin 7 you can do this in CodeBuilder instead.) Add the following section to the text file:
[Main] win -t Plot Origin; label -xb "time/intensity"; // set bottom axis title label -yl "energy/counts"; // set left axis title
Save the file as NewPlot.ogs in your Origin program folder. (Of course you can name the file and the section header [Main] anything you want.)
Now that your script is ready you can assign it to a button. Select Toolbars on Origin's View menu and go to the Button Groups tab. Find User Defined on the Groups list, select the button labelled Plot and click the Settings button below. Enter the following Button Settings...
File: NewPlot Section: Main Arguments: (leave blank) Tool Tip Text: (Enter the tool tip message you want to see when the mouse cursor is over the button.) Status Bar: (Enter the status bar message) Context: (Leave this alone for now.)
Click OK and drag the Plot button to any existing toolbar. Finally, close the Customize Toolbar dialog and try out your new button.
Mike Buess Origin WebRing Member |
 |
|