Visio,Python,Matlab 画图

1. Visio

    1)对齐技巧: 先选择的第一个为基准位置

       

    2)保存高清图技巧:另存为--》类型:.jpg

       

    3)小图标网址:  https://www.iconfont.cn/

2. Python

    画曲线 & 保存  实现代码:

import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, length, length)
for j in range(25):
    plt.plot(x, heatmaps[0][j])
plt.title('line chart')
plt.xlabel('x')
plt.ylabel('y')
plt.savefig('./x_neu.jpg')
plt.show()

 

3. Matlab

    1) 画条形图代码:


x=[0.569230769 0.861538462 0.861538462 ;
   0.546153846 0.846153846 0.892307694 ;
 ];
 
b = bar(x);
ch = get(b,'children');
%set color:
set(b(1),'facecolor',[0.6 0 0]);
set(ch{1},'facecolor',[0.6 0 0]);
set(b(2),'facecolor',[0 0 0.8]);
set(ch{2},'facecolor',[0 0 0.8]);
set(b(3),'facecolor',[0 0.8 0]); 
set(ch{3},'facecolor',[0 0.8 0]);
%set background-color
set(gcf, 'color', 'w');
legend('Linear', 'Trajectory','Fusion');
 
%set x/ylim
%xlim([0.5,6.5]);
%ylim([0,5]);
 
%set x-label
lab={'Anger', 'Disgust'};
set(gca,'XTickLabel',lab, 'xTick', 1:numel(lab)) ;
 
%xlabel('Time Series Number', 'fontsize',16);
ylabel('Accuracy(%)', 'fontsize',14);
set(gca,'fontsize', 14);

 

    2)画折线图代码:

x=0:0.1:32;
a1=linspace(61, 62, 101);
a2=linspace(62, 62, 200);
a3=linspace(62, 61.6, 20);
a=[a1 a2 a3];
plot(x,a,'r');
hold on 
xlim([-1 35])
ylim([0 65])

x=0:0.1:32;
a1=linspace(60, 61, 101);
a2=linspace(61, 62, 100);
a3=linspace(62, 61.6, 120);
a=[a1 a2 a3];
plot(x,a,'r');

 

    3)调整图的颜色,宽高等 :运行后,选择编辑--》图像属性

        

    4)保存高清结果图:文件--》导出设置

   

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值