Cannot set the tick mark direction as default

11 次查看(过去 30 天)
I recently switched to 2014b MATLAB, and I can no longer set the axes tick mark direction as default. That is, I used to be able to set the tick mark direction 'outward' by
However, this command does not work any more. When I plot a new figure, the tick mark direction always becomes inward. I can still correct the direction by
each time I plot a figure, but this is very inconvenient. Does anybody knows how to work around this problem?


Doug Hull
Doug Hull 2014-11-18
From our development staff:
set(groot, 'defaultAxesTickDir', 'out');
set(groot, 'defaultAxesTickDirMode', 'manual');
It is important that you set these two defaults in this order to be effective.
  3 个评论
Star Strider
Star Strider 2014-11-19
As I read the documentation, setting any property to something other than the default automatically sets the associated ‘Mode’ setting to 'manual'. When did that change? Can TMW change it back so it does?


更多回答(2 个)

Adam 2014-11-17
编辑:Adam 2014-11-17
set( groot, 'defaultAxesTickDir', 'out' )
instead. Since graphics objects are now all actual objects rather than magic doubles the '0' handle no longer exists so groot is now the graphics root.

Shin 2014-11-17
编辑:Shin 2014-11-17
Thanks for the advice. Unfortunately, using 'groot' does not solve the problem in MATLAB 2014b. For example, please try:
set( groot, 'defaultAxesTickDir', 'out' )
MATLAB still plots tick marks inward.
  4 个评论
Shin 2014-11-17
Thanks for checking out the problem. I guess we will have to set the axes property each time we plot a figure until the bug gets fixed...



Find more on Graphics Performance in Help Center and File Exchange



Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by