Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
legend
  • Loading branch information
profxj committed Aug 13, 2019
commit 5fa197dedb4f3ab3d6fcb2bee813cebfce5d86b0
8 changes: 6 additions & 2 deletions frb/figures/galaxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

primus_path = os.path.join(resource_filename('frb', 'data'), 'Public')

def sub_bpt(ax_BPT, galaxies, clrs, markers, show_kewley=True, SDSS_clr='BuGn'):
def sub_bpt(ax_BPT, galaxies, clrs, markers, show_kewley=True, SDSS_clr='BuGn',
show_legend=True):
"""
Generate a BPT diagram

Expand All @@ -34,6 +35,8 @@ def sub_bpt(ax_BPT, galaxies, clrs, markers, show_kewley=True, SDSS_clr='BuGn'):
Show the BPT lines?
SDSS_clr (str, optional):
Set the color map for SDSS
show_legend (bool, optional):
Show a legend

Returns:
ax_BPT is modified in place
Expand Down Expand Up @@ -118,7 +121,8 @@ def sub_bpt(ax_BPT, galaxies, clrs, markers, show_kewley=True, SDSS_clr='BuGn'):
ax_BPT.annotate(r"\textbf{Seyfert}", (-0.5, 1), fontsize=lsz)

# Legend
ax_BPT.legend(loc="lower left")
if show_legend:
ax_BPT.legend(loc="lower left")
# Axes
ax_BPT.set_xlabel(r"$\log \, ({\rm [N\textsc{ii}]/H\,\alpha)}$")
ax_BPT.set_ylabel(r"$\log \, ({\rm [O\textsc{iii}]/H\,\beta)}$")
Expand Down