Offset axes at origin
14 次查看(过去 30 天)
显示 更早的评论
In Python/Seaborn, there is the option to offset the x and y axis at the origin. This 'despine' pulls the x-axis down a bit, and the y-axis left, so that data that are close to either one become more visible. For example:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147569/image.png)
I can use Matlab for (almost) all figure aesthetics issues, but this seems to be only possible in Illustrator. I've searched the file exchange but haven't found any submission that does this... Does anyone have an idea of how to easily move the axes outwards while keeping the data the same?
Thanks!
3 个评论
dpb
2015-7-30
ADDENDUM Seems like a reasonable enhancement request; after all only 25+ yr after I requested for hold on to not recycle the color order counter by default they actually did!!!
dpb
2015-7-30
ADDENDUM 2 Probably the easiest thing to do with Matlab is to change the lower x/y limit to something slight less than 2/1 to thus have the actual data start slightly above/right of the axes. The tick values can still be the unit values. Again, of course, they'll still meet at the intersection.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!