데이터시각화

작성일자 : 2024-09-28Ver 0.1.1참고 사이트 : wiki docs 선 종류를 나타내는 문자열 또는 튜플을 이용해서 다양한 선의 종류를 구현할 수 있습니다. Keyword: plt.plot(), 포맷 문자열, 선 종류, linestyle, Solid, Dashed, Dotted, Dash-dot기본 사용예제import matplotlib.pyplot as pltplt.plot([1, 2, 3], [4, 4, 4], '-', color='C0', label='Solid')plt.plot([1, 2, 3], [3, 3, 3], '--', color='C0', label='Dashed')plt.plot([1, 2, 3], [2, 2, 2], ':', color='C0', label='Dotted'..
작성일자 : 2024-09-27Ver 0.1.1참고 사이트 : wiki docs matplotlib.pyplot 모듈의 xlim(), ylim(), axis() 함수를 사용하면 그래프의 X, Y축이 표시되는 범위를 지정할 수 있다.xlim() - X축이 표시되는 범위를 지정하거나 반환ylim() - Y축이 표시되는 범위를 지정하거나 반환axis() - X, Y축이 표시되는 범위를 지정하거나 반환기본 사용 - xlim(), ylim()예제import matplotlib.pyplot as pltplt.plot([1, 2, 3, 4], [2, 3, 5, 10])plt.xlabel('X-Axis')plt.ylabel('Y-Axis')plt.xlim([0, 5]) # X축의 범위: [xmin, xmax]..
작성일자 : 2024-09-25수정일자 : 2024-09-26Ver 0.1.11. 데이터 준비Terra Mystica Snellman Statistics Terra Mystica Snellman StatisticsGame logs and statistics from online games of Terra Mysticawww.kaggle.com2. EDA - 데이터 파악# 모듈 importimport osimport pandas as pdimport numpy as npimport seaborn as snsimport matplotlib.pyplot as pltfrom matplotlib.gridspec import GridSpec# Directory 확인os.getcwd()'/Users/limjongju..
작성일자 : 2024-09-26Ver 0.1.1참고 사이트 : wiki docs 범례 (Legend)는 그래프에 데이터의 종류를 표시하기 위한 텍스트이다.matplotlib.pyplot 모듈의 legend() 함수를 사용해서 그래프에 범례를 표시할 수 있다. 기본 사용예제import matplotlib.pyplot as pltplt.plot([1, 2, 3, 4], [2, 3, 5, 10], label='Price ($)')plt.xlabel('X-Axis')plt.ylabel('Y-Axis')plt.legend()plt.show() 그래프 영역에 범례를 나타내기 위해서는 우선 plot() 함수에 label 문자열을 지정하고, matplotlib.pyplot 모듈의 legend() 함수를 호출한다. 아래..
Unlimited Jun
'데이터시각화' 태그의 글 목록