evo
evo copied to clipboard
Control Legend Settings and rename curves in plots
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
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.
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