villano-lab / nrCascadeSim

calculating the NR spectrum resulting from neutron-capture cascades.
MIT License
0 stars 1 forks source link

Plots generated by savefig in Z_G4Comparison.ipynb have labels cut off #100

Closed nuclearGoblin closed 2 years ago

nuclearGoblin commented 2 years ago

I am submitting a bug report.

This bug occurs in: Z_G4Comparison.ipynb

Expected behavior: Saved figures should have all text, including title and axis labels, fully readable.

Current behavior: Saved figures instead have text partially cut off by the edges of the saved image.

Steps to reproduce:

  1. Run the notebook.
  2. View the saved plots (not the plots as displayed in the notebooks).
  3. See cutting off of title and y-axis label.

Other Information: The plt.tight_layout() command is supposed to resolve this, but the issue persists despite it being used. This issue also affects the docs, as page 6 (Geant4 Comparison) uses these plots.

Relevant Output: See the files in example-usecase/plots in the repository:

nuclearGoblin commented 2 years ago

Issue resolved by 50e881e.