Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The following code won't work:

plot(x^2, legend_label=r'$v=\left[\begin{array}{r}1\\0\end{array}\right]$')

But if the type of parentheses doesn't matter (and for me it doesn't, I just care about the vertical vector) then the simple workaround, without having to install additional packages, is to use '\binom':

plot(x^2, legend_label=r'$v=\binom{1}{1}$')

Thank you again @dsejas for inspiration to find such a solution.

The following code won't work:

plot(x^2, legend_label=r'$v=\left[\begin{array}{r}1\\0\end{array}\right]$')

But if the type of parentheses doesn't matter (and for me it doesn't, I just care about the vertical vector) then the simple workaround, without having to install additional packages, is to use '\binom':\binom:

plot(x^2, legend_label=r'$v=\binom{1}{1}$')

Thank you again @dsejas for inspiration to find such a solution.