Example Scripts¶
yt scripts can be a bit intimidating, and at times a bit obtuse. But there’s a lot you can do, and this section of the manual will assist with figuring out how to do some fairly common tasks – which can lead to combining these, with other Python code, into more complicated and advanced tasks.
All of the data used here is freely available from http://yt-project.org/data/ where you will find links to download individual datasets.
If you want to take a look at more complex recipes, or submit your own, check out the yt Hub.
Note
To contribute your own recipes, please fork the documentation repository!
- Making Simple Plots
- Calculating Dataset Information
- A Few Complex Plots
- Simple Multi-Plot
- Multi-Width Image
- Multi-Plot Slice and Projections
- Simple Multi-Plot Multi-Panel
- Advanced Multi-Plot Multi-Panel
- Projecting Off-Axis
- Projecting Off-Axis with a Colorbar
- Thin-Slice Projections
- Plotting Particles Over Fluids
- Overplotting Velocity Vectors
- Overplotting Contours
- Styling Radial Profile Plots
- Moving a Volume Rendering Camera
- Zooming into an Image
- Opaque Volume Rendering
- Downsampling Data for Volume Rendering
- Cosmological Analysis
- Constructing Data Objects
- Advanced Recipes