scipy.ndimage

How to make dotted line in a binary array

How to make dotted line in a binary array Question: how to create the dotted line in the below NumPy array import NumPy as np from matplotlib import pyplot as plt from matplotlib.colors import ListedColormap x=np.array( [ [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, …

Total answers: 1