종목 무관 스포츠 경기장/코트 시각화 라이브러리 (스포츠경기분석 아카데미)
Project description
ksme_visuals
종목 무관 스포츠 경기장/코트 시각화 라이브러리. 46개 종목(올림픽·패럴림픽·아시안게임)을 지원합니다.
Pitch 가 배경(코트)을 그려주고, 그 위에 점·화살표·히트맵은 표준 matplotlib 으로 얹습니다.
설치
pip install ksme_visuals
사용
from ksme_visuals import Pitch
pitch = Pitch(sport="soccer", pitch_color="#16243a", line_color="white")
fig, ax = pitch.draw(figsize=(9, 6))
ax.scatter(df.x, df.y) # 내 데이터 얹기
print(Pitch.available()) # 지원 종목 목록
좌표계: 원점(0,0)=왼쪽 아래, x=길이(length), y=폭(width), 단위 m.
한글 종목명도 인식합니다: Pitch(sport="농구"), Pitch(sport="배드민턴").
라이선스
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ksme_visuals-0.3.0.tar.gz
(20.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ksme_visuals-0.3.0.tar.gz.
File metadata
- Download URL: ksme_visuals-0.3.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4365737d7954c45fc1123b6b0619cc1417a7cd29fb890ea786ccc423bd39f64a
|
|
| MD5 |
fa480d09a44c5756fadff8a2f214afa5
|
|
| BLAKE2b-256 |
68ea691d7c679818c552f53ee0943f7ec940c056f34ccea9a6de8e6ade937c2d
|
File details
Details for the file ksme_visuals-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ksme_visuals-0.3.0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8d64ada6bb249aa64aaa123d3863ff6428480d9fe80478785ae33fd10cf0f57
|
|
| MD5 |
e661cb996379cbf276bf6a5f30b2680e
|
|
| BLAKE2b-256 |
ee243db0a4b8b6fab041d6aea13452d19d8bd21b24c48cc16858fa9cef77bb1a
|