Pandas m3 #그래프모듈 #linewidth #marker #savefig
전체코드 import matplotlib.pyplot as mpt #그래프모듈 import mfont x=[15,20,7,36] #linewidth:선 두께 1=px #marker:동그라미 찍힘 #o:원 v:삼각형 x:x모양 *:*모양 #marker: 공식사이트에 설명있음 https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.html #markerfacecolor:배경 #markeredgecolor:테두리 #linestyle:solid, dashed, dotted #color:선 색상 #mpt.plot(x, linestyle='dashed',label="2022년 취업통계",linewidth=3,marker='o',ma..
2022. 9. 28.
Pandas m2 그래프 thicks 표현 방식 #ticks #loc
전체코드 #그래프 thicks 표현 방식 import matplotlib.pyplot as mpt #그래프모듈 import mfont #x축, y축 배열 개수 같아야함 #x,y축 중 데이터 숫자 값은 반드시 있어야함 #y축 한글, x축 숫자로 표현 또는 반대 x=[10,15,'데이터'] y=['서울','인천','대구'] mpt.plot(x,y) #(x축값, y축값) mpt.xlabel("x축",color='blue',loc='left') #left,right,center mpt.ylabel("y축",color='red',loc='top') #top,center,bottom mpt.show() #본데이터 xx=[3,7,9] yy=[5,9,12] #mpt.plot(xx,yy) #데이터 개수는 같아야함 #ti..
2022. 9. 28.
Pandas m1 #그래프모듈 #plot #title #show()
전체코드 #matplotlib:그래프 형태 자료형 + numpy import matplotlib.pyplot as mpt #그래프모듈 import mfont x=[1,3,5] #가로 y=[-2,4,6] #세로 mpt.plot(x,y) #숫자리스트를 그래프로 mpt.title("테스트 그래프") #그래프 화면 타이틀 mpt.show() #그래프 모듈화면 출력 data=[10,6,4,7,3,2,9] #data = [1,5,9,10,2] mpt.plot(data) mpt.show() #matplotlib:그래프 형태 자료형 + numpy import matplotlib.pyplot as mpt #그래프모듈 import mfont x=[1,3,5] #가로 y=[-2,4,6] #세로 mpt.plot(x,y) #숫..
2022. 9. 28.