Math & Science ⇒ How to insert plot symbols of line and scatter in the caption
-
- Posts: 2
- Joined: Thu May 23, 2024 6:39 pm
How to insert plot symbols of line and scatter in the caption
How can I insert something like in the caption? I now, can only find symbols for scatters.
Many thanks,
Chris
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
How to insert plot symbols of line and scatter in the caption
welcome to the forum!
Perhaps post some code that explains the issue. For now, we don't even know what packages you are using for plotting or captions, and what scatter symbols you mean.
Best regards,
Stefan
-
- Posts: 2
- Joined: Thu May 23, 2024 6:39 pm
How to insert plot symbols of line and scatter in the caption
Stefan Kottwitz wrote:Hi Chris,
welcome to the forum!
Perhaps post some code that explains the issue. For now, we don't even know what packages you are using for plotting or captions, and what scatter symbols you mean.
Best regards,
Stefan
Code: Select all
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{chapter_3/figures/20230731-ConductanceAppCurve3-dless.png}
\caption{The experimental (\textcolor{green}{\squadfill}) and simulated (\textcolor{red}{\squadfill})conductance approach curves compared with the theoretical negative feedback of a 25 \gm m\dm $R_g$ 5 electrode.}
\label{secmcond}
\end{figure}
So thats the figure Im trying to input. now, in the caption, I'm using \squadfill of different colours to explain my figure. but what I really need is a square with a horizental line across it as shown in the picture I attached. \squadfill is from package{oplotsymbl}
Many thanks,
Chris
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
How to insert plot symbols of line and scatter in the caption
here's a
\scatter
macro that you can use:Code: Select all
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{float}
\usepackage{oplotsymbl}
\newcommand{\scatter}[1]{%
\raisebox{-0.8pt}{\textcolor{#1}{\rule[2.8pt]{10pt}{1.5pt}%
\squadfill\rule[2.8pt]{10pt}{1.5pt}}}}
\begin{document}
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{diagram}
\caption{The experimental (\scatter{green}) and simulated
(\scatter{red}) conductance approach curves compared with the
theoretical negative feedback of a 25 m$R_g$ 5 electrode.}
\label{secmcond}
\end{figure}
\end{document}
Stefan