Visio,Python,Matlab 画图

1. Visiopython

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

       

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

       

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

2. Pythonblog

    画曲线 & 保存  实现代码:get

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. Matlabit

    1) 画条形图代码:io

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)画折线图代码:class

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)调整图的颜色,宽高等 :运行后,选择编辑--》图像属性import

        

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