Skip to content

Commit 12bf2de

Browse files
committed
Merge pull request #7 from phobson/fix-readme
fix readme display in github repo
2 parents 011362b + 2baae18 commit 12bf2de

File tree

3 files changed

+49
-30
lines changed

3 files changed

+49
-30
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# mpl-probscale
2+
Real probability scales for matplotlib
3+
4+
[![Build Status](https://travis-ci.org/phobson/mpl-probscale.svg)](https://travis-ci.org/phobson/mpl-probscale)
5+
[![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")

README.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/index.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,34 @@
44
contain the root `toctree` directive.
55
66
7-
.. include:: ../README.rst
7+
mpl-probscale: Real probability scales for matplotlib
8+
=====================================================
89

10+
.. image:: https://travis-ci.org/phobson/watershed.svg?branch=master
11+
:target: https://travis-ci.org/phobson/watershed
12+
13+
.. image:: https://coveralls.io/repos/phobson/mpl-probscale/badge.svg?branch=master&service=github
14+
:target: https://coveralls.io/github/phobson/mpl-probscale?branch=master
15+
16+
https://github.com/phobson/mpl-probscale
17+
18+
Simply importing ``probscale`` let's you use probability scales in your matplotlib figures:
19+
20+
.. code-block:: python
21+
22+
import matplotlib.pyplot as plt
23+
import probscale
24+
25+
plt.style.use('ggplot')
26+
fig, ax = plt.subplots(figsize=(8, 4))
27+
ax.set_ylim(1e-2, 1e2)
28+
ax.set_yscale('log')
29+
30+
ax.set_xlim(0.5, 99.5)
31+
ax.set_xscale('prob')
32+
33+
34+
.. image:: /img/example.png
935

1036

1137
API References

0 commit comments

Comments
 (0)