# To draw a slice at equidistant locations throughout # your domain for many files you could do something # roughly like this import tecplot as tp import numpy as np files = "" #... list of files to process ... for f in files: # Load data in Tecplot format dataset = tp.data.load_tecplot(f) # Get the extents in the X direction xmin, xmax = dataset.variable('X').minmax() # Create 10 slice positions across the domain slice_positions = np.linspace(xmin, xmax, 10) # Loop over the positions and export an image for slice_pos in slice_positions: # ... execute commands to set slice position and plot style ... # see 03_slices_along_wing.py in your Tecplot installation's # pytecplot/examples folder # export the image tp.export.save_png("outputfile_slice_{}".format(slice_pos)) # See https://www.tecplot.com/docs/pytecplot/api/tecplot.plot_style.html#id119 # for more