meatball1982 发表于 2017-9-4 09:43:58

豆粑粑 matlab use matplotlib colormap


matlab import matplotlib colormap.
using "DrosteEffect-Colormaps-from-MatPlotLib2.0"


fi_path= '/home/mm/works/work_matlab/mm_functions/DrosteEffect-Colormaps-from-MatPlotLib2.0/';
fi_list=dir();

n_colmap= length(fi_list);

=peaks(30);

sbp_width=0.9;
sbp_heig=0.85;
n_row = 3;
n_col = 3;
=fun_mm_subplot_pos(n_row,n_col,sbp_width,sbp_heig);
h=figure(1)
set(h, 'Position', );


for i = 1:n_colmap
    ax=axes('position',out_pos(i,:));
    surf(x,y,z,'edgecolor','none');
    axis tight
    col = fi_list(i).name;
    col(end-1:end)=[];
%   colormap(ax(i),col)
    eval(['col_m=',col,'(16);']);
    colormap(ax,col_m)
    colorbar
    title()
end

ax=axes('position',out_pos(9,:));
    surf(x,y,z,'edgecolor','none');
    axis tight
    colormap(ax,'parula')
    colorbar
    title(['parula'])
colorbar

h=gcf;
fig_na = './fig_col_name';
fun_work_li_035_myfig_out(h,fig_na,3)



页: [1]
查看完整版本: 豆粑粑 matlab use matplotlib colormap