Our Grapher, Surfer, Voxler, and MapViewer applications all come with powerful automation functionality to speed up repetitive processes, but many users don't have experience with scripting so they miss out on this functionality. Luckily for those users, Grapher comes with a script recorder that records a script for the process that's being performed in the user interface. This blog article will walk through a simple example of how to use this script recorder, so you can begin automating your work without having to learn how to script.
Let's say you want to a line plot like this for multiple data files.
If you have a whole bunch of data files, you may be interested in adding a loop to do this for all data files in a specific directory, but for only a few data files, it's easier for novice scripters to just run the script for each data file. To do this:
You don't have to be an expert scripter to automate your workflow in Grapher. If you want to become an expert, see these resources:
Also be on the lookout for the upcoming knowledge base article: What is the easiest way to learn Grapher's Scripter?
Hi P Gautam,
Thank you for posting your comment. It is not currently possible to record your steps from a past project because the steps are not logged and saved with the project. I can add a feature request to our database upon your behalf for future versions of Grapher to log all steps that were used to create a plot or always have the recorder on.
That would be great!
Because of so many different software-dependent "scripting languages", it is hard to master the steps, unless one is making massive use of some templates. Adding this functionality by default is definitely welcome.
I already have several graphs that work on designated worksheets/columns.
Looks like the method you suggest requires repeating the whole graphing process to have a script.
But, is there anyway to have the script record for existing grapher plots without going again through the detailed process?