diff --git a/README.md b/README.md index 69ed49b..38aaa72 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ One can specify the keyword `full` to enable a range of continuous colors from t TUDPlot also comes with a basic exporter `saveagr`, to save the current matplotlib figure in xmgrace agr format. - from matplotlib import pyplot as plt + import matplotlib.pyplot as plt fig = plt.figure() - fig.plot([1,2,3], label='Test') + plt.plot([1,2,3], label='Test') # Do more plotting here... # When the figure is complete: tudplot.saveagr('test.agr')