파이썬[Python]: matplotlib - axis 함수

matplotlib 모듈 - pyplot 모듈 - axis 함수(function)


/// 설명

축(axis) 속성을 설정하거나 가져올 경우 유용합니다. [xmin, xmax, ymin, ymax] : float

emit: 축(axis)을 변화시킬 경우 옵저버(observer)에게 통보 하는 것을 결정합니다. set_xlim 또는 set_ylim 에 사용되어집니다.

※ 형식
matplotlib.pyplot.axis(*args, emit=True, **kwargs)

reference
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.axis.html

/// 예제 default x = [0 ~ (y'length - 1)]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import matplotlib.pyplot as plt
 
x1 = [12345678910]
y1 = [149162536496481100]
 
x2 = [12345678910]
y2 = [12345678910]
 
# plt.plot(x1, y1, 'r+--', x2, y2, 'b+--')
plt.plot(x1, y1, 'r+--')
plt.plot(x2, y2, 'b+--')
plt.axis([0200150])
plt.axis('on')
# plt.axis('off')
# plt.axis('equal')
# ...
# ... see: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.axis.html
plt.show()
 
cs

/// 출력


* 실행환경: Microsoft Windows 10 Homes
* 인터프리터: 파이썬(Python 3.9)


– 당신을 응원합니다. –

댓글

이 블로그의 인기 게시물

파이썬[Python]: 내장함수 - from_bytes 메서드

파이썬[Python]: 내장함수 - __len__ 메서드

파이썬[Python]: kivy - 한글 사용

파이썬[Python]: 내장함수 - bit_length 메서드

C 언어: sin 함수, cos 함수, tan 함수