Matplotlib下标 [英] Matplotlib subscript

查看:61
本文介绍了Matplotlib下标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以像

$r_i 

会给我一个带"i"的下标.

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

但我想生成一个带有 3 或 4 个字母的下标,例如 r_ijk 应该给我一个带有ijk"作为下标的 r.

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.

当我执行上述操作时,我只得到第一个 ("i") 作为下标,其余的 ("j" & "k")正在成为正常的脚本.

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

推荐答案

我刚刚尝试了 r_{ijk} 并且成功了!我以前尝试用()大括号.

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

这篇关于Matplotlib下标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆