我有以下 MWE,其中pslegend
将 添加到图中。但是,有没有办法删除边框?或者这是否只是意味着我必须使用 手动放置每个项目rput
?
\documentclass[pstricks,border=32pt, 10pt]{standalone}
\usepackage{pstricks,pst-plot}
\begin{document}
\begin{psgraph}[ysubticks=9, xsubticks=0, axesstyle=frame, ylogBase=10, logLines=all,ticksize=0 5pt, Dx=10, Ox={0}, Oy={0}](0,-10)(80,-4){7.0cm}{6.0cm}%
\pstScalePoints(1,1){ }{ log }
\pslegend[rt](93,9){%
\makebox[2em][l]{\psline[linecolor=black, linestyle=dashed](0,1ex)(2em,1ex)} & $f(x)$ \\
\makebox[2.1em][c]{\psdot[dotstyle=*](0,0.7ex)} & $t_1$}
\end{psgraph}
\end{document}
答案1
重新定义风格:
\newpsstyle{legendstyle}{fillstyle=solid,fillcolor=white,linestyle=none}
\begin{psgraph}[ysubticks=9, xsubticks=0, axesstyle=frame, ylogBase=10,
logLines=all,ticksize=0 5pt, Dx=10, Ox={0}, Oy={0}]%
(0,-10)(80,-4){7.0cm}{6.0cm}%