<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koideforest</author_name>
  <author_url>https://blog.hatena.ne.jp/koideforest/</author_url>
  <blog_title>nano_exit</blog_title>
  <blog_url>https://koideforest.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>matplotlibで普通に from matplotlib import pyplot as plt atomic_number = 29 plt.title( 'Cu$^{}$'.format( atomic_number ) ) とやると、「Cu9」となってしまう。これは、内部で「$^29$」と書かれたと見做されているためである。 ベタ打ちするならば、「$^{29}$」で回避出来る。 しかし、今の場合は変数を入れたいので、「$^{{}}$」などが思い付くが、認識されずに上手く行かない。そのため、これを避けるには、一文字ずつに分けるしかない、という結論に至った。 from matplotl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoideforest.hatenadiary.com%2Fentry%2F2019%2F01%2F15%2F012928&quot; title=&quot;matplotlibで二文字以上の変数を上付きにする。 - nano_exit&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/89449353/1514224948935857</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-15 01:29:28</published>
  <title>matplotlibで二文字以上の変数を上付きにする。</title>
  <type>rich</type>
  <url>https://koideforest.hatenadiary.com/entry/2019/01/15/012928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
