Skip to content

Commit 521b988

Browse files
committed
tweak README.md
1 parent 52f8c72 commit 521b988

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

README.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@ _A Bland–Altman plot ... is a method of data plotting used in analyzing the ag
1111
## Usage
1212

1313
- Place `bland_altman.py` in your working directory.
14-
- In your Python script or Jupyter notebook, run
14+
- To load the function into your Python script or Jupyter notebook, run
1515
```python
1616
from .bland_altman import bland_altman_plot
1717
```
18-
- Example
19-
```python
20-
from .bland_altman import bland_altman_plot
21-
import numpy as np
2218

23-
# Seed the random number generator.
24-
# This ensures that the results below are reproducible.
25-
np.random.seed(9999)
26-
m1 = np.random.random(20)
27-
m2 = np.random.random(20)
19+
## Example
20+
```python
21+
from .bland_altman import bland_altman_plot
22+
import numpy as np
2823

29-
my_bland_altman_plot = bland_altman_plot(m1, m2)
30-
```
24+
# Seed the random number generator.
25+
# This ensures that the results below are reproducible.
26+
np.random.seed(9999)
27+
m1 = np.random.random(20)
28+
m2 = np.random.random(20)
29+
30+
my_bland_altman_plot = bland_altman_plot(m1, m2)
31+
```
3132

32-
This should produce the following image.
33-
![A Bland-Altman plot](https://github.com/josesho/bland_altman/raw/master/bland-altman-plot.png)
33+
This should produce the following image.
34+
![A Bland-Altman plot](https://github.com/josesho/bland_altman/raw/master/bland-altman-plot.png)

0 commit comments

Comments
 (0)