Painting-with-Plotly

留存备忘

Ref

Discrete Colors in Python https://plotly.com/python/discrete-color/

Built-in Continuous Color Scales in Python https://plotly.com/python/builtin-colorscales/

Continuous Color Scales and Color Bars in Python https://plotly.com/python/colorscales/

离散

px.colors.qualitative

image-20220331014828262

连续

px.colors.sequential

image-20220331014913694image-20220331015120500image-20220331015143090

px.colors.diverging.

image-20220331015231435

px.colors.cyclical.

image-20220331015259469

image-20220331015317513

line color

# The ‘color’ property is a color and may be specified as:

# - A hex string (e.g. ‘#ff0000’)

# - An rgb/rgba string (e.g. ‘rgb(255,0,0)’)

# - An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)

# - An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)

# - A named CSS color:

# aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen

# - A number that will be interpreted as a color

# according to scatter.marker.colorscale

# - A list or array of any of the above

line dash

dash options include ‘dash’, ‘dot’, and ‘dashdot’

image-20220331113904238

0%