I am using Stata 17 and was using some python codes to plot some bar charts. Below is my code:
Code:
python: import os os.chdir("C:/Users/ngwee/OneDrive/INSEAD RA work") import pandas as pd df = pd.read_csv('start_date.csv') import matplotlib.pyplot as plt x = df['rec_start_dates'] y = df['unrate_rec_start'] plt.bar(x,y) plt.ylabel('Monthly Unemployment Rate(seasonally adjusted)') plt.xlabel('Months') plt.title("Unemployment at Recession Start dates") plt.bar(x, y, color='blue') plt.savefig("myplot.png") plt.show() end
Code:
--------------------------- StataSE-64 --------------------------- This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix this problem. --------------------------- OK ---------------------------
Any help in this area would be appreciated. Thanks!
0 Response to Help needed for Matplotlib in Stata
Post a Comment