Skip to content
Snippets Groups Projects
Commit 2dcc7e76 authored by Olivier BICHLER's avatar Olivier BICHLER Committed by Maxence Naud
Browse files
parent 95515474
No related branches found
No related tags found
1 merge request!325[Upd] Patch v0.5.1
...@@ -136,7 +136,8 @@ class StaticAnalysisExt(aidge_core.StaticAnalysis): ...@@ -136,7 +136,8 @@ class StaticAnalysisExt(aidge_core.StaticAnalysis):
bot += serie bot += serie
else: else:
plt.bar(names_only, values) plt.bar(names_only, values)
ax.yaxis.minorticks_on() if callable(getattr(ax.yaxis, 'minorticks_on', None)):
ax.yaxis.minorticks_on() # introduced in matplotlib 3.9.x
plt.grid(axis='y', which='major', linestyle='--', color='gray') plt.grid(axis='y', which='major', linestyle='--', color='gray')
plt.grid(axis='y', which='minor', linestyle=':', color='lightgray') plt.grid(axis='y', which='minor', linestyle=':', color='lightgray')
formatter0 = matplotlib.ticker.EngFormatter(unit='') formatter0 = matplotlib.ticker.EngFormatter(unit='')
...@@ -171,7 +172,8 @@ class StaticAnalysisExt(aidge_core.StaticAnalysis): ...@@ -171,7 +172,8 @@ class StaticAnalysisExt(aidge_core.StaticAnalysis):
left += serie left += serie
else: else:
plt.barh(names_only, values) plt.barh(names_only, values)
ax.xaxis.minorticks_on() if callable(getattr(ax.xaxis, 'minorticks_on', None)):
ax.xaxis.minorticks_on() # introduced in matplotlib 3.9.x
plt.grid(axis='x', which='major', linestyle='--', color='gray') plt.grid(axis='x', which='major', linestyle='--', color='gray')
plt.grid(axis='x', which='minor', linestyle=':', color='lightgray') plt.grid(axis='x', which='minor', linestyle=':', color='lightgray')
formatter0 = matplotlib.ticker.EngFormatter(unit='') formatter0 = matplotlib.ticker.EngFormatter(unit='')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment