File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ def plot_recovery(
5151 color = "#8f2727" ,
5252 n_col = None ,
5353 n_row = None ,
54+ xlabel = "Ground truth" ,
55+ ylabel = "Estimated" ,
5456):
5557 """Creates and plots publication-ready recovery plot with true vs. point estimate + uncertainty.
5658 The point estimate can be controlled with the ``point_agg`` argument, and the uncertainty estimate
@@ -198,15 +200,15 @@ def plot_recovery(
198200 # Only add x-labels to the bottom row
199201 bottom_row = axarr if n_row == 1 else axarr [0 ] if n_col == 1 else axarr [n_row - 1 , :]
200202 for _ax in bottom_row :
201- _ax .set_xlabel ("Ground truth" , fontsize = label_fontsize )
203+ _ax .set_xlabel (xlabel , fontsize = label_fontsize )
202204
203205 # Only add y-labels to right left-most row
204206 if n_row == 1 : # if there is only one row, the ax array is 1D
205- axarr [0 ].set_ylabel ("Estimated" , fontsize = label_fontsize )
207+ axarr [0 ].set_ylabel (ylabel , fontsize = label_fontsize )
206208 # If there is more than one row, the ax array is 2D
207209 else :
208210 for _ax in axarr [:, 0 ]:
209- _ax .set_ylabel ("Estimated" , fontsize = label_fontsize )
211+ _ax .set_ylabel (ylabel , fontsize = label_fontsize )
210212
211213 # Remove unused axes entirely
212214 for _ax in axarr_it [n_params :]:
You can’t perform that action at this time.
0 commit comments