Last active
July 14, 2019 04:45
-
-
Save gary136/e308e0c33489d8fa2b0b40fc90ddcf1e to your computer and use it in GitHub Desktop.
growth_plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import seaborn as sns | |
from matplotlib.font_manager import FontProperties | |
sns.set(font=['sans-serif']) | |
# 有關 Matplotlib / Seaborn 視覺化的中文顯示問題請參考 https://reurl.cc/15x6m | |
sns.set_style("whitegrid",{"font.sans-serif":['Microsoft JhengHei']}) | |
plt.figure(figsize=(12,7)) | |
sns.barplot(x="INDUSTRY_NAME_2", y="AVG_ACC_YOY", data=df_2018_growth.head(10)) | |
plt.xlabel('產業名', fontsize=15) | |
plt.ylabel('營收年增率(%)', fontsize=15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment