导入包
usepackage{tikz}
usepackage{pgfplots}
绘制光滑曲线图
遇到的问题(解决方案代码里都有):
1、 legend摆放位置问题
2、多条曲线怎么画
begin{tikzpicture}
begin{axis}
[
legend pos=outer north east,
%legend位于右上方而不在图里(防止遮挡)
xlabel=Epoch
]
addlegendentry{Pr} %第一条曲线的名称
addplot+[smooth]
%smooth表示光滑曲线
coordinates
{
(0,0) (10,0.313) (20,0.401) (30,0.504)
};
addlegendentry{Re} %第二条曲线的名称
addplot+[smooth]
coordinates
{
(0,0) (10,0.313) (20,0.401) (30,0.504)
};
end{axis}
end{tikzpicture}
绘制表格
问题:如何在整页居中? 在table后加上*就可以了
begin{table*}[htbp]
end{table*}
最后
以上就是标致悟空最近收集整理的关于Latex tikz绘制图表的全部内容,更多相关Latex内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复