From 2a4d8c8dee4ab12b64a9f9b646cb55d7ee800c38 Mon Sep 17 00:00:00 2001 From: alexmadison Date: Tue, 8 Mar 2022 10:24:42 +0100 Subject: [PATCH] added sig names on rhs, ty maxime --- test/prsim_plot.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/prsim_plot.py b/test/prsim_plot.py index 0408a91..8dd0a07 100755 --- a/test/prsim_plot.py +++ b/test/prsim_plot.py @@ -54,17 +54,21 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""") raise Exception("Unknown colour given. I cba to code up general colours atm.") # Check if start time given + t0 = None for arg in argv: r = re.findall(r'-t0=(\d+)', arg) if len(r) >= 1: print(f"Filtering by start time t0 = {r[0]}") + t0 = int[r[0]] entries = [e for e in entries if int(e[0]) >= int(r[0])] # Check if end time given + t1 = None for arg in argv: r = re.findall(r'-t1=(\d+)', arg) if len(r) >= 1: print(f"Filtering by end time t1 = {r[0]}") + t1 = int[r[0]] entries = [e for e in entries if int(e[0]) <= int(r[0])] @@ -173,8 +177,12 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""") # ax.set_ylabel("Signal") ax.set_yticks([]) + # Plot signal names + sig_repeat_period = 20 for sig in unique_sigs: ax.text(-1, sig_to_index(sig), sig, ha = "right", va = "center", size = 10) + ax.text(num_times, sig_to_index(sig), sig, ha = "left", va = "center", size = 10) + for i in range(num_sigs-1): ax.axhline(i+0.5, c = "white", lw = 2)