Skip to content

Commit dab5ef9

Browse files
committed
hotfixes for plotting utilities
* update xlim in plot_comparison_test
1 parent a015af3 commit dab5ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csep/utils/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ def plot_comparison_test(results_t, results_w=None, axes=None, plot_args=None):
13421342
xTickPos = ax.get_xticks()
13431343
ax.yaxis.set_major_locator(matplotlib.ticker.MaxNLocator(integer=True))
13441344
ax.set_ylim([ylim[0], ylim[1]])
1345-
ax.set_xlim([0.5, len(results_t) - 0.5])
1345+
ax.set_xlim([-0.5, len(results_t) - 0.5])
13461346
ax.bar(xTickPos, numpy.array([9999] * len(xTickPos)), bottom=-2000,
13471347
width=(xTickPos[1] - xTickPos[0]), color=['gray', 'w'], alpha=0.2)
13481348
fig.tight_layout()

0 commit comments

Comments
 (0)