DrawEllipse with no markers on Line
11 次查看(过去 30 天)
显示 更早的评论
Hello
I would like to have an ellipse on my scatter plot (not an image) that I am creating with the scatter function. I would like to enclose certain data points with an ellipse.
I tried two ways:
- inserting an ellipse from the interactive Figure window. However, I cannot make it transparent (no FaceAlpha)
- using drawellipse from the Image Processing Tool Box. This works very well, except that the 4 markers show on the ellipse line. I changed the MakerSize to 0.1 and this helps but they are still visible and can be confused with actual data points from my scatter plot. I was wondering if there is a way to show the ellipse with no markers on the line.
Thanks!
0 个评论
回答(2 个)
Image Analyst
2023-3-16
See attached demos where I put ellipses on graphs with no handles. One of them should do what you want.
sr123
2024-6-5
The workaround in the comment didn't seem to work for me, unfortunately, and although I'm sure there are many other ways of drawing ellipses and circles, the question relates to the functionality and appearance of the MATLAB provided annotation('ellipse') and drawellipse tools.
For drawellipse, I managed to remove the markers by setting the property "InteractionsAllowed" to 'none', following from another question on this topic, i.e.:
e = drawellipse;
e.InteractionsAllowed = 'none'
It does mean the ROI can no longer be edited interactively.
I'm surprised there is no way to edit FaceAlpha for annotation objects. It seems like both of these tools are missing some basic functionalities.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!