Programming/Python

Python Plotly 하다가 레퍼런스 잘 안나와서 모아놓는 document들

며용 2020. 7. 23. 22:00
# 사용한 버전
pip install plotly==4.9.0


#dragmode: 드래그 모드 어떤 걸로 할지 설정하는거
#['orbit', 'turntable', 'zoom', 'pan', False]

 

 

 

- '어떻게 만들어야할지 모르겠다 or 이렇게 어떻게 함'일 때 찾아보는 다른 사람들의 그래프

chart-studio.plotly.com/

 

Plotly | Make charts and dashboards online

 

chart-studio.plotly.com

여기에 하고 싶은 거 검색한 다음에 editor로 들어가서 이것저것 눌러서 바까도 보고 내 코드에 적용하고 싶으면 JSON에서 attribute값 보고 그대로 적용하면 됨

 

 

- scattergeo 지도 종류 보기 (그림)

plotly.com/python/map-configuration/

 

Map Configuration and Styling

How to configure and style base maps for Choropleths and Bubble Maps.

plotly.com

 

 

- Figure 그리는데 어떤 속성값들 있는지 찾을 때 들어가서 보는 곳 (doucment)

plotly.com/python/reference/#scattergeo

 

Figure Reference

The complete reference of Plotly chart attributes for Plotly's Python library.

plotly.com

 

 

- 한 화면에 차트 여러개 넣는 방법 (subplot, 그림 포함)

plotly.com/python/subplots/

 

Subplots

How to make subplots in with Plotly's Python graphing library. Examples of stacked, custom-sized, gridded, and annotated subplots.

plotly.com

plotly.com/python-api-reference/generated/plotly.subplots.make_subplots.html

 

plotly.subplots.make_subplots — 4.9.0 documentation

Indices of the outer list correspond to subplot grid rows starting from the top, if start_cell=’top-left’, or bottom, if start_cell=’bottom-left’. The number of rows in ‘specs’ must be equal to ‘rows’.

plotly.com

 

 

- 중점에 관련된...비율이랄까...domain이 무엇이냐면..... 그림을 보는게 빠름

plotly.com/python/axes/

 

Axes

How to adjust axes properties in python. Includes examples of linear and logarithmic axes, axes titles, styling and coloring axes and grid lines, and more.

plotly.com

 

 

- scattergeo에 선 그리기 (그림 포함)

plotly.com/python/lines-on-maps/#lines-on-maps-with-plotlygraphobjects

 

Lines on Maps

How to draw lines, great circles, and contours on maps in Python.

plotly.com

- scattergeo document

plotly.github.io/plotly.py-docs/generated/plotly.graph_objects.Scattergeo.html

 

plotly.graph_objects.Scattergeo — 4.9.0 documentation

hovertemplate – Template string used for rendering the information that appear on hover box. Note that this will override hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{v

plotly.github.io

 

 

- hovering, 캡션, 메모 띄우기

plotly.com/python/hover-text-and-formatting/

 

Hover Text and Formatting

How to use hover text and formatting in Python with Plotly.

plotly.com

 

 

- 고버전부터는 line도 scatter로.. 인듯 (그림 포함)

plotly.com/python/line-and-scatter/

 

Scatter Plots

How to make scatter plots in Python with Plotly.

plotly.com

 

 

 

 

 

- etc (안썼는데 hoxy나)

plotly.com/python/creating-and-updating-figures/

 

Creating and Updating Figures

Creating and Updating Figures with Plotly's Python graphing library

plotly.com

plotly.com/python/scattermapbox/

 

Scatter Plots on Mapbox

How to make scatter plots on Mapbox maps in Python.

plotly.com

plotly.com/python/text-and-annotations/

 

Text and Annotations

How to add text labels and annotations to plots in python.

plotly.com

plotly.com/python/scatter-plots-on-maps/#customize-geographical-scatter-plot

 

Scatter Plots on Maps

How to make scatter plots on maps in Python. Scatter plots on maps highlight geographic areas and can be colored by value.

plotly.com