From bcab8745a0e0634d9d225872a1d0e63758382137 Mon Sep 17 00:00:00 2001 From: Lukas Prause Date: Thu, 19 Jan 2023 15:18:20 +0100 Subject: [PATCH] Background color for cell id. --- plot_transmission_timeline.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plot_transmission_timeline.py b/plot_transmission_timeline.py index be89cee..1c8c3c3 100755 --- a/plot_transmission_timeline.py +++ b/plot_transmission_timeline.py @@ -184,17 +184,15 @@ if __name__ == "__main__": scaley = 1.5 scalex = 1.0 - plt.figure(figsize=[6.4 * scaley, 4.8 * scalex]) + fig, ax = plt.subplots(figsize=[6.4 * scaley, 4.8 * scalex]) plt.title("{} with {}".format(transmission_direction, cc_algo)) - - fig, ax = plt.subplots(figsize=(16, 9)) fig.subplots_adjust(right=0.75) twin1 = ax.twinx() twin2 = ax.twinx() # Offset the right spine of twin2. The ticks and label have already been # placed on the right by twinx above. - twin2.spines.right.set_position(("axes", 0.6)) + twin2.spines.right.set_position(("axes", 1.2)) # create list fo color indices