I have a figure like this Instead of having the legend in the figure, I want to have it in the caption, like
Code: Select all
[draw red line] FPI- Method 1, [draw green line] FPI- Method 2
Code: Select all
[draw red line] FPI- Method 1, [draw green line] FPI- Method 2
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\caption{blablabla. {\red -}: $\mu=1$, {\green -}: $\mu=2$, {\blue -}: $\mu=3$, {\red --}: $\mu=4$, {\green --}: $\mu=5$ \dots
https://tex.stackexchange.com/questions/115352/tikzpicture-within-figure-caption
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{figure}[h]
-- This is a figure --
\caption{Figure within caption {\protect\tikz \protect\draw[thick, color=blue, fill=blue] plot[mark=*, mark options={scale=1.3}] (0,0);} }
\end{figure}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.