From 3e5c74e312c6650785a314fdf4b40191278747bc Mon Sep 17 00:00:00 2001 From: Simon Billinge Date: Tue, 16 Jul 2024 05:31:10 -0400 Subject: [PATCH] fix imports and news --- news/patch_style.rst | 23 +++++++++++++++++++++++ src/diffpy/pdfmorph/pdfplot.py | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 news/patch_style.rst diff --git a/news/patch_style.rst b/news/patch_style.rst new file mode 100644 index 00000000..5e697103 --- /dev/null +++ b/news/patch_style.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* updated imports of bg-mpl-stylesheets for latest release of that code + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/src/diffpy/pdfmorph/pdfplot.py b/src/diffpy/pdfmorph/pdfplot.py index 8b64c1d9..57478ac9 100644 --- a/src/diffpy/pdfmorph/pdfplot.py +++ b/src/diffpy/pdfmorph/pdfplot.py @@ -16,9 +16,9 @@ import matplotlib.pyplot as plt import numpy -from bg_mpl_stylesheet.bg_mpl_stylesheet import bg_mpl_style +from bg_mpl_stylesheets.styles import all_styles -plt.style.use(bg_mpl_style) +plt.style.use(all_styles["bg_style"]) # FIXME - make this return the figure object in the future, so several views