plot - 如何使用 LaTex 在条形图上绘制最小值和最大值?
解决方案
pgfplots
一个可以做到:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [
ybar,
error bars/.cd,
y dir=both, y explicit,
] coordinates {
(0,3) +- (0,1)
(1,2) +- (0,0.4)
(2,4) +- (0,1)
(3,1) +- (0,0.6)
(4,2) +- (0,0.1)
};
\end{axis}
\end{tikzpicture}
\end{document}
推荐阅读
- angularjs - 使用 Angular 中的 ExcelJs 库将 html 表添加到 excel 中
- go - 如何在 golearn 中使用经过训练的二进制文件
- php - PHP preg_split 在双引号内保留特殊字符
- python - Python串行读取长时间失败
- python - 如何在 selenium python 中分页到下一页
- spring-boot - 如何编写 JPA IN 查询来检查集合是否给定了一组值。?
- javascript - 在 JS 中解开嵌套的 Promise
- typescript - 当您不知道输入的大小时是否可以设置界面的形状(但知道键和值的类型?)
- c++ - 在没有编辑器的单独 C++ 项目中使用 UE4 标头/类
- python - 如何在推特中获取正则表达式匹配搜索