plot with user defined marker
显示 更早的评论
how can I generate plot with user defined marker, e.g. numeric as marker.
采纳的回答
更多回答(1 个)
Walter Roberson
2011-1-25
0 个投票
There is no way to create user-defined markers for the plotting routines.
You can use text() to place arbitrary text at arbitrary locations, or you can line() or plot() or even image() shapes at arbitrary locations.
Anything you put in to place by one of the above means will not automatically resize if you zoom the plot. In order to handle that condition, you need to create a zoom-mode object and establish a post-action callback that determines the new zoom level and removes the old markers and puts in new ones at an appropriate size for that zoom.
2 个评论
Paulo Silva
2011-1-25
sorry walter, I started my answer and did some tests before you posted to make sure the code was correct :) I'm glad you posted first with more info.
peter
2011-1-26
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!