Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How show vector or matrix in legend label of plot in latex?

We can insert latex in legend labels by surrounding the text with '$'. But it doesn't work for a vector (matrix, array), e.g.

\left[\begin{array}{r} 1 \\ 0 \end{array}\right]

Is there any way to display vector in latex in legend label?