Skip to content

Commit b83fc04

Browse files
committed
Merge pull request #4 from phobson/better-readme
example in readme
2 parents 68b00d2 + 2fdf73a commit b83fc04

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,21 @@ Real probability scales for matplotlib
33

44
[![Build Status](https://travis-ci.org/phobson/mpl-probscale.svg)](https://travis-ci.org/phobson/mpl-probscale)
55
[![Coverage Status](https://coveralls.io/repos/phobson/mpl-probscale/badge.svg?branch=master&service=github)](https://coveralls.io/github/phobson/mpl-probscale?branch=master)
6+
7+
Simply importing `probscale` let's you use probability scales in your matplotlib figures:
8+
9+
```python
10+
import matplotlib.pyplot as plt
11+
import probscale
12+
13+
plt.style.use('ggplot')
14+
fig, ax = plt.subplots(figsize=(8, 4))
15+
ax.set_ylim(1e-2, 1e2)
16+
ax.set_yscale('log')
17+
18+
ax.set_xlim(0.5, 99.5)
19+
ax.set_xscale('prob')
20+
```
21+
22+
![Alt text](docs/img/example.png "Example axes")
23+

docs/img/example.png

41 KB
Loading

0 commit comments

Comments
 (0)