Skip to content

Commit fd0af86

Browse files
committed
force ax limits to 0, 100 with axtype='pp'
1 parent 7289f3b commit fd0af86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

probscale/viz.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def probplot(data, ax=None, axtype='prob', probax='x',
118118
fitprobs = 'x'
119119
else:
120120
fitprobs = None
121+
if axtype == 'pp':
122+
ax.set_xlim(left=0, right=100)
121123

122124
ax.set_yscale(otherscale)
123125
fitlogs = 'y' if otherscale == 'log' else None
@@ -130,6 +132,8 @@ def probplot(data, ax=None, axtype='prob', probax='x',
130132
fitprobs = 'y'
131133
else:
132134
fitprobs = None
135+
if axtype == 'pp':
136+
ax.set_ylim(bottom=0, top=100)
133137

134138
ax.set_xscale(otherscale)
135139
fitlogs = 'x' if otherscale == 'log' else None

0 commit comments

Comments
 (0)