Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matplotlib subscript

I know that we can produce a single subscript in matplotlib like

$r_i$

will give me an r with "i" as the subscript.

But I want to generate a subscript with say 3 or 4 letters, like r_ijk should give me an r with "ijk" as the subscript.

When I do the above, I only get the first ("i") to be the subscript, the rest ("j" & "k") are becoming normal scripts.

like image 521
Srivatsan Avatar asked Mar 11 '14 10:03

Srivatsan


1 Answers

I just tried $r_{ijk}$ and it did the trick! I was previously trying with () braces.

like image 81
Srivatsan Avatar answered Sep 24 '22 20:09

Srivatsan