# highlight plot with circle

1 view (last 30 days)
mudasir ahmad sheikh on 22 Aug 2021
Commented: Image Analyst on 23 Aug 2021
I have a ber plot and I want to highlight this plot with a circle or any eliptical shape indicating (M×N).
##### 2 CommentsShowHide 1 older comment
mudasir ahmad sheikh on 22 Aug 2021
No! Please see the attached figure

Awais Saeed on 22 Aug 2021
I do not know if its possible programmatically but you can acheive this using the Insert option of figure window
##### 2 CommentsShowHide 1 older comment
Awais Saeed on 22 Aug 2021
you are welcome.

### More Answers (1)

Image Analyst on 22 Aug 2021
You can draw an ellipse if you know the center and radii:
xCenter = 12.5;
yCenter = 10;
theta = 0 : 0.01 : 2*pi;
x = xRadius * cos(theta) + xCenter;
y = yRadius * sin(theta) + yCenter;
plot(x, y, 'LineWidth', 3);
axis square;
xlim([0 20]);
ylim([0 20]);
grid on;
If you have an existing plot, call hold on before plotting the ellipse so it doesn't blow away your prior plotted data.
##### 2 CommentsShowHide 1 older comment
Image Analyst on 23 Aug 2021
@mudasir ahmad sheikh, you're welcome. Also I'm attaching a bunch of ellipse demos that you may find fun or interesting. You can "Vote" for my answer if they help you.