comment

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

関連記事

no image

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

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

no image

tex でアンダーライン(下線)に色をつける方法

テキストの下線に色を付けたい場合には、color, soul パッケージを使用する。 そして、下線をつけたいテキストを\ul で囲む。 例 \usepackage{color, soul} \begi …

no image

tex で箇条書きをする方法

箇条書きをしたい部分を\begin{\itemize} と\end{itemize} で囲い、項目ごとに \item で箇条書きをすることができる。 例 \begin{itemize}     \it …

no image

最大サイズを指定して、画像をまとめてリサイズする方法(mogrify コマンド)

imageMagick の mogrify コマンドを使う。 例(*.jpg ファイルを jpeg ファイルにまとめてリサイズする) mogrify -format jpeg -resize 900 …

no image

matplotlib で x軸・y軸ラベルをつける

plt.xlabel と plt.ylabel を使う。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, …