Skip to content

Commit

Permalink
fix the plot.py legend issue
Browse files Browse the repository at this point in the history
	modified:   orbitize/plot.py
  • Loading branch information
chihchunhsu committed Apr 7, 2024
1 parent 1d33d93 commit ba901c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orbitize/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def plot_orbits(
capsize=2,
)
plt.sca(ax1)
plt.legend(title="Instruments", bbox_to_anchor=(1.3, 1), loc="upper right")
plt.legend(fontsize=15, loc=1)
else:
plt.sca(ax1)
plt.scatter(
Expand Down Expand Up @@ -869,7 +869,7 @@ def plot_orbits(
if len(inds.keys()) == 1 and "defrv" in inds.keys():
pass
else:
plt.legend(fontsize=20)
plt.legend(fontsize=20, loc=1)

## calculate the predicted rv trend using the best orbit
# _, _, vz = kepler.calc_orbit(
Expand Down Expand Up @@ -985,7 +985,7 @@ def plot_orbits(
if len(inds.keys()) == 1 and "defrv" in inds.keys():
pass
else:
plt.legend(fontsize=20, loc=2)
plt.legend(fontsize=20, loc=1)

# add colorbar
if show_colorbar:
Expand Down

0 comments on commit ba901c2

Please sign in to comment.