Skip to content

Commit

Permalink
Zoomed plot title (#31)
Browse files Browse the repository at this point in the history
Added `bbox_inches='tight' in savefig`, so now in the saved pdf appears the title as well.
  • Loading branch information
G-Sommani authored Nov 14, 2023
1 parent 0300ae1 commit 27401e5
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
20 changes: 10 additions & 10 deletions dependencies-examples.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@ astropy==5.3.4
# via
# healpy
# icecube-skyreader (setup.py)
cachetools==5.3.1
cachetools==5.3.2
# via wipac-rest-tools
certifi==2023.7.22
# via requests
cffi==1.16.0
# via cryptography
charset-normalizer==3.3.0
charset-normalizer==3.3.2
# via requests
contourpy==1.1.1
contourpy==1.2.0
# via matplotlib
cryptography==41.0.4
cryptography==41.0.5
# via pyjwt
cycler==0.12.1
# via matplotlib
fonttools==4.43.1
fonttools==4.44.1
# via matplotlib
healpy==1.16.6
# via icecube-skyreader (setup.py)
idna==3.4
# via requests
kiwisolver==1.4.5
# via matplotlib
matplotlib==3.8.0
matplotlib==3.8.1
# via
# healpy
# icecube-skyreader (setup.py)
meander==0.0.3
# via icecube-skyreader (setup.py)
numpy==1.26.1
numpy==1.26.2
# via
# astropy
# contourpy
Expand All @@ -50,7 +50,7 @@ packaging==23.2
# via
# astropy
# matplotlib
pandas==2.1.1
pandas==2.1.3
# via icecube-skyreader (setup.py)
pillow==10.1.0
# via matplotlib
Expand Down Expand Up @@ -95,11 +95,11 @@ typing-extensions==4.8.0
# wipac-dev-tools
tzdata==2023.3
# via pandas
urllib3==2.0.7
urllib3==2.1.0
# via
# requests
# wipac-rest-tools
wipac-dev-tools==1.7.0
wipac-dev-tools==1.7.1
# via
# icecube-skyreader (setup.py)
# wipac-rest-tools
Expand Down
22 changes: 11 additions & 11 deletions dependencies-mypy.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ astropy==5.3.4
# via
# healpy
# icecube-skyreader (setup.py)
cachetools==5.3.1
cachetools==5.3.2
# via wipac-rest-tools
certifi==2023.7.22
# via requests
cffi==1.16.0
# via cryptography
charset-normalizer==3.3.0
charset-normalizer==3.3.2
# via requests
contourpy==1.1.1
contourpy==1.2.0
# via matplotlib
cryptography==41.0.4
cryptography==41.0.5
# via pyjwt
cycler==0.12.1
# via matplotlib
fonttools==4.43.1
fonttools==4.44.1
# via matplotlib
healpy==1.16.6
# via icecube-skyreader (setup.py)
Expand All @@ -32,13 +32,13 @@ iniconfig==2.0.0
# via pytest
kiwisolver==1.4.5
# via matplotlib
matplotlib==3.8.0
matplotlib==3.8.1
# via
# healpy
# icecube-skyreader (setup.py)
meander==0.0.3
# via icecube-skyreader (setup.py)
numpy==1.26.1
numpy==1.26.2
# via
# astropy
# contourpy
Expand All @@ -53,7 +53,7 @@ packaging==23.2
# astropy
# matplotlib
# pytest
pandas==2.1.1
pandas==2.1.3
# via icecube-skyreader (setup.py)
pillow==10.1.0
# via matplotlib
Expand All @@ -71,7 +71,7 @@ pyparsing==3.1.1
# via matplotlib
pypng==0.20220715.0
# via qrcode
pytest==7.4.2
pytest==7.4.3
# via
# icecube-skyreader (setup.py)
# pytest-mock
Expand Down Expand Up @@ -106,11 +106,11 @@ typing-extensions==4.8.0
# wipac-dev-tools
tzdata==2023.3
# via pandas
urllib3==2.0.7
urllib3==2.1.0
# via
# requests
# wipac-rest-tools
wipac-dev-tools==1.7.0
wipac-dev-tools==1.7.1
# via
# icecube-skyreader (setup.py)
# wipac-rest-tools
Expand Down
18 changes: 9 additions & 9 deletions dependencies-tests.log
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ astropy==5.3.4
# icecube-skyreader (setup.py)
certifi==2023.7.22
# via requests
charset-normalizer==3.3.0
charset-normalizer==3.3.2
# via requests
contourpy==1.1.1
contourpy==1.2.0
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.43.1
fonttools==4.44.1
# via matplotlib
healpy==1.16.6
# via icecube-skyreader (setup.py)
Expand All @@ -26,13 +26,13 @@ iniconfig==2.0.0
# via pytest
kiwisolver==1.4.5
# via matplotlib
matplotlib==3.8.0
matplotlib==3.8.1
# via
# healpy
# icecube-skyreader (setup.py)
meander==0.0.3
# via icecube-skyreader (setup.py)
numpy==1.26.1
numpy==1.26.2
# via
# astropy
# contourpy
Expand All @@ -47,7 +47,7 @@ packaging==23.2
# astropy
# matplotlib
# pytest
pandas==2.1.1
pandas==2.1.3
# via icecube-skyreader (setup.py)
pillow==10.1.0
# via matplotlib
Expand All @@ -57,7 +57,7 @@ pyerfa==2.0.1.1
# via astropy
pyparsing==3.1.1
# via matplotlib
pytest==7.4.2
pytest==7.4.3
# via
# icecube-skyreader (setup.py)
# pytest-mock
Expand All @@ -81,7 +81,7 @@ typing-extensions==4.8.0
# via wipac-dev-tools
tzdata==2023.3
# via pandas
urllib3==2.0.7
urllib3==2.1.0
# via requests
wipac-dev-tools==1.7.0
wipac-dev-tools==1.7.1
# via icecube-skyreader (setup.py)
16 changes: 8 additions & 8 deletions dependencies.log
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ astropy==5.3.4
# icecube-skyreader (setup.py)
certifi==2023.7.22
# via requests
charset-normalizer==3.3.0
charset-normalizer==3.3.2
# via requests
contourpy==1.1.1
contourpy==1.2.0
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.43.1
fonttools==4.44.1
# via matplotlib
healpy==1.16.6
# via icecube-skyreader (setup.py)
idna==3.4
# via requests
kiwisolver==1.4.5
# via matplotlib
matplotlib==3.8.0
matplotlib==3.8.1
# via
# healpy
# icecube-skyreader (setup.py)
meander==0.0.3
# via icecube-skyreader (setup.py)
numpy==1.26.1
numpy==1.26.2
# via
# astropy
# contourpy
Expand All @@ -44,7 +44,7 @@ packaging==23.2
# via
# astropy
# matplotlib
pandas==2.1.1
pandas==2.1.3
# via icecube-skyreader (setup.py)
pillow==10.1.0
# via matplotlib
Expand All @@ -70,7 +70,7 @@ typing-extensions==4.8.0
# via wipac-dev-tools
tzdata==2023.3
# via pandas
urllib3==2.0.7
urllib3==2.1.0
# via requests
wipac-dev-tools==1.7.0
wipac-dev-tools==1.7.1
# via icecube-skyreader (setup.py)
2 changes: 1 addition & 1 deletion skyreader/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def bounding_box(ra, dec, theta, phi):
# Save the figure
LOGGER.info(f"Saving: {plot_filename}...")
#ax.invert_xaxis()
fig.savefig(self.output_dir / plot_filename, dpi=dpi, transparent=True)
fig.savefig(self.output_dir / plot_filename, dpi=dpi, transparent=True, bbox_inches='tight')

LOGGER.info("done.")

Expand Down

0 comments on commit 27401e5

Please sign in to comment.