以下代码:
data = rand(4, 5);
figure
h4 = bar(data, "stacked", "linestyle", "none");
l4 = legend("Col1", "Col2", "Col3", "Col4", "Col5");
legend(l4, "location", "northeastoutside");
保存为PNG,EPS或PDF时会发生这种情况。我是否缺少一些选项来生成没有边框的框?
提前致谢,
罗德里戈
答案 0 :(得分:0)
clear all; close all; clc;
data = rand(4, 5);
figure
h4 = bar(data, "stacked", "linestyle", "none");
l4 = legend("Col1", "Col2", "Col3", "Col4", "Col5");
h=legend(l4, "location", "northeastoutside");
axis off;