parser=argparse.ArgumentParser(description="Extract data from SWIFT snapshot(s) and create film/image")
# Snapshot Parameters
parser.add_argument("files",nargs='+',help="Snapshot files to be imaged")
parser.add_argument("-shift",nargs='*',type=float,default=[0.0],help="Shift applied to particles, sets the origin of the image. Either a single value or 3D position (x y z)")
parser.add_argument("--openextract",action='store_true',help="Open a previous pickled extract file (in this case the first argument is interpreted as the file)")
parser.add_argument("--saveextract",action='store_true',help="Save the extracted data as a pickle file")
# Histogram Parameters
parser.add_argument("-nbins",type=int,default=400,help="Number of bins in each dimension (x,y)")
parser.add_argument("-lim",type=float,default=0.5,help="Physical limit (max position) of the histogram (-lim,lim,-lim,lim). Use -shift to set the origin")
parser.add_argument("-view",type=str,default='xy',help="Which plane to image")
parser.add_argument("-mode",type=str,default='m',help="Physical quantity to be imaged, default: 'm' (mass density)")
parser.add_argument("-cmap",type=str,default=None,help="Colormap (try YlGnBu_r, Magma !). Cmasher cmaps are available, e.g. cmr.dusk, cmr.ocean,...")
parser.add_argument("-cmin",type=float,default=None,help="Minimum Physical value in the Histogram. This effectively sets the contrast of the images. Default: data minimum")
parser.add_argument("-cmax",type=float,default=None,help="Maximum physical value in the Histogram. Default: data maximum")
parser.add_argument("-interp",type=str,default='none',help="Interpolation used ('none','kaiser','gaussian',...). Default: none")