资源简介
在matlab下画柱状图 并用不同图形填充柱状图 非常适用 有示例
)
代码片段和文件信息
function applyhatch(hpatternscolorlist)
%APPLYHATCH Apply hatched patterns to a figure
% APPLYHATCH(HPATTERNS) creates a new figure from the figure H by
% replacing distinct colors in H with the black and white
% patterns in PATTERNS. The format for PATTERNS can be
% a string of the characters ‘/‘ ‘\‘ ‘|‘ ‘-‘ ‘+‘ ‘x‘ ‘.‘
% a cell array of matrices of zeros (white) and ones (black)
%
% APPLYHATCH(HPATTERNSCOLORS) maps the colors in the n by 3
% matrix COLORS to PATTERNS. Each row of COLORS specifies an RGB
% color value.
%
% Note this function makes a bitmap image of H and so is limited
% to low-resolution bitmap output.
%
% Example 1:
% bar(rand(34));
% applyhatch(gcf‘\-x.‘);
%
% Example 2:
% colormap(cool(6));
% pie(rand(61))
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3578 2020-09-08 18:57 ╓∙╫┤═╝▒φ╩╛\applyhatch.m
文件 213 2020-09-08 18:57 ╓∙╫┤═╝▒φ╩╛\example.m
文件 1027 2020-09-08 18:57 ╓∙╫┤═╝▒φ╩╛\makehatch.m
评论
共有 条评论