Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

dynamic plot jupyter notebook

%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt

m = 100
n = 100
matrix = np.random.normal(0,1,m*n).reshape(m,n)

fig = plt.figure()
ax = fig.add_subplot(111)
plt.ion()

fig.show()
fig.canvas.draw()

for i in range(0,100):
    ax.clear()
    ax.plot(matrix[i,:])
    fig.canvas.draw()
Comment

PREVIOUS NEXT
Code Example
Python :: how to make a numpy array of certain values 
Python :: resize cmd using python 
Python :: how to remove time in datetime in python 
Python :: how to code a yes or no question in python v3.8 
Python :: binary python 
Python :: print labels on confusion_matrix 
Python :: flatten a list 
Python :: python how to draw a circle 
Python :: Check status code urllib 
Python :: Example Layout using grid() in tkinter 
Python :: run a python script from another python script on a raspberry pi 
Python :: how to rename columns in pandas dataframe 
Python :: cos inverse in python numpy 
Python :: plotting in python 
Python :: python txt to parquet 
Python :: ConfusionMatrixDisplay size 
Python :: python - count number of occurence in a column 
Python :: conda enviroment python version 
Python :: calculate quartil python 
Python :: find keys to minimum value in dict 
Python :: pandas filter dataframe if an elemnt is in alist 
Python :: root value of a column pandas 
Python :: python matrix 
Python :: python heatmap 
Python :: while loop py 
Python :: print(int()) 
Python :: create random phone number python 
Python :: how to print in double quotes in python 
Python :: python synonym library 
Python :: python int to char 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =