Skip to content

Commit

Permalink
Change from bg_style to bg-style
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Aug 9, 2024
1 parent 1e40a0b commit 01dd021
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ To use the stylesheet, near the beginning your python script type ::
for example ::

from bg_mpl_stylesheets.styles import all_styles
plt.style.use(all_styles["bg_style"])
plt.style.use(all_styles["bg-style"])

If you wish to use BillingeGroup stylesheet as the default style for all your plots, please follow these steps.

Expand Down Expand Up @@ -132,7 +132,7 @@ You can also update style parameters locally by using the matplotlib style conte
plt.ylabel('some numbers')
plt.show()

Here are a snapshot of values in ``all_styles["bg_style"]`` sheet which you may override with ``rc.parms`` to fine tune things: ::
Here are a snapshot of values in ``all_styles["bg-style"]`` sheet which you may override with ``rc.parms`` to fine tune things: ::

'lines.linewidth': 2.50,
'lines.markeredgewidth': 0.25,
Expand Down
2 changes: 1 addition & 1 deletion example/color_cycles.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# please read the README about how to install the group plot style package
# and how to import it and use
plt.style.use(all_styles["bg_style"])
plt.style.use(all_styles["bg-style"])


x = np.arange(0, 1, 0.01)
Expand Down
2 changes: 1 addition & 1 deletion example/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# please read the README about how to install the group plot style package
# and how to import it and use
plt.style.use(all_styles["bg_style"])
plt.style.use(all_styles["bg-style"])

# load PDF data
r, gcalc, dr, dg, gdiff = loadData("example/CdSe_data.fgr").T
Expand Down
3 changes: 1 addition & 2 deletions news/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**Changed:**

* <news item>
* key name in the style dictionary from all_styles["bg_style"] to all_styles["bg-style"]

**Deprecated:**

Expand All @@ -16,7 +16,6 @@

**Fixed:**

* key name in the style dictionary from all_styles["bg-style"] to all_styles["bg_style"] in README.md
* URLs referring to the organization in README.md

**Security:**
Expand Down
2 changes: 1 addition & 1 deletion src/bg_mpl_stylesheets/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def update_style_with_latex(style):
return style


all_styles = {"bg_style": bg_style}
all_styles = {"bg-style": bg_style}

for key, style in all_styles.items():
all_styles.update({key: update_style_with_latex(style)})
2 changes: 1 addition & 1 deletion src/bg_mpl_stylesheets/tests/test_bg_mpl_stylesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_update_style_with_latex():
actual = styles.update_style_with_latex(styles.all_styles["bg_style"])
actual = styles.update_style_with_latex(styles.all_styles["bg-style"])
expected = expected_style
assert expected == actual

Expand Down

0 comments on commit 01dd021

Please sign in to comment.