[PYTHON] Try using matplotlib with PyCharm

iPython I don't think it's very useful, so I tried using the best IDE, PyCharm. However, I didn't know how to use matplotlib, so I looked it up. By the way, Canopy is included.

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

result


                     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

Recommended Posts

Try using matplotlib with PyCharm
Try using matplotlib
Try using PythonTex with Texpad.
Try using folium with anaconda
Japaneseize Matplotlib with Alpine using Docker
Try using Python's networkx with AtCoder
Try using Tkinter
Try using docker-py
Try mathematical formulas using Σ with python
Try using PDFMiner
Try drawing a normal distribution with matplotlib
Try using the camera with Python's OpenCV
Try using geopandas
Try using Dropbox API v2 with Go
Try using Python with Google Cloud Functions
Try using Selenium
Try using scipy
Animation with matplotlib
Try using pandas.DataFrame
Japanese with matplotlib
Animation with matplotlib
Histogram with matplotlib
Try using django-swiftbrowser
Animate with matplotlib
Try using tf.metrics
Try using PyODE
Try using conda virtual environment with Jupyter Notebook
Try drawing contour plots using matplotlib in OpenFOAM
Try scraping with Python.
2-axis plot with Matplotlib
Graph drawing using matplotlib
Try using virtualenv (virtualenvwrapper)
I tried using matplotlib
[Azure] Try using Azure Functions
Heatmap with Python + matplotlib
Band graph with matplotlib
Try using virtualenv now
Try using W & B
Learn with Cheminformatics Matplotlib
Try SNN with BindsNET
Try using Django templates.html
[Kaggle] Try using LGBM
Try using Python's feedparser.
Try using Python's Tkinter
Real-time drawing with matplotlib
Various colorbars with Matplotlib
3D plot with matplotlib
Try regression with TensorFlow
Try using Tweepy [Python2.7]
Try using Pytorch's collate_fn
Adjust axes with matplotlib
Try projective transformation of images using OpenCV with Python
Try to make RESTful API with MVC using Flask 1.0.2
Using X11 with ubuntu18.04 (C)
Try to factorial with recursion
Try function optimization with Optuna
When using optparse with iPython
Run python with PyCharm (Windows)
Using Graphviz with Jupyter Notebook
[S3] CRUD with S3 using Python [Python]
[Python] Try using Tkinter's canvas