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!