We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad56b4 commit f589d2bCopy full SHA for f589d2b
1 file changed
orbit/diagnostics/plot.py
@@ -482,9 +482,8 @@ def plot_bt_predictions2(
482
else:
483
split_key_list_ = split_key_list
484
485
- # initilize safe default values
486
- xlim = (0, 1)
487
- ylim = (0, 1)
+ xlim = None
+ ylim = None
488
489
if fix_xylim:
490
all_values = np.concatenate(
@@ -548,9 +547,9 @@ def plot_bt_predictions2(
548
547
color=PredPal.HOLDOUT_VERTICAL_LINE.value,
549
alpha=0.8,
550
)
551
- if fix_xylim:
+ if fix_xylim and ylim is not None:
552
ax.set_xlim(xlim)
553
- ax.set_ylim(*ylim) # unpack the tuple
+ ax.set_ylim(*ylim) # unpack the tuple
554
555
ax.legend()
556
plt.suptitle(title, fontsize=fontsize)
0 commit comments