我有一个要绘制的数据框。我需要将y轴的下限更改为0,更重要的是,使阿根廷的线比其他线更粗。
我已经将csv文件读入Python并绘制了图,现在我只需要对图进行调整。
债务= pd.read_csv('http://pages.stern.nyu.edu/~dbackus/Data/debt.csv')
债务= btr.set_index(['Year'])
图,ax = plt.subplots()
debt.plot(ax = ax,线宽= 2)
类似的东西?..
import pandas as pd
import matplotlib.pyplot as plt
debt = pd.read_csv('http://pages.stern.nyu.edu/~dbackus/Data/debt.csv')
debt = debt.set_index(['Year'])
fig, ax = plt.subplots()
debt['ARG'].plot(ax = ax, linewidth = 1)
debt['DEU'].plot(ax = ax, linewidth = 3)
debt['GRC'].plot(ax = ax, linewidth = 5)