Skip to content

Commit

Permalink
Apply SETTING.plot_show_legend also to xyz/rpy plot (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp authored Mar 8, 2024
1 parent 7fa81e5 commit 6a00e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evo/tools/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def traj_xyz(axarr: np.ndarray, traj: trajectory.PosePath3D, style: str = '-',
label=label, alpha=alpha)
axarr[i].set_ylabel(ylabels[i])
axarr[2].set_xlabel(xlabel)
if label:
if label and SETTINGS.plot_show_legend:
axarr[0].legend(frameon=True)


Expand Down Expand Up @@ -645,7 +645,7 @@ def traj_rpy(axarr: np.ndarray, traj: trajectory.PosePath3D, style: str = '-',
label=label, alpha=alpha)
axarr[i].set_ylabel(ylabels[i])
axarr[2].set_xlabel(xlabel)
if label:
if label and SETTINGS.plot_show_legend:
axarr[0].legend(frameon=True)


Expand Down

0 comments on commit 6a00e8d

Please sign in to comment.