我的情节如下:
%matplotlib inline
import matplotlib.pyplot as plt
df[['Year','Unemployment with primary education (% of total
unemployment)','Unemployment with secondary education (% of total
unemployment)','Unemployment with tertiary education (% of total
unemployment)']].set_index('Year').plot()
plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
我想将x轴限制到2005年。我怎么能这样做?
答案 0 :(得分:1)
我没有您的数据,但如果configuration.configure("classpath:com/resources/hibernate.cfg.xml");
是一个简单的数字,您可以通过调用
'year'