Spaces:
Sleeping
Sleeping
Commit
·
8b9dd80
1
Parent(s):
0776af4
Multiple locator is better
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import seaborn as sns
|
|
12 |
import matplotlib.pyplot as plt
|
13 |
from datasets import load_dataset
|
14 |
from scipy.special import expit
|
15 |
-
from matplotlib.ticker import
|
16 |
|
17 |
from hdinterval import HDI, HDInterval
|
18 |
|
@@ -155,7 +155,7 @@ class ComparisonPlotter(DataPlotter):
|
|
155 |
for i in ('x', 'y'):
|
156 |
lim = getattr(ax, f'set_{i}lim')
|
157 |
lim(-0.01, 1.01)
|
158 |
-
ax.xaxis.set_major_locator(
|
159 |
|
160 |
try:
|
161 |
ci_mid = self.hdi.at(0.5)
|
|
|
12 |
import matplotlib.pyplot as plt
|
13 |
from datasets import load_dataset
|
14 |
from scipy.special import expit
|
15 |
+
from matplotlib.ticker import MultipleLocator
|
16 |
|
17 |
from hdinterval import HDI, HDInterval
|
18 |
|
|
|
155 |
for i in ('x', 'y'):
|
156 |
lim = getattr(ax, f'set_{i}lim')
|
157 |
lim(-0.01, 1.01)
|
158 |
+
ax.xaxis.set_major_locator(MultipleLocator(base=0.1, offset=0))
|
159 |
|
160 |
try:
|
161 |
ci_mid = self.hdi.at(0.5)
|