1 Star 9 Fork 3

iam002/MatlabDrawNiceGraph

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
demo01.m 510 Bytes
一键复制 编辑 原始数据 按行查看 历史
iam002 提交于 2022-10-24 15:03 . 整理注释, 添加函数签名文件
figure('color', [0.15, 0.15, 0.15]);
x = linspace(-3, 4, 100);
y = x.^2;
plot(x, y, 'Color', [0,1,1], 'LineWidth', 1.5);
% 调用 DrawAxisWithArrow 即可在当前坐标轴绘制带箭头坐标轴
mdng.DrawAxisWithArrow(gca, 'XLabel', '$x$', 'YLabel', '$y$', 'OLabel', '$O$');
pnt = [0.2,0.3];
label = "test";
mdng.FigPointLabel(pnt, label, "south", "Color", [1,1,1]);
%% 保存图像
% if true
% img_name = SaveFig2Img(gcf, 'figures\demo01.png');
% fprintf('图像保存为: %s\n', img_name);
% end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/iam002/MatlabDrawNiceGraph.git
git@gitee.com:iam002/MatlabDrawNiceGraph.git
iam002
MatlabDrawNiceGraph
MatlabDrawNiceGraph
main

搜索帮助

Cb406eda 1850385 E526c682 1850385