Better array shape handling in stfio_plot.py