1 Star 3 Fork 0

quxiaofeng/matplotplusplus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fsurf_8.cpp 616 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include <cmath>
#include <matplot/matplot.h>
int main() {
using namespace matplot;
auto funx = [](double s, double t) { return sin(s); };
auto funy = [](double s, double t) { return cos(s); };
auto funz = [](double s, double t) { return t / 10 * sin(1. / s); };
tiledlayout(2, 1);
nexttile();
fsurf(funx, funy, funz, std::array<double, 2>{-5, +5}, "", 20);
view(-172, 25);
title("Decreased Mesh Density");
nexttile();
fsurf(funx, funy, funz, std::array<double, 2>{-5, +5}, "", 80);
view(-172, 25);
title("Increased Mesh Density");
show();
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quxiaofeng/matplotplusplus.git
git@gitee.com:quxiaofeng/matplotplusplus.git
quxiaofeng
matplotplusplus
matplotplusplus
master

搜索帮助