豆粑粑 matlab pareto plot show text
This is a new plot function. The outputs are two kinds of figure handles.show the text.
clear all
clc
clf
y = ;
% figure
h = pareto(y);
h_bar= h(1);
h_lin= h(2);
y_bar = get(h_bar,'YData');
y_lin = get(h_lin,'YData');
y_plot = y_lin./y_lin(end);
n_plot = sum(y_plot < 0.95) + 1;
hold on
for i = 1:n_plot
text(i,y_lin(i),mat2str(floor(1000*y_plot(i))/1000))
end
h=gcf;
fi_na=['./fig_with_text'];
fun_work_li_035_myfig_out(h,fi_na,3);
页:
[1]