Skip to content

Commit

Permalink
Fix matplotlib text margin
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCoto authored Feb 9, 2021
1 parent 747a4ac commit 73b4348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virgo/virgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def best_fit(power):
ax1.set_ylabel('Relative Power (dB)')
else:
ax1.set_ylabel('Relative Power')
if f_rest != 0 and sys.version_info[0] < 3:
if f_rest != 0:
ax1.set_title('Average Spectrum\n')
else:
ax1.set_title('Average Spectrum')
Expand Down Expand Up @@ -705,7 +705,7 @@ def best_fit(power):
ax2.ticklabel_format(useOffset=False)
ax2.set_xlabel('Frequency (MHz)')
ax2.set_ylabel('Signal-to-Noise Ratio (S/N)')
if f_rest != 0 and sys.version_info[0] < 3:
if f_rest != 0:
ax2.set_title('Calibrated Spectrum\n')
else:
ax2.set_title('Calibrated Spectrum')
Expand Down

0 comments on commit 73b4348

Please sign in to comment.