Created
November 25, 2009 11:01
-
-
Save mattions/242635 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deleting a line in matplot lib | |
fig = figure() | |
ax = fig.add_subplot(111) | |
x = linspace(0,10) | |
plot(x, sin(x), label='sin') | |
plot(x, cos(x), label='cos') | |
# Deleting the last one | |
del ax.lines[1] | |
draw() # updating the fig | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment