Python examples
From VisItusers.org
First, make sure you read the general tips on CLI usage, here. Among other things, it describes how to do your work using VisIt's gui and then have VisIt produce a script that accomplishes the same thing.
[edit] Basic scripts
Here are some examples of using VisIt's Python-based command line interface in a basic way:
- Creating a color table
- Loading the VisIt module into Python
- Using FLASH data in VisIt with Python
- Animating an isosurface
- Animating the camera
- Acceleration for camera movement ... note that this isn't really VisIt code, but it can make your animations look a lot better.
- Animating and spinning
- Setting the limits of a Pseudocolor plot
- Saving Min Max and Average values over time
- Modifying plot legends
- Examples of launching parallel engines
- Plotting data from FLASH files
[edit] Advanced scripts
Here are some more advanced usages of the command line interface:
- WriteScript
- Saving and restoring a state objects in JSON files
- Doing your own query over time
- Doing subset selection
- Using pick to create curves
- Plotting mathematical functions in VisIt
- Differencing data sets
- Isolating a region and creating a distance field
- A script for a sophisticated movie that involves acceleration and animating operator and time
- A script that assesses VisIt's material interface reconstruction quality
- A script that revolves all 2D scalars in a file and writes out the 3D revolved data to a new file
- Animated slice movie
- Rectout (a "lineout" with width)
- Accessing lineout data
- visitrc files
- Installing Python callback functions for VisIt actions
- Exporting databases
- Visualizing terrain
- Slicing in response to time change
- Interpolating between time steps
- HSV Modulate
- Slice open animation
- Ternary Plot
- Bins using expressions
- Bar Chart
