0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Python] matplotlibの文字化けの対処法(Windows)

0
Last updated at Posted at 2026-04-28

問題点

日本語部分が文字化けする
image.png

対処法

フォントを「Meiryo」に指定したら文字化け直りました!

import matplotlib.pyplot as plt
import matplotlib

# Windowsに標準搭載されている「メイリオ」などを指定
matplotlib.rcParams['font.family'] = 'Meiryo'

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?