请考虑以下示例:
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{
xunit = 0.05,
yunit = 0.003,
algebraic
}
\begin{pspicture}(-17,-140)(213,2540)
% Axes
\psaxes[
dx = 20,
dy = 250,
labels = none,
ticklinestyle = dotted,
tickwidth = 0.5pt,
xticksize = 0 2250,
yticksize = 0 200
]{->}(0,0)(-4,-60)(210,2400)[$x$,0][$y$,90]
\psaxes[
dx = 20,
Dx = 20,
dy = 250,
Dy = 250
](0,0)(-4,-60)(210,2400)
% Functions.
\psplot[linecolor = red]{0}{200}{1.75*x+500}
\rput(190,700){$y$}
\psplot[linecolor = blue]{0}{200}{10*x}
\rput(190,2030){$z$}
\end{pspicture}
\end{document}
使用以下方法将带有虚线和实线刻度标记的网格添加到图形中的“正确”/“最佳”方法是什么pst-plot
? 从上面的例子可以看出,我通过绘制两个坐标系做到了这一点,但是有没有更简单的方法来获得相同的效果呢?
答案1
{\psset{xunit=20,yunit=250}
\psgrid[subgriddiv=0,griddots=10,gridlabels=0pt](0,0)(10,9)%
}