From c3d130a715b90ad23a3349b9508f5cd3bfec5244 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 2 Mar 2022 11:35:58 +0100 Subject: [PATCH] Fig WR clock fix xaxis factor --- figures/clocks/src/wr-clocks.py | 10 +++++----- figures/clocks/wr-clocks.pdf | Bin 16158 -> 16160 bytes 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/figures/clocks/src/wr-clocks.py b/figures/clocks/src/wr-clocks.py index a782151..161b93e 100755 --- a/figures/clocks/src/wr-clocks.py +++ b/figures/clocks/src/wr-clocks.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -__doc__ = \ """Generate some figures showing the alignment of clocks in a White Rabbit system with GrandMaster setup. """ @@ -66,8 +65,8 @@ def main(time_base = 10e-9): dio_freq = 12.5*clock_freq # Hz pps_in_early = -1.7/clock_freq #s - pps_in_width = 10e1/clock_freq #s - pps_out_width = 10e1/clock_freq #s + pps_in_width = 1e2/clock_freq #s + pps_out_width = 1e2/clock_freq #s t = np.linspace(-2.25*1/clock_freq, 0.8*1/clock_freq, 5000) # @@ -86,7 +85,8 @@ def main(time_base = 10e-9): ## Random event timestamp timestamped_event = t[first_shared_edge(dio, random_event_idx)] - + + # Create the figure fig, axs = plt.subplots(4,1, sharex=True, gridspec_kw={'hspace': 0}, figsize=(16,4)) @@ -121,7 +121,7 @@ def main(time_base = 10e-9): if time_base == 10e-9: axs[-1].set_xlabel("Time (ns)") - ticks = axs[-1].get_xticks()/time_base + ticks = axs[-1].get_xticks()*10/time_base # 10 was experimentally determined axs[-1].set_xticklabels(np.floor(ticks)) else: axs[-1].set_xlabel("Time (s)") diff --git a/figures/clocks/wr-clocks.pdf b/figures/clocks/wr-clocks.pdf index 301e0fc1e48650e00e3631eccae08de20e15ee61..eb6fb225df973de01a132dd1eab3ca491871f595 100644 GIT binary patch delta 1382 zcmZvbYe*DP7>1DqbIerKB#?E>Rw+o&nKLtIj&7nWTM=D^&HT{~*A(xTX+^1%AX-Fd z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