Answers for "remove axis matplotlib"

1

matplotlib remove y axis label

ax.axes.xaxis.set_ticklabels([])
Posted by: Guest on October-22-2021
6

python drop axis

df.drop(['colonna da togliere'], axis=1)
Posted by: Guest on April-06-2020
1

turn off axes matplotlib

plt.axis('off')
Posted by: Guest on March-18-2020
0

plt off axis

from numpy import random
import matplotlib.pyplot as plt

data = random.random((5,5))
img = plt.imshow(data, interpolation='nearest')
img.set_cmap('hot')
plt.axis('off')
plt.savefig("test.png", bbox_inches='tight')
Posted by: Guest on September-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language