updates from Stephan and Lukas comments
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 523 KiB After Width: | Height: | Size: 530 KiB |
BIN
Figures/model_g.pdf
Normal file
BIN
Figures/model_g.pdf
Normal file
Binary file not shown.
@@ -125,9 +125,23 @@ def plot_g(ax, df, models, i, let_x, let_y, titlesize=10, letsize=12):
|
||||
ax.text(let_x, let_y, string.ascii_uppercase[i], transform=ax.transAxes, size=letsize, weight='bold')
|
||||
ax.set_yscale('log')
|
||||
ax.set_xlim(-0.5, 9)
|
||||
ymin, ymax = ax.get_ylim()
|
||||
# ax.set_ylim(0.001, df[models[i]].max())
|
||||
from matplotlib.ticker import ScalarFormatter
|
||||
for axis in [ax.yaxis]:
|
||||
axis.set_major_formatter(ScalarFormatter())
|
||||
if i == 1 or i == 4:
|
||||
print(i)
|
||||
ax.set_yticks([0.1,1.0, 10])
|
||||
# ax.yaxis.set_major_formatter(ScalarFormatter())
|
||||
|
||||
# ax.set_yticklabels([0.1,1.0, 10])
|
||||
# ax.set_yscale('log')
|
||||
import matplotlib.ticker
|
||||
# ax.yaxis.set_minor_formatter(matplotlib.ticker.NullFormatter())
|
||||
locmin = matplotlib.ticker.LogLocator(base=10.0, subs=(0.1, 0.2, 0.4, 0.6, 0.8, 1, 2, 4, 6, 8, 10), numticks=100)
|
||||
ax.yaxis.set_minor_locator(locmin)
|
||||
ax.yaxis.set_minor_formatter(matplotlib.ticker.NullFormatter())
|
||||
return ax
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user