答案1
我可以告诉你最简单的方法是什么我。
我使用 Inkscape 进行绘图并导出为 pstricks(另存为:“Latex + pstricks 宏”)。我花了大约 5 分钟进行绘图。定义中的所有内容mydiagram
均由 Inkscape 生成。
\documentclass{article}
\usepackage{pstricks}
\newcommand*{\mydiagram}{%
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(330.50705617,288.43274454)
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=1,linecolor=curcolor]
{
\newpath
\moveto(0.5,288.43274454)
\lineto(0.5,0.5)
\lineto(330.50704768,0.5)
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=1,linecolor=curcolor]
{
\newpath
\moveto(0.5,45.12426565)
\lineto(130.01750712,186.28944553)
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=1,linecolor=curcolor]
{
\newpath
\moveto(183.90275326,222.02202485)
\lineto(325.51339417,272.5714033)
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=1,linecolor=curcolor]
{
\newpath
\moveto(93.08775773,119.42213388)
\curveto(97.50632542,132.2702716)(105.27221632,159.17255412)(127.77442721,183.87039437)
\curveto(140.87266571,198.24672499)(158.1196668,212.82204774)(183.90275326,222.02202485)
\curveto(193.19893824,225.33911657)(203.60481614,227.95741498)(215.32600504,229.61564371)
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(216.93720724,229.72948325)
\curveto(216.93720724,228.79708086)(216.18134576,228.04121938)(215.24894338,228.04121938)
\curveto(214.31654099,228.04121938)(213.56067951,228.79708086)(213.56067951,229.72948325)
\curveto(213.56067951,230.66188564)(214.31654099,231.41774712)(215.24894338,231.41774712)
\curveto(216.18134576,231.41774712)(216.93720724,230.66188564)(216.93720724,229.72948325)
\closepath
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=1,linecolor=curcolor,linestyle=dashed,dash=5 5]
{
\newpath
\moveto(130.01750712,186.28944553)
\lineto(200.77793033,263.46440965)
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=1,linecolor=curcolor,linestyle=dashed,dash=5 5]
{
\newpath
\moveto(0.5,156.54830295)
\lineto(183.90275326,222.02202485)
}
}
\end{pspicture} %
}
\begin{document}
\mydiagram
\end{document}