evo icon indicating copy to clipboard operation
evo copied to clipboard

Control Legend Settings and rename curves in plots

Open Johnemad96 opened this issue 1 year ago • 1 comments

Hello, I am not sure how do I choose the pose of the legend on the plot when using "evo_config" also, how can I change the name of every plotted line in the trajectory. (or I can just rename the trajectory file)

thanks

Johnemad96 avatar Jul 13 '24 20:07 Johnemad96

how do I choose the pose of the legend on the plot when using "evo_config"

This is not possible in the current version. The behavior of the legend is the default matplotlib positioning "best", see the loc parameter described here: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.legend.html

Should be possible to make the loc a configuration parameter in evo, I could add that.

how can I change the name of every plotted line in the trajectory. (or I can just rename the trajectory file)

The names are coming from the file names (or topics, if ROS bagfiles are used). So renaming files will change it. If you only want to change it for a plot, you could also change it in the plot window interactively.

image image

Note: this works only if Qt5 is used as matplotlib backend, as explained here in this similar ticket: https://github.com/MichaelGrupp/evo/issues/648#issuecomment-2054064944

MichaelGrupp avatar Jul 17 '24 09:07 MichaelGrupp