Skip to content

Commit

Permalink
shell: Make plot persist after tsq1a exits
Browse files Browse the repository at this point in the history
When using replot, it was found that the plot window closes
after the main application exits. This results in a different
user experience compared to prior releases. Adding a -persist
argument restores this user experience.

This command is backward compatible with previous releases
of gnuplot.

Signed-off-by: Looi Hong Aun <[email protected]>
  • Loading branch information
HongAun-Intel committed Jan 14, 2025
1 parent adc43e9 commit 04588cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/tsq1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ else
# Start the liveplot
if [[ $DISPLAY ]]; then
echo "Starting plotting"
gnuplot -e "PLOT_TITLE='$PLAT: $IFACE: Time sync Quality Measurement';YMAX=50; filename='tsq-listener-data.txt'" $DIR/../common/liveplot.gnu &
gnuplot -persist -e "PLOT_TITLE='$PLAT: $IFACE: Time sync Quality Measurement';YMAX=50; filename='tsq-listener-data.txt'" $DIR/../common/liveplot.gnu &
fi
fi

Expand Down

0 comments on commit 04588cb

Please sign in to comment.