Skip to content

Commit

Permalink
Merge pull request #48 from bobleesj/tutorial
Browse files Browse the repository at this point in the history
Update key and URLs in README.md
  • Loading branch information
sbillinge committed Aug 9, 2024
2 parents 4d2ffc3 + 01dd021 commit 8f6b1e5
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 14 deletions.
18 changes: 10 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ bg-mpl-stylesheets
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
:target: https://github.com/psf/black

.. |Codecov| image:: https://codecov.io/gh/bg-mpl-stylesheets/bg-mpl-stylesheets/branch/main/graph/badge.svg
:target: https://codecov.io/gh/bg-mpl-stylesheets/bg-mpl-stylesheets
.. |Codecov| image:: https://codecov.io/gh/Billingegroup/bg-mpl-stylesheets/branch/main/graph/badge.svg
:target: https://codecov.io/gh/Billingegroup/bg-mpl-stylesheets

.. |Forge| image:: https://img.shields.io/conda/vn/conda-forge/bg-mpl-stylesheets
:target: https://anaconda.org/conda-forge/bg-mpl-stylesheets
Expand All @@ -23,7 +23,7 @@ bg-mpl-stylesheets
:target: https://pypi.org/project/bg-mpl-stylesheets/

.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
:target: https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/issues
:target: https://github.com/Billingegroup/bg-mpl-stylesheets/issues

A package for using Billinge group style files

Expand All @@ -34,7 +34,7 @@ Citation

If you use bg-mpl-stylesheets in a scientific publication, we would like you to cite this package as

bg-mpl-stylesheets Package, https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets
bg-mpl-stylesheets Package, https://github.com/Billingegroup/bg-mpl-stylesheets

Installation
------------
Expand Down Expand Up @@ -69,7 +69,7 @@ and then install the package ::
pip install bg-mpl-stylesheets

If you prefer to install from sources, after installing the dependencies, obtain the source archive from
`GitHub <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/>`_. Once installed, ``cd`` into your ``bg-mpl-stylesheets`` directory
`GitHub <https://github.com/Billingegroup/bg-mpl-stylesheets/>`_. Once installed, ``cd`` into your ``bg-mpl-stylesheets`` directory
and run the following ::

pip install .
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 Expand Up @@ -205,7 +205,7 @@ Support and Contribute

`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of bg-mpl-stylesheets. Please join the bg-mpl-stylesheets users community by joining the Google group. The bg-mpl-stylesheets project welcomes your expertise and enthusiasm!

If you see a bug or want to request a feature, please `report it as an issue <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/issues>`_ and/or `submit a fix as a PR <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/Billingegroup/bg-mpl-stylesheets/issues>`_ and/or `submit a fix as a PR <https://github.com/Billingegroup/bg-mpl-stylesheets/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.

Feel free to fork the project and contribute. To install bg-mpl-stylesheets
in a development mode, with its sources being directly used by Python
Expand All @@ -228,7 +228,9 @@ trying to commit again.

Improvements and fixes are always appreciated.

Before contribuing, please read our `Code of Conduct <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/blob/main/CODE_OF_CONDUCT.rst>`_.
Before contribuing, please read our `Code of Conduct <https://github.com/Billingegroup/bg-mpl-stylesheets/blob/main/CODE_OF_CONDUCT.rst>`_.



Contact
-------
Expand Down
4 changes: 2 additions & 2 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ bg-mpl-stylesheets is developed by Billinge Group
and its community contributors.

For a detailed list of contributors see
https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets/graphs/contributors.
https://github.com/Billingegroup/bg-mpl-stylesheets/graphs/contributors.

============
Installation
============

See the `README <https://github.com/bg-mpl-stylesheets/bg-mpl-stylesheets#installation>`_
See the `README <https://github.com/Billingegroup/bg-mpl-stylesheets#installation>`_
file included with the distribution.

=================
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
23 changes: 23 additions & 0 deletions news/tutorial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

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

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* URLs referring to the organization in README.md

**Security:**

* <news item>
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 8f6b1e5

Please sign in to comment.