How do I use matlab to plot a graph where the x,y axes do not intersect?
이전 댓글 표시
How can I use matlab to plot a graph where the x,y axes do not intersect? Similar to the image below, note that the bottom left corner does not cross.The x- and y-axes are shown with specified ranges

댓글 수: 5
I don't know the smart solution, but you could generate an axis where you plot you dara but you hide y and x axis. before that you have to create two other axis, in one you hide the y axis in the other the x axis. these to axes have to be shifted in position compared to the plotting axis. then you can link the axes such that plotting in the axis with hidden x and y has an influence on the 'helper' axes
Adam Danz
2021년 4월 27일
This will likely require a deep dive into undocumented methods. It will require making changes to the xruler and yruler, both of which are properties of axes.
xingxingcui
2021년 4월 28일
xingxingcui
2021년 4월 29일
채택된 답변
추가 답변 (1개)
Bob Thompson
2021년 4월 27일
0 개 추천
Create your figure first, then create the axes. This will allow you to specify what they are before the data gets populated, and should allow you to fix their positions.
I have not looked at the documentation in enough detail to confirm it will do exactly what you want, but it should be in the axes command.
댓글 수: 2
xingxingcui
2021년 4월 28일
Adam Danz
2021년 4월 28일
cui is correct here. There are no axes properties that can achive this. There are, however, undocumented ruler properties that can achieve at least some of it.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
