I am building a MATLAB script to add two markers for a single label similar to below in Python.
- How to create two legend objects for a single plot instance? and
- Sharing the same label for two plots with line and point markers in legend
Does anyone know a way to modify the legend in MATLAB to include two markers adjacent to a common label?
Thanks
Slightly modifying the post here, you can get what you want. Note that this uses undocumented features, but it still works in R2021a.