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
- Simple Slices
- Simple Probability Distribution Functions
- Simple Phase Plots
- Simple 1D Histograms
- Simple Projections
- Simple Radial Profiles
- Making Plots of Multiple Fields Simultaneously
- Accessing and Modifying Plots Directly
- Off-Axis Slicing
- Off-Axis Projection
- Simple Volume Rendering
- Image Background Colors
- 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
- Volume Rendering with Bounding Box and Overlaid Grids
- Plotting Streamlines
- Plotting Isocontours
- Plotting Isocontours and Streamlines
- Cosmological Analysis
- Constructing Data Objects