File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,21 @@ Real probability scales for matplotlib
3
3
4
4
[ ![ Build Status] ( https://travis-ci.org/phobson/mpl-probscale.svg )] ( https://travis-ci.org/phobson/mpl-probscale )
5
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 ")
23
+
You can’t perform that action at this time.
0 commit comments