zerohertzLib.plot.table ¶
Functions:
| Name | Description |
|---|---|
table | Dictionary로 입력받은 data를 scatter plot으로 시각화 |
table ¶
table(data: list[list[int | float | str]], col: list[int | float | str] | None = None, row: list[int | float | str] | None = None, title: str = 'tmp', fontsize: int = 35, figsize: tuple[int, int] = (20, 8), dpi: int = 300) -> str
Dictionary로 입력받은 data를 scatter plot으로 시각화
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data | list[list[int | float | str]] |
| required |
col | list[int | float | str] | None | 열 (column)의 label | None |
row | list[int | float | str] | None | 행 (row)의 label | None |
title | str | 저장될 file의 이름 | 'tmp' |
fontsize | int | 문자의 크기 | 35 |
figsize | tuple[int, int] | Graph의 가로, 세로 길이 | (20, 8) |
dpi | int | Graph 저장 시 DPI (Dots Per Inch) | 300 |
Returns:
| Type | Description |
|---|---|
str | 저장된 graph의 절대 경로 |
Examples:
>>> data = [["123", 123, 123.4], [123.4, "123", 123], [123, 123.4, "123"], ["123", 123, 123.4]]
>>> col = ["Terran", "Zerg", "Protoss"]
>>> row = ["test1", "test2", "test3", "test4"]
>>> zz.plot.table(data, col, row, title="Star Craft")
>>> zz.plot.table(data, col, row, title="Star Craft2", fontsize=50)
