How to convert Matlab scatterplot axis to display pixels
古いコメントを表示
I am drawing a circle via scatterplot and it plots it in the form of arbitrary units. I want those units to be in pixels so I can run some further algos on them. Imdistline doesn't do much as it only displays the distance in terms of the arbitrary units.
採用された回答
その他の回答 (1 件)
Walter Roberson
2017 年 2 月 10 日
編集済み: Walter Roberson
2017 年 2 月 12 日
0 投票
You can set the axes Units property to Pixels and set an appropriate Position after that.
This will not affect algorithms though. It would perhaps make it slightly easier to use the figure CurrentPoint property, but normally you would use the axes CurrentPoint property anyhow.
3 件のコメント
Waleed Khalid
2017 年 2 月 27 日
編集済み: Waleed Khalid
2017 年 2 月 27 日
Walter Roberson
2017 年 2 月 27 日
It is not clear which coordinates you want. Axes position coordinates are always relative to the figure, but perhaps you are wanting to make them relative to the screen.
Waleed Khalid
2017 年 4 月 3 日
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!