plot_wind_1d.py
This is a general purpose routine for plotting variables written out by windsave2table for 1d models
Command line usage (if any):
usage:
plot_wind_1d.py filename
Description:
Primary routines:
doit
Notes:
History:
- 191102 ksl
Coding begun. This routine is largely parallel to the routine plot_wind.py (which is intended for 2d models
- plot_wind_1d.doit(filename='7MsolBigGapEXT.0.master.txt', var='t_r', grid='ij', inwind='', scale='guess', zmin=-1e+50, zmax=1e+50, plot_dir='', root='')
Plot a single variable from an astropy table (normally created with windsave2table, with various options
- Parameters:
var – is the variable to plot
grid – can be ij, log, or anything else. If ij then the plot will be in grid coordinates, if log the plot will be in on a log scale in physical coordiantes. If anything else, the plot will be on a linear scale in physical coordiantes
scale – indicates how the variable should be plotted. guess tells the routine to make a sensible choice linear implies the scale should be linear and log implies a log scale should be used
zmin – overide the max and mimimum in the array (assuming these limits are with the range of the variable)
zmax – overide the max and mimimum in the array (assuming these limits are with the range of the variable)
Description:
Notes:
History:
- plot_wind_1d.get_data(filename='fiducial_agn_master.txt', var='t_r', grid='ij', inwind='', scale='guess', zmin=-1e+50, zmax=1e+50)
This routine reads and scales the data from a single variable that is read from an ascii table representation of one or more of the parameters in a windsave file
- plot_wind_1d.just_plot(x, xvar, root, title, xlabel, ylabel, fig_no=1)
This routine simply is produces a plot of a variable from that has been printed to an astropy table with a routine like windsave2table. This function is simply a plotting routine