【问题标题】:Matlab figure print with no axes box没有轴框的Matlab图形打印
【发布时间】:2019-10-04 12:05:24
【问题描述】:

我正在尝试使用映射工具箱打印图形。 当我打印我的图形时,它总是显示一个黑色的轴框,尽管它在 Matlab 图形本身中不可见。

这段代码重现了这个问题:

f = figure;
f.Position = [f.Position(1:2) 765 421];
ax = axesm('MapProjection','robinson',...
    'MapLatLimit',[-90 90],'MapLonLimit',[-180 180],....
    'Frame','on','Grid','on');
ax.XColor = 'w';
ax.YColor = 'w';
tightmap

print('test','-dpng','-r150')

这是我的带有黑色轴框的 test.png 文件:

这是我的 Matlab 图的截图:

编辑:添加box off 删除了顶部和右侧的行 EDIT2:添加ax.Visible = false; 工作

【问题讨论】:

    标签: matlab matlab-figure


    【解决方案1】:

    我想通了。

    添加ax.Visible = false; 就可以了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-12
      • 2016-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-30
      • 2014-09-03
      相关资源
      最近更新 更多