Matplotlib 조정 틱

코드 예제

2
0

조절 눈금 레이블 크기 matplotlib

plt.xticks(fontsize=)
0
0

matplotlib 증가 진드기 주파수

# credit ot the Stack Overflow user in the source link
# this is just an example in which you increase the number of ticks on the x-axis
# that is, the spacing between consecutive plotted ticks is reduced 

import numpy as np
import matplotlib.pyplot as plt

x = [0,5,9,10,15]
y = [0,1,2,3,4]

plt.plot(x,y)
plt.xticks(np.arange(min(x), max(x)+1, 1.0))
plt.show()

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................