Right click for data tip not working?

6 次查看(过去 30 天)
Hi,
I have a plot of bathymetry and am trying to use a data tip to get coordinates of certain locations, however the data tip only shows the latitude and longitude to one decimal point, which is absolutely useless at the scale I'm working on. I've seen other questions about this recommending to right click and change the decimal display, however, right clicking (control + click since I'm on a mac) is not doing anything at all. Does anyone have any suggestions?
figure(2)
contourf(X, Y, bath_50m)
b = colorbar
hold on
title('Santa Barbara Channel 50 meter shelf', 'fontsize', 16)
b.Label.String = ('Depth (meters)')
daspect([1 cosd(34.4) 1])
  2 个评论
Adam Danz
Adam Danz 2022-1-17
Are you right-clicking the contour object or are you right-clicking an existing datatip?
Note that you can achieve this programmatically by specifying the format of the datatipTemplate

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by