some ticks in Matplotlib
- It's
import matplotlib.pyplot as pltranther thanimport matplotlib as plt. - We often code
plt.subplot(121),plt.imshow(img),plt.title('Input'),plt.xticks([]),plt.yticks([])
plt.subplot(rows, columns, index) plt.subplot(121)means total column counts is 1, total row counts is 2, the current figure index is 1plt.xticks([]),plt.yticks([])means hide x and y axis and ticks
浙公网安备 33010602011771号