Skip to content

Commit

Permalink
fix: plot extra split into [fit]
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jul 20, 2023
1 parent 77cbac6 commit 11477a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ Python 3.7+ (3.6 users get version 2.4). See [what's new](https://hist.readthedo
You can install this library from [PyPI](https://pypi.org/project/hist/) with pip:

```bash
python3 -m pip install "hist[plot]"
python3 -m pip install "hist[plot,fit]"
```

If you do not need the plotting features, you can skip the `[plot]` extra.
If you do not need the plotting features, you can skip the `[plot]` and/or
`[fit]` extras. `[fit]` is not currently supported in WebAssembly.

## Features

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ mpl = [
plot = [
"matplotlib >=3.0",
"mplhep >=0.2.16",
]
fit = [
"scipy >=1.4",
"iminuit >=2",
]
Expand Down
2 changes: 1 addition & 1 deletion src/hist/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"plot_stack",
)

_PLT_MISSING_MSG = "Hist plotting with fitting requires scipy and iminuit. Please install hist[plot] or manually install dependencies."
_PLT_MISSING_MSG = "Hist plotting with fitting requires scipy and iminuit. Please install hist[plot,fit] or manually install dependencies."


class FitResultArtists(NamedTuple):
Expand Down

0 comments on commit 11477a8

Please sign in to comment.