Matplotlib update plot in jupyter example-1 Without clearing axes before plotting To pause the execution of code, we use pause() function.To clear the output, we use clear_output() function.To display the figure, display() function. To clear the screen, we use cla() function.To plot the graph, we use plot() function.To set the limits, we use set_xlim() function.Next, define data coordinates, using linspace() and cos() function.After this, we create figure and subplot, using figure() and add_subplot() functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |