본문 바로가기

전체 글12

[python.plotly] Scatter - Traces visibility(key: visible, opacity) python.plotly에서 생성한 chart를 보여줄 때 불필요한 trace가 불필요한 경우 보이지 않게 disable시키거나 숨기고 싶은 경우, Scatter trace의 visible key를 이용합니다. 또는 trace의 중요도에 따라서 opacity(불투명도) key를 적용하여 visibility를 조절이 가능합니다. 아래에 예시를 통해서 설명드리겠습니다. *Scatter traces의 Dict-key: visible, opacity 정보 참조 visible Code: fig.update_traces(visible=, selector=dict(type='scatter')) Type: enumerated , one of ( True | False | "legendonly" ) Default: Tr.. 2023. 2. 12.
Scatter Traces - Styling: Discrete/Continuous-color ( key: colorscale ) 본 페이지에서는 색상을 colorscale을 적용하여 꾸미는 방법을 말씀드리겠습니다. *Scatter traces의 Dict-key: colorscale, colorbar 정보 참조 colorscale Code: fig.update_traces(marker_colorscale=, selector=dict(type='scatter')) Type: colorscale Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl,.. 2023. 2. 12.
[python.plotly] Scatter Traces - Styling: line, marker's color(key: line_color, marker_color, marker_line_color) 본 페이지에는 Scatter Traces의 line이나 marker에 색깔을 입히는 방법과 Discrete한 색상 적용하는 방법에 대해서 설명하겠습니다. *Scatter traces의 color관련 Dict-key 정보 참조 line_color Code: fig.update_traces(line_color=, selector=dict(type='scatter')) Type: color Sets the line color. marker_color Code: fig.update_traces(marker_color=, selector=dict(type='scatter')) Type: color or array of colors Sets the marker color. It accepts either a spe.. 2023. 2. 12.
[python.plotly] Scatter Traces - Styling: markers (key: marker, marker_size, marker_symbol, marker_line, marker_line_width ) 본 페이지에서는 Scatter Traces의 markers 모양과 크기 변경이나 테두리를 적용하여 style를 가미하는 방법을 알려드리겠습니다. *key: marker, marker_size, marker_symbol, marker_line, marker_line_width 정보 참조 marker Code: fig.update_traces(unselected_marker=dict(...), selector=dict(type='scatter')) Type: dict containing one or more of the keys listed below. size Code: fig.update_traces(marker_size=, selector=dict(type='scatter')) Type: number .. 2023. 2. 8.