comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

python3 で、文字列の最後が特定の文字で終わるか判定する方法

endswith を使う。 例 str1 = “こんにちは” result1 = str1.endswith(“は”) result2 = str1.endswith(“わ”) print(resul …

no image

tex で、一部分だけ文字サイズを小さくする方法

サイズを\footnotsize で指定する。 中括弧{}で、\footnotesize とターゲットにする文章の両方を囲む必要があることに注意。 例 吾輩は猫である。名前はまだ無い。 {\footn …

no image

tex で表の網掛けの仕方

表を見やすく網掛けする方法は、エクセルなどでよく使われる。 tex の表でもできる。 colortbl パッケージを使う。マニュアル:https://ftp.jaist.ac.jp/pub/CTAN/ …

no image

matplotlib で、グラフ内に注釈ラベルをつける方法

annotate を使う 例 import numpy as np import matplotlib.pyplot as plt ax = plt.figure().add_subplot() th …

no image

tex でバックスラッシュを入力する方法

テキストモードでは \textbackslash 数式モード内では \backslash を、それぞれ使う。 例 $\backslash$ \textbackslash 結果