提问于:
浏览数:
1434
在显像器中,默认的起始点位置是由数据x,y的值决定的。这里我想让x轴和y轴的起始点均为零,但又不想画出(0,0)点,有什么办法吗?
```tex
\documentclass[a4paper,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{tikz}
\usetikzlibrary{math,calc,intersections,through,angles,arrows.meta,shapes.geometric,shadows,quotes,spy,datavisualization,datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}[font=\small,scale=1]
\datavisualization[scientific axes=clean,y axis=grid,visualize as scatter,y axis={ticks={major={at={0,0.5,...,4.5}}}}]
data{
x,y
0,0
2,2.5
3,3
4,4
5,4.5
};
\end{tikzpicture}
\end{document}
```