Does your origin go through zero?
Jiro's post this week is a short one letting everyone know that one of the many new features of R2015b, which came out a couple of months ago, is the ability to make the X and Y axes go through the origin. For many years, people have provided custom functions to create this behavior. Thanks, everyone, for your contributions! If you found those useful, take a look at this new feature, as well as others in this version.
x = linspace(-pi,pi); y = sin(x); plot(x,y) ax = gca; ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin'; grid on
Comments
Let us know what you think here.
- 범주:
- Picks
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.