Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 7083|回复: 0

豆粑粑 Matlab 设置坐标轴的颜色

[复制链接]

525

主题

594

帖子

2980

积分

金牌会员

Rank: 6Rank: 6

积分
2980
发表于 2022-4-1 10:06:00 | 显示全部楼层 |阅读模式


引别人的帖子。设置matlab 图中坐标轴的颜色。就是一个记录。
https://www.mathworks.com/matlab ... -axis-colour-matlab

  1. X = 1 : 20;
  2. Y = rand(1, 20);
  3. subplot(2, 2, [1 3]);
  4. hold on
  5. plot(X, Y, 'gs-');
  6. grid on;
  7. xlabel('UTM Easting (m)');
  8. ylabel('UTM Northing (m)');
  9. % Get handle to current axes.
  10. ax = gca
  11. % This sets background color to black
  12. ax.Color = 'k'
  13. ax.YColor = 'r';
  14. darkGreen = [0, 0.6, 0];
  15. ax.XColor = darkGreen;
  16. ax.GridColor = 'y';
  17. ax.GridAlpha = 0.9;
  18. ax.FontSize = 15;
  19. ax.FontWeight = 'bold';
  20. hold off
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Mathematica中文论坛-非官方 ( 辽ICP备16001491号-1

GMT+8, 2024-3-29 13:37 , Processed in 0.110339 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表