spawing trial_plot from main.py