8
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PyCharm で matplotlib を使ってみる

Last updated at Posted at 2014-07-29

iPython あんまり便利と思えないので、一番ましな IDE である PyCharm を使ってみた。
しかし、matplotlib の使い方が分からなかったので調べてみた。
ちなみに Canopy を入れている。

from pandas import DataFrame, Series

index = ["America/New_York", "Unknown", "America/Chicago", "America/Los_Angeles", "America/Denver", "Missing",
         "Europe/London", "Asia/Tokyo", "Pacific/Honolulu", "Europe/Madrid"]
data = [1251, 521, 400, 382, 191, 120, 74, 37, 36, 35]
frame = DataFrame(data=data, index=index, columns=["count"])
print frame
結果
                     count
America/New_York      1251
Unknown                521
America/Chicago        400
America/Los_Angeles    382
America/Denver         191
Missing                120
Europe/London           74
Asia/Tokyo              37
Pacific/Honolulu        36
Europe/Madrid           35
import matplotlib.pyplot as plt

frame.plot(kind="barh", rot=0)
plt.show()

figure_1.png

8
10
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
8
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?