From 57b91ff139e67dc1cf843348ee116895a1e57bcb Mon Sep 17 00:00:00 2001 From: blacktwin Date: Thu, 15 Apr 2021 00:38:42 -0400 Subject: [PATCH] draw new graph each library fixes x-axis from slipping and previous stats overlay --- utility/library_growth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utility/library_growth.py b/utility/library_growth.py index 07c59e1..b9a52ad 100644 --- a/utility/library_growth.py +++ b/utility/library_growth.py @@ -168,11 +168,10 @@ if __name__ == '__main__': # Defining libraries libraries = exclusions(opts.allLibraries, opts.libraries, sections_dict) - graph = graph_setup() - for library in libraries: library_title = sections_dict.get(library) print("Starting {}".format(library_title)) + graph = graph_setup() plex_growth(library, graph) plex_released(library, graph) plt.savefig('{}_library_growth.png'.format(library_title), bbox_inches='tight', dpi=100)