制作示意图的简单方法

制作示意图的简单方法

我对 LaTeX 还比较陌生。我想创建以下类型的示意图。最直接的方法是什么?我应该使用tikzpgfplots或者其他内容?你能帮我开始做以下事情吗?

阴谋

下面是我论文中使用的软件包的 MWE:

\documentclass[oneside,11pt]{book}

\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage[capitalize]{cleveref}
\usepackage{acro}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[font={sf,small},labelsep=quad,labelfont=sc]{caption}
\usepackage[subrefformat=parens]{subcaption}
%\usepackage{pgf}?
%\usepackage{pgfplots}?
\usepackage{lipsum}

\begin{document}

\begin{figure}[!h]
  \centering
  \includegraphics[width=0.75\textwidth]{example-image}
  \caption{Ragone plot}
  \label{fig:ragone}
\end{figure}

\lipsum[1]

\end{document}

答案1

使用纯 TikZ:

\documentclass[oneside,11pt]{book}
\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}

\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
                
\usepackage{lipsum}
\usepackage[capitalize]{cleveref}

\begin{document}

\begin{figure}[ht]
  \centering
    \begin{tikzpicture}[
         > = Stealth,
dot/.style = {circle, fill, minimum size=3pt, inner sep=0pt},
  N/.style = {font=\sffamily, align=left},
every label/.style = {label distance = 0pt, N}
                        ]
\draw[<->]  (0,5) |-  (6,0)
    node[pos=0.25, N, above,rotate=90]     {energy density (Wh/kg) \\ {[range]}}
    node[pos=0.75, N, below]    {power density (Wh/kg)\\ {[possible second line]}};                     
%
\node[dot, label=right:battery\\{[possible second line]}] at (1,3) {};
\node[dot, label=right:supper capacitor\\{[possible second line]}] at (3,1) {};
    \end{tikzpicture}
\caption{Ragone plot}
\label{fig:ragone}
    \end{figure}

\lipsum[1]

\end{document}

生产:

在此处输入图片描述

相关内容