Skip to content

Commit

Permalink
Merge branch 'main' into new-data-template
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Cooper authored Oct 26, 2023
2 parents 222e014 + 58580ab commit df7e5f8
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 3 deletions.
Binary file modified documentation/figures/color_spectra_counts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/figures/colormag_counts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/figures/photometry_counts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/figures/spectra_ins_counts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/figures/spectra_sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/figures/spectra_telins_counts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/figures/sptypes_counts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions scripts/examples/plotting_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
if INCLUDE_VERSION:
plt.title(f'SIMPLE Photometry; Version {version}')
plt.yscale('log')
ax.set_xticklabels(ax.xaxis.get_majorticklabels(), rotation=90)
ax.set_xticklabels(ax.xaxis.get_majorticklabels(), rotation=90, fontsize=8)
plt.tight_layout()
# plt.show()
plt.savefig('documentation/figures/photometry_counts.png')
Expand All @@ -215,6 +215,8 @@
plt.scatter(df['spectral_type_code'], df['2MASS.J'] - df['2MASS.Ks'], alpha=0.8)
plt.xlabel('Spectral Type')
plt.ylabel('J-Ks (mag)')
if INCLUDE_VERSION:
plt.title(f'SIMPLE Sources; Version {version}')
# Custom tick labels for spectral type
ax.set_xticks([65, 70, 75, 80, 85, 90])
ax.set_xticklabels(['M5', 'L0', 'L5', 'T0', 'T5', 'Y0'])
Expand Down Expand Up @@ -244,11 +246,13 @@
plt.scatter(df['2MASS.J'] - df['2MASS.Ks'], df['2MASS.Ks'] - df['dm'], c=df['spectral_type_code'], alpha=0.8)
plt.xlabel('J-Ks (mag)')
plt.ylabel('Absolute Ks (mag)')
if INCLUDE_VERSION:
plt.title(f'SIMPLE Sources; Version {version}')
ax.invert_yaxis()
cbar = plt.colorbar()
cbar.set_label('Spectral Type')
cbar.set_ticks([65, 70, 75, 80, 85, 90])
cbar.set_ticklabels(['M5', 'L0', 'L5', 'T0', 'T5', 'Y0'])
cbar.set_ticks([65, 70, 75, 80, 85])
cbar.set_ticklabels(['M5', 'L0', 'L5', 'T0', 'T5'])
plt.tight_layout()
# plt.show()
plt.savefig('documentation/figures/colormag_counts.png')

0 comments on commit df7e5f8

Please sign in to comment.