Multiple plots
Title
Question
How we can modify or any changes in figure(1) ,figure(2) ? and How to delete the any figure from the console?
Python-3.4.3 Multiple-plots 01-02 min 10-20 sec
Answers:
You have to assign the plots to a variable to be able to reference them later and make any changes
SImilarly, You need to store the plot command in a variable and use remove method to clear the specific plot. For e.g. x = linspace(0, 2*pi, 50) a = plot(x, sin(x)) b = plot(x, cos(x)) Let's say we want to remove the sine plot stored in the variable a. Just type a[0].remove(). This will remove the sine plot but the cosine plot is still present.
Login to add comment