Right click for data tip not working?

8 views (last 30 days)
Cecily Tye
Cecily Tye on 17 Jan 2022
Commented: Cecily Tye on 20 Jan 2022
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 Comments
Adam Danz
Adam Danz on 17 Jan 2022
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

Sign in to comment.

Answers (0)

Categories

Find more on Polar Plots in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!