new file:   plot_per_query.py