plot_wind.py
- Synopsis:
These are routines for plotting various parameters in of the wind after these parameters have been saved to an astropy-compatible ascii table
- Command line usage
plot_wind filename var
to make a plot of a single variable from the command line
Description:
- Primary routines:
- doitCreate a plot of a single variable in a file made with
windsave2table. This is the routine called from the command line. Additional options are available when called from a python script.
- compare_separateCompare a single variable in two
different runs of python and produce 3 separate plots one for each run and one containing the difference
- compare: Similar to compare_separate but produces a
single file
- plot_wind.compare(f1='sv_master.txt', f2='sv_master.txt', var='t_r', grid='ij', inwind='', scale='guess', zmin=-1e+50, zmax=1e+50, fig_no=5)
Compare results of two variables within a single plot
The three plots are of from the first file, the second file, and the difference respectively
- plot_wind.compare_separate(f1='fiducial_agn_master.txt', f2='fiducial_agn_master.txt', var='t_r', grid='ij', inwind='', scale='guess', zmin=-1e+50, zmax=1e+50, fig_no=5)
This routine compares the same variable from two different runs of python, and produces Three separate plots. The plots represent the variable in the first file, the variable in the second file and the difference between the two
- plot_wind.doit(filename='fiducial_agn.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
where var is the variable to plot where 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 where 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 where zmin and zmax overide the max and mimimum in the array (assuming these limits are with the range of the variable)
- plot_wind.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
The grid obptions:
ij log lin
- plot_wind.just_plot(x, y, xvar, root, title, xlabel, ylabel, fig_no=1, vmin=0, vmax=0)
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
- plot_wind.steer(argv)
Controlling routine for py_wind