tikz:将图形(无图形)放在轴环境内

tikz:将图形(无图形)放在轴环境内

是否可以将代码生成的图形(未从外部加载)放在轴环境中?简而言之,用代码生成的图形代替“普通”图。在此代码中,有我想要的内容:

\documentclass{amsart}
\usepackage{pgfplots}

\begin{document}

 \begin{tikzpicture}
  \begin{axis}[
  legend pos=outer north east,
  legend cell align={left},
  grid, grid style=dashed,
  ymin=0.75,ymax=1.02,
  ytick={0.78,0.81,0.84,0.87,0.90,0.93,0.96,0.99},
  xtick={0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1},
  extra y ticks={0.75},            % <---
  xmax=1.1,xmin=0,
  extra x ticks={0},            % <---
  axis lines = middle,
  set layers,                   % <---
  xlabel={$x$},ylabel={$y$}, 
  x label style={at={(1,0)},right},
  y label style={at={(0,1)},above},
  y tick label style={
        /pgf/number format/fixed,
        /pgf/number format/precision=2,
        /pgf/number format/fixed zerofill=true
    },
               ]
   %\begin{figure}
   % --some stuff
   %\end{figure}
\end{axis}
\end{tikzpicture}


\end{document}

你能帮助我吗?

先感谢您

相关内容