본문 바로가기

분류 전체보기273

matplotlib : ax.tick_params stateless https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.tick_params.html matplotlib.axes.Axes.tick_params — Matplotlib 3.5.2 documentation Change the appearance of ticks, tick labels, and gridlines. Tick properties that are not explicitly set using the keyword arguments remain unchanged unless reset is True. Parameters axis{'x', 'y', 'both'}, default: 'both'The axis to which the.. 2022. 7. 21.
matplotlib : 전역설정(global) rcParams 정리 matplotlib 공식사이트 rcParam에 정리되어있다 https://matplotlib.org/stable/tutorials/introductory/customizing.html Customizing Matplotlib with style sheets and rcParams — Matplotlib 3.5.2 documentation Tips for customizing the properties and default styles of Matplotlib. Setting rcParams at runtime takes precedence over style sheets, style sheets take precedence over matplotlibrc files. The matplotlibrc fil.. 2022. 7. 21.
Pandas DataFrame : int를 object로 변환 https://stackoverflow.com/questions/17950374/converting-a-column-within-pandas-dataframe-from-int-to-string Converting a column within pandas dataframe from int to string I have a dataframe in pandas with mixed int and str data columns. I want to concatenate first the columns within the dataframe. To do that I have to convert an int column to str. I've tried to do as stackoverflow.com df['A'] = .. 2022. 7. 21.
해결) seaborn col로 groupby했을때, plt.xticks설정하면 마지막 그래프만 바뀜 해결) plt.rcParam 이용 2022. 7. 20.
7/20 데이터분석이 어려운 이유. 코딩이 어려운 이유 최근에 xtick, xlabel fontsize 크기 키우는것만 10시간검색한것같다. 진짜 어려운걸 넘어서 분노. 그냥 공부만하고싶은데 자꾸 진도가 턱턱 막힌다. 성격의 문제가 일단 큰 것 같다 궁금하면 그냥 참고 넘어가면되는데 사소한거에 의문이 생겨서 꼬리에 꼬리를 물다보면 그날 하루 진도가 하나도 안나간다. 그리고 최근 문제 FacetGrid, axes-level, labelsize sns.catplot을 하는데 ylabel 사이즈가 작아서 키워볼까? 생각이 들었다 -> catplot은 FacetGrid니까 matplotlib 메서드를 쓰면 안되겠지? -> 어 왜 다른 사람들은 matplotlib 메서드를 쓰는거지? -> 뭐야 plt.xticks로 조절 가능하네 -> 그럼 plt.ylabel도 되겠네.. 2022. 7. 20.
데이터시각화 예시 모음집(matplotlib, seaborn) 1.데이터시각화 갤러리 https://www.python-graph-gallery.com/scatter-plot/ Scatterplot | The Python Graph Gallery A collection of scatterplot examples made with Python, coming with explanation and reproducible code www.python-graph-gallery.com seaborn, matplotlib 모아놓은 사이트 찾아다녔는데 굿 2 Seaborn 공식 example https://seaborn.pydata.org/examples/index.html Example gallery — seaborn 0.11.2 documentation seaborn.pyda.. 2022. 7. 20.
◆Seaborn : figure-level, axes-level 차이 https://hwi-doc.tistory.com/entry/seaborn-%EC%99%84%EB%B2%BD-%EC%A0%95%EB%A6%AC?category=938350 seaborn 완벽 정리 여러분은 처음 seaborn을 어떻게 사용했나요? seaborn이 시각화에 좋다고 해서 그냥 import seaborn as sns 를 하고, 있을 법한 그래프를 메소드로 써서 실행시켜보시지는 않았나요? displot이 어떤 plot인지 hwi-doc.tistory.com https://seaborn.pydata.org/tutorial/function_overview.html Overview of seaborn plotting functions — seaborn 0.11.2 documentation In add.. 2022. 7. 19.
Seaborn : plot xticks, yticks만 크기 조절하는법 https://stackoverflow.com/questions/42404154/increase-tick-label-font-size-in-seaborn Increase tick label font size in seaborn I have a huge problem with my seaborn plots. For some reason, the numbers along the axis are printed with a really small font, which makes them unreadable. I've tried to scale them with with plt. stackoverflow.com sns.set(font_scale = 2)는 모든 크기를 다 키운다. xticks, yticks만 띄우.. 2022. 7. 18.