Skip to content

Commit 2c3db7b

Browse files
committed
use bg stylesheets
1 parent b6dcdc1 commit 2c3db7b

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

requirements/conda.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
matplotlib-base
22
numpy
33
scipy
4+
bg-mpl-stylesheets

requirements/pip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
matplotlib
22
numpy
33
scipy
4+
bg-mpl-stylesheets

src/diffpy/srfit/fitbase/fitrecipe.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
import matplotlib.pyplot as plt
4040
import six
41+
from bg_mpl_stylesheets.styles import all_styles
4142
from numpy import array, concatenate, dot, sqrt
4243

4344
from diffpy.srfit.fitbase.fithook import PrintFitHook
@@ -46,6 +47,8 @@
4647
from diffpy.srfit.interface import _fitrecipe_interface
4748
from diffpy.srfit.util.tagmanager import TagManager
4849

50+
plt.style.use(all_styles["bg-style"])
51+
4952

5053
class FitRecipe(_fitrecipe_interface, RecipeOrganizer):
5154
"""FitRecipe class.

0 commit comments

Comments
 (0)