Answers for "pyplot axis"

3

axis = 1 python

axis = 1 => 'Coulumn'
axis = 0 => 'Row'

+------------+---------+--------+
|            |  A      |  B     |...
+------------+---------+---------
|      0     | 0.626386| 1.52325|----axis=1----->
+------------+---------+--------+
        .    |         |
        .    | axis=0  |
             ↓         ↓
Posted by: Guest on April-08-2021
0

matplotlib axis labels

ticks = [0, 1, 2]
labels = ["a", "b", "c"]

plt.figure()
plt.xticks(ticks, labels)
plt.show()
Posted by: Guest on June-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language