python.plotly - k821209/pipelines GitHub Wiki
box plot
- 구체적인것은 홈피에서 바꾸는게 참으로 편하다.
import plotly.plotly as py
import plotly.graph_objs as go
trace2 = go.Box(
y = num_exons_list_tair,
name = "TAIR10",
boxpoints = 'suspectedoutliers',
marker = dict(
color = 'rgb(8,81,156)',
outliercolor = 'rgba(219, 64, 82, 0.6)',
line = dict(
outliercolor = 'rgba(219, 64, 82, 0.6)',
outlierwidth = 2)),
line = dict(
color = 'rgb(8,81,156)')
)
trace3 = go.Box(
y = num_exons_list_araport,
name = "ARAPORT11",
boxpoints = 'suspectedoutliers',
marker = dict(
color = 'rgb(8,81,156)',
outliercolor = 'rgba(219, 64, 82, 0.6)',
line = dict(
outliercolor = 'rgba(219, 64, 82, 0.6)',
outlierwidth = 2)),
line = dict(
color = 'rgb(8,81,156)')
)
trace4 = go.Box(
y = num_exons_list_vca,
name = "Vca",
boxpoints = 'suspectedoutliers',
marker = dict(
color = 'rgb(8,81,156)',
outliercolor = 'rgba(219, 64, 82, 0.6)',
line = dict(
outliercolor = 'rgba(219, 64, 82, 0.6)',
outlierwidth = 2)),
line = dict(
color = 'rgb(8,81,156)')
)
trace5 = go.Box(
y = num_exons_list_cre,
name = "Cre",
boxpoints = 'suspectedoutliers',
marker = dict(
color = 'rgb(8,81,156)',
outliercolor = 'rgba(219, 64, 82, 0.6)',
line = dict(
outliercolor = 'rgba(219, 64, 82, 0.6)',
outlierwidth = 2)),
line = dict(
color = 'rgb(8,81,156)')
)
data = [trace2,trace3,trace4,trace5]
layout = go.Layout(
title = "Box Plot Styling Outliers"
)
fig = go.Figure(data=data,layout=layout)
py.iplot(fig, filename = "Box Plot Styling Outliers")