I would like to add legend symbols from
pgfplots in my text.
I am aware of the possibility to use the
but my setup is complicated and I fear that making it work will more
time consuming than setting the small drawings manually.
I use externalization, my plots are generated with an intricate
\pgfplotsinvokeforeach inside a template that is used several times
in the document…
What I am looking for is a command like
that would draw a small blue dash with a cross on it, just as the legend post of a plot with similar styles would appear.
Note: if you want to put the legend in caption or in text, it is usually simpler to use \ref and \label as described in the pgfplots manual or there. My question related to special cases where the canonical approach is not usable.