주로 사용하는 matplotlib setting
전체 그래프 세팅 plt.rc('font',family='Malgun Gothic', size = 20, weight = 'bold') #한글폰트 적용 plt.rc('figure',figsize = (10,7)) #크기설정 plt.rc('axes', grid = True) #격자 on,off #plt.rc('lines', color = 'y', linewidth = 4,linestyle = '--') # 라인설정 #plt.rc('grid', color = 'k', linewidth = 1, linestyle = ':')# 그리드설정 #plt.rc(&..
2021. 3. 15.
Geometry contains, within
within/ contains a.contains(b) == b.within(a) 관계가 성립된다. contains Geometry 객체가 다른 Geometry객체(전부)를 포함하는지 여부를 리턴 within Geometry 객체가 다른 Geometry객체에 포함되는지 여부를 리턴 -> 한글 설명으로 이해하려니 어렵다. 또한 포함이란 단어가 중복되어 헷갈린다 예제코드 import geopandas as gpd from shapely.geometry import Point, Polygon,LineString #아래와 같이 샘플용 데이터 생성 point1 = Point(5,5) point2 = Point(3,3) polygon1 = Polygon(((0,0),(0,10),(10,10),(10,0))) pol..
2020. 12. 9.