fixed READE example
This commit is contained in:
@@ -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.
|
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 = plt.figure()
|
||||||
fig.plot([1,2,3], label='Test')
|
plt.plot([1,2,3], label='Test')
|
||||||
# Do more plotting here...
|
# Do more plotting here...
|
||||||
# When the figure is complete:
|
# When the figure is complete:
|
||||||
tudplot.saveagr('test.agr')
|
tudplot.saveagr('test.agr')
|
||||||
|
|||||||
Reference in New Issue
Block a user