Khuyen Tran
06/09/2025, 7:20 PMplot_hierarchical_predictions_gap
function, we cannot get the matplotlib Figure (fig) object. Is that correct? I don't
I want to get access to the fig object so that I can save the plot as a svg file:
fig.savefig("images/output_plot.svg", format="svg", bbox_inches="tight")
Should we return the fig object at the end of the function?
plt.show()
return fig, ax
Marco
06/09/2025, 7:30 PMfig
is enough. But I don't see a problem with returning the ax
either...Khuyen Tran
06/10/2025, 3:08 PMMarco
06/10/2025, 3:08 PMKhuyen Tran
06/10/2025, 3:22 PMMarco
06/10/2025, 3:38 PMKhuyen Tran
06/10/2025, 3:42 PMKhuyen Tran
06/10/2025, 3:54 PM$ conda env update -f environment.yml
Collecting package metadata (repodata.json): done
Solving environment:
Marco
06/10/2025, 4:08 PMKhuyen Tran
06/10/2025, 4:49 PMKhuyen Tran
06/10/2025, 4:51 PMnbdev_clean
and nbdev_export
in the CONTRIBUTING.md is necessary if we have nbdev pre-commit hooks