如何制作两个标记在MATLAB图中共享相同的标签
我正在构建一个 MATLAB 脚本,为单个标签添加两个标记,类似于下面的 Python 脚本。
有谁知道修改 MATLAB 中的图例以包含与公共标签相邻的两个标记的方法吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
稍微修改帖子此处< /a>,你可以得到你想要的。请注意,这使用了未记录的功能,但它在 R2021a 中仍然有效。
Slightly modifying the post here, you can get what you want. Note that this uses undocumented features, but it still works in R2021a.