Add a scale bar to my plot
古いコメントを表示
Hello, I was just wondering if there would be any way to replace the axis line for some sort of a scale bar. I am quite convinced there is no built command for this in matlab, so I was wondering how you guys would tweak the plot in order to get this. Just for the sake of illustration, this is what I have:

This is (sort of) what I wanted to obtain:

Thank you in advance for your collaboration!
採用された回答
その他の回答 (2 件)
chen xinfeng
2016 年 9 月 6 日
1 投票
The SCALEBAR is dragable & resizeable , both GUI-operate & Commandline-operate are supported.
<<www-mathworks-com-matlabcentral-answers-uploaded_files-58857-687474703a2f2f7374617469632e7a7962756c756f2e636f6d2f6368656e78696e66656e672f6a7362347676756f3262706e746d347767326136693731652f696d6167655f316172756a397573623174337074723231386562726b3031397333392e706e67.png>>

1 件のコメント
Jose Rego Terol
2020 年 2 月 16 日
HI Chen,
Your scalebar is amazing. There is something I want to change. when I pan the plot, the bar moves with the plot. How can I keep it steady?

Hi,
How to add a scale bar to a map (plot) with lat and long cordinates?
2 件のコメント
Sim
2020 年 10 月 4 日
https://it.mathworks.com/help/map/graphic-scales.html
Star Strider
2020 年 10 月 4 日
Sim — Thank you. I do not have the Mapping Toolbox, so could have responded here.
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
