1372 lines
59 KiB
Plaintext
1372 lines
59 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 81,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"old_pick_colors (generic function with 1 method)"
|
|
]
|
|
},
|
|
"execution_count": 81,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"using Plots; gadfly()\n",
|
|
"function old_pick_colors(grad,n)\n",
|
|
" grad=colorscheme(grad)\n",
|
|
" RGB[getColorZ(grad,z) for z in Plots.getpctrange(n)]\n",
|
|
"end"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 82,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"95.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FF9BFF\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00FFFF\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E98300\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0085FF\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#009100\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E90069\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0084C3\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F9FF0E\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#980000\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F3FCFF\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0010B4\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4E3000\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0045D1\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B79395\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#003B20\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00DDFF\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#98B6A6\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#610000\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#001C00\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"19-element Array{ColorTypes.RGB{FixedPointNumbers.UfixedBase{UInt8,8}},1}:\n",
|
|
" RGB{U8}(1.0,0.608,1.0) \n",
|
|
" RGB{U8}(0.0,1.0,1.0) \n",
|
|
" RGB{U8}(0.914,0.514,0.0) \n",
|
|
" RGB{U8}(0.0,0.522,1.0) \n",
|
|
" RGB{U8}(0.0,0.569,0.0) \n",
|
|
" RGB{U8}(0.914,0.0,0.412) \n",
|
|
" RGB{U8}(0.0,0.518,0.765) \n",
|
|
" RGB{U8}(0.976,1.0,0.055) \n",
|
|
" RGB{U8}(0.596,0.0,0.0) \n",
|
|
" RGB{U8}(0.953,0.988,1.0) \n",
|
|
" RGB{U8}(0.0,0.063,0.706) \n",
|
|
" RGB{U8}(0.306,0.188,0.0) \n",
|
|
" RGB{U8}(0.0,0.271,0.82) \n",
|
|
" RGB{U8}(0.718,0.576,0.584)\n",
|
|
" RGB{U8}(0.0,0.231,0.125) \n",
|
|
" RGB{U8}(0.0,0.867,1.0) \n",
|
|
" RGB{U8}(0.596,0.714,0.651)\n",
|
|
" RGB{U8}(0.38,0.0,0.0) \n",
|
|
" RGB{U8}(0.0,0.11,0.0) "
|
|
]
|
|
},
|
|
"execution_count": 82,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# without specifying the background color, you get colors that are hard to see\n",
|
|
"cols = distinguishable_colors(20)[2:end]"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 83,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"95.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#610007\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#002B2C\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#913B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0063FF\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#009100\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FF008D\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00ACEC\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#190E00\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FF7A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00002B\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#CEA3FF\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#EBBE00\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00D0FF\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#6B4C4D\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00FFD0\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#004BC7\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2E493C\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FFA0C9\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B8FF4B\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"19-element Array{ColorTypes.RGB{FixedPointNumbers.UfixedBase{UInt8,8}},1}:\n",
|
|
" RGB{U8}(0.38,0.0,0.027) \n",
|
|
" RGB{U8}(0.0,0.169,0.173) \n",
|
|
" RGB{U8}(0.569,0.231,0.0) \n",
|
|
" RGB{U8}(0.0,0.388,1.0) \n",
|
|
" RGB{U8}(0.0,0.569,0.0) \n",
|
|
" RGB{U8}(1.0,0.0,0.553) \n",
|
|
" RGB{U8}(0.0,0.675,0.925) \n",
|
|
" RGB{U8}(0.098,0.055,0.0) \n",
|
|
" RGB{U8}(1.0,0.478,0.0) \n",
|
|
" RGB{U8}(0.0,0.0,0.169) \n",
|
|
" RGB{U8}(0.808,0.639,1.0) \n",
|
|
" RGB{U8}(0.922,0.745,0.0) \n",
|
|
" RGB{U8}(0.0,0.816,1.0) \n",
|
|
" RGB{U8}(0.42,0.298,0.302)\n",
|
|
" RGB{U8}(0.0,1.0,0.816) \n",
|
|
" RGB{U8}(0.0,0.294,0.78) \n",
|
|
" RGB{U8}(0.18,0.286,0.235)\n",
|
|
" RGB{U8}(1.0,0.627,0.788) \n",
|
|
" RGB{U8}(0.722,1.0,0.294) "
|
|
]
|
|
},
|
|
"execution_count": 83,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# ugly, plus many similar, but at least you can see them\n",
|
|
"cols = distinguishable_colors(20,colorant\"white\")[2:end]"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 84,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"250.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0000E6\" stroke=\"none\" />\n",
|
|
"<rect x=\"2.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0400E0\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0800DB\" stroke=\"none\" />\n",
|
|
"<rect x=\"7.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0C00D6\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1100D1\" stroke=\"none\" />\n",
|
|
"<rect x=\"12.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1500CC\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1900C7\" stroke=\"none\" />\n",
|
|
"<rect x=\"17.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1D00C2\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2100BC\" stroke=\"none\" />\n",
|
|
"<rect x=\"22.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2500B7\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2900B2\" stroke=\"none\" />\n",
|
|
"<rect x=\"27.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2E00AD\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3200A8\" stroke=\"none\" />\n",
|
|
"<rect x=\"32.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3600A3\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3A009E\" stroke=\"none\" />\n",
|
|
"<rect x=\"37.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3E0099\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#420093\" stroke=\"none\" />\n",
|
|
"<rect x=\"42.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#46008E\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4B0089\" stroke=\"none\" />\n",
|
|
"<rect x=\"47.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4F0084\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#53007F\" stroke=\"none\" />\n",
|
|
"<rect x=\"52.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#57007A\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#5B0075\" stroke=\"none\" />\n",
|
|
"<rect x=\"57.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#5F006F\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#63006A\" stroke=\"none\" />\n",
|
|
"<rect x=\"62.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#650165\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#610561\" stroke=\"none\" />\n",
|
|
"<rect x=\"67.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#5D095D\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#590D59\" stroke=\"none\" />\n",
|
|
"<rect x=\"72.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#551255\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#511651\" stroke=\"none\" />\n",
|
|
"<rect x=\"77.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4D1A4D\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#481E48\" stroke=\"none\" />\n",
|
|
"<rect x=\"82.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#442244\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#402640\" stroke=\"none\" />\n",
|
|
"<rect x=\"87.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3C2A3C\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#382F38\" stroke=\"none\" />\n",
|
|
"<rect x=\"92.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#343334\" stroke=\"none\" />\n",
|
|
"<rect x=\"95.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#303730\" stroke=\"none\" />\n",
|
|
"<rect x=\"97.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2B3B2B\" stroke=\"none\" />\n",
|
|
"<rect x=\"100.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#273F27\" stroke=\"none\" />\n",
|
|
"<rect x=\"102.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#234323\" stroke=\"none\" />\n",
|
|
"<rect x=\"105.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1F471F\" stroke=\"none\" />\n",
|
|
"<rect x=\"107.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1B4C1B\" stroke=\"none\" />\n",
|
|
"<rect x=\"110.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#175017\" stroke=\"none\" />\n",
|
|
"<rect x=\"112.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#135413\" stroke=\"none\" />\n",
|
|
"<rect x=\"115.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0E580E\" stroke=\"none\" />\n",
|
|
"<rect x=\"117.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0A5C0A\" stroke=\"none\" />\n",
|
|
"<rect x=\"120.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#066006\" stroke=\"none\" />\n",
|
|
"<rect x=\"122.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#026402\" stroke=\"none\" />\n",
|
|
"<rect x=\"125.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#056700\" stroke=\"none\" />\n",
|
|
"<rect x=\"127.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0E6900\" stroke=\"none\" />\n",
|
|
"<rect x=\"130.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#176A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"132.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#206C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"135.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2A6D00\" stroke=\"none\" />\n",
|
|
"<rect x=\"137.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#336F00\" stroke=\"none\" />\n",
|
|
"<rect x=\"140.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3C7000\" stroke=\"none\" />\n",
|
|
"<rect x=\"142.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#467200\" stroke=\"none\" />\n",
|
|
"<rect x=\"145.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4F7300\" stroke=\"none\" />\n",
|
|
"<rect x=\"147.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#587500\" stroke=\"none\" />\n",
|
|
"<rect x=\"150.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#617600\" stroke=\"none\" />\n",
|
|
"<rect x=\"152.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#6B7800\" stroke=\"none\" />\n",
|
|
"<rect x=\"155.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#747900\" stroke=\"none\" />\n",
|
|
"<rect x=\"157.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#7D7B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"160.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#867C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"162.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#907E00\" stroke=\"none\" />\n",
|
|
"<rect x=\"165.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#997F00\" stroke=\"none\" />\n",
|
|
"<rect x=\"167.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#A28100\" stroke=\"none\" />\n",
|
|
"<rect x=\"170.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#AC8200\" stroke=\"none\" />\n",
|
|
"<rect x=\"172.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B58400\" stroke=\"none\" />\n",
|
|
"<rect x=\"175.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BE8500\" stroke=\"none\" />\n",
|
|
"<rect x=\"177.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C78700\" stroke=\"none\" />\n",
|
|
"<rect x=\"180.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D18800\" stroke=\"none\" />\n",
|
|
"<rect x=\"182.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DA8A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"185.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E38B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"187.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E68700\" stroke=\"none\" />\n",
|
|
"<rect x=\"190.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E68200\" stroke=\"none\" />\n",
|
|
"<rect x=\"192.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E67C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"195.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E67600\" stroke=\"none\" />\n",
|
|
"<rect x=\"197.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E67100\" stroke=\"none\" />\n",
|
|
"<rect x=\"200.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E66B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"202.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E66500\" stroke=\"none\" />\n",
|
|
"<rect x=\"205.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E66000\" stroke=\"none\" />\n",
|
|
"<rect x=\"207.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E65A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"210.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E65500\" stroke=\"none\" />\n",
|
|
"<rect x=\"212.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E54F00\" stroke=\"none\" />\n",
|
|
"<rect x=\"215.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E64900\" stroke=\"none\" />\n",
|
|
"<rect x=\"217.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E64400\" stroke=\"none\" />\n",
|
|
"<rect x=\"220.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E63E00\" stroke=\"none\" />\n",
|
|
"<rect x=\"222.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E63800\" stroke=\"none\" />\n",
|
|
"<rect x=\"225.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E63300\" stroke=\"none\" />\n",
|
|
"<rect x=\"227.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E62D00\" stroke=\"none\" />\n",
|
|
"<rect x=\"230.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E52700\" stroke=\"none\" />\n",
|
|
"<rect x=\"232.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E62200\" stroke=\"none\" />\n",
|
|
"<rect x=\"235.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E61C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"237.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E61700\" stroke=\"none\" />\n",
|
|
"<rect x=\"240.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E61100\" stroke=\"none\" />\n",
|
|
"<rect x=\"242.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E60B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"245.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E60600\" stroke=\"none\" />\n",
|
|
"<rect x=\"247.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E60000\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"100-element Array{ColorTypes.RGB{T<:Union{AbstractFloat,FixedPointNumbers.FixedPoint}},1}:\n",
|
|
" RGB{Float64}(0.0,0.0,0.9) \n",
|
|
" RGB{Float64}(0.0162408,0.0,0.879877)\n",
|
|
" RGB{Float64}(0.0324817,0.0,0.859754)\n",
|
|
" RGB{Float64}(0.0487225,0.0,0.839632)\n",
|
|
" RGB{Float64}(0.0649634,0.0,0.819509)\n",
|
|
" RGB{Float64}(0.0812042,0.0,0.799386)\n",
|
|
" RGB{Float64}(0.097445,0.0,0.779263) \n",
|
|
" RGB{Float64}(0.113686,0.0,0.75914) \n",
|
|
" RGB{Float64}(0.129927,0.0,0.739018) \n",
|
|
" RGB{Float64}(0.146168,0.0,0.718895) \n",
|
|
" RGB{Float64}(0.162408,0.0,0.698772) \n",
|
|
" RGB{Float64}(0.178649,0.0,0.678649) \n",
|
|
" RGB{Float64}(0.19489,0.0,0.658526) \n",
|
|
" ⋮ \n",
|
|
" RGB{Float64}(0.9,0.243137,0.0) \n",
|
|
" RGB{Float64}(0.9,0.221034,0.0) \n",
|
|
" RGB{Float64}(0.9,0.19893,0.0) \n",
|
|
" RGB{Float64}(0.9,0.176827,0.0) \n",
|
|
" RGB{Float64}(0.9,0.154724,0.0) \n",
|
|
" RGB{Float64}(0.9,0.13262,0.0) \n",
|
|
" RGB{Float64}(0.9,0.110517,0.0) \n",
|
|
" RGB{Float64}(0.9,0.0884135,0.0) \n",
|
|
" RGB{Float64}(0.9,0.0663102,0.0) \n",
|
|
" RGB{Float64}(0.9,0.0442068,0.0) \n",
|
|
" RGB{Float64}(0.9,0.0221034,0.0) \n",
|
|
" RGB{Float64}(0.9,0.0,0.0) "
|
|
]
|
|
},
|
|
"execution_count": 84,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# this is the default gradient used as the base for color picking now\n",
|
|
"rainbow = colorscheme(:darkrainbow)\n",
|
|
"RGB[getColorZ(rainbow,z) for z in linspace(0,1,100)]"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 85,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"95.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0000E6\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E60000\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#006600\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#660066\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E68C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3300A6\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#333333\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#737900\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E64600\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1A00C6\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4D0086\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4D1A4D\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1A4D1A\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#397000\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#AC8200\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E66900\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E62300\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0D00D6\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2600B6\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"19-element Array{ColorTypes.RGB{T<:Union{AbstractFloat,FixedPointNumbers.FixedPoint}},1}:\n",
|
|
" RGB{Float64}(0.0,0.0,0.9) \n",
|
|
" RGB{Float64}(0.9,0.0,0.0) \n",
|
|
" RGB{Float64}(0.0,0.401961,0.0) \n",
|
|
" RGB{Float64}(0.401961,0.0,0.401961) \n",
|
|
" RGB{Float64}(0.9,0.547059,0.0) \n",
|
|
" RGB{Float64}(0.20098,0.0,0.65098) \n",
|
|
" RGB{Float64}(0.20098,0.20098,0.20098) \n",
|
|
" RGB{Float64}(0.45,0.47451,0.0) \n",
|
|
" RGB{Float64}(0.9,0.273529,0.0) \n",
|
|
" RGB{Float64}(0.10049,0.0,0.77549) \n",
|
|
" RGB{Float64}(0.301471,0.0,0.526471) \n",
|
|
" RGB{Float64}(0.301471,0.10049,0.301471)\n",
|
|
" RGB{Float64}(0.10049,0.301471,0.10049) \n",
|
|
" RGB{Float64}(0.225,0.438235,0.0) \n",
|
|
" RGB{Float64}(0.675,0.510784,0.0) \n",
|
|
" RGB{Float64}(0.9,0.410294,0.0) \n",
|
|
" RGB{Float64}(0.9,0.136765,0.0) \n",
|
|
" RGB{Float64}(0.0502451,0.0,0.837745) \n",
|
|
" RGB{Float64}(0.150735,0.0,0.713235) "
|
|
]
|
|
},
|
|
"execution_count": 85,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# better (IMO)... first 5 colors are good, then it gets worse\n",
|
|
"# this is the current default palette\n",
|
|
"old_pick_colors(:darkrainbow,19)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 86,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"250.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00008B\" stroke=\"none\" />\n",
|
|
"<rect x=\"2.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#09008A\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#11008A\" stroke=\"none\" />\n",
|
|
"<rect x=\"7.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1A0089\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#220088\" stroke=\"none\" />\n",
|
|
"<rect x=\"12.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#2B0087\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#340087\" stroke=\"none\" />\n",
|
|
"<rect x=\"17.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3C0086\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#450085\" stroke=\"none\" />\n",
|
|
"<rect x=\"22.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4E0084\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#560084\" stroke=\"none\" />\n",
|
|
"<rect x=\"27.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#5F0083\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#670082\" stroke=\"none\" />\n",
|
|
"<rect x=\"32.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#700081\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#790081\" stroke=\"none\" />\n",
|
|
"<rect x=\"37.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#7E027E\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#710C71\" stroke=\"none\" />\n",
|
|
"<rect x=\"42.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#641664\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#572057\" stroke=\"none\" />\n",
|
|
"<rect x=\"47.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4A2A4A\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3D343D\" stroke=\"none\" />\n",
|
|
"<rect x=\"52.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#303E30\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#244824\" stroke=\"none\" />\n",
|
|
"<rect x=\"57.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#175217\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0A5C0A\" stroke=\"none\" />\n",
|
|
"<rect x=\"62.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#036500\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#0F6B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"67.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1B7000\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#277500\" stroke=\"none\" />\n",
|
|
"<rect x=\"72.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#337A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#3F8000\" stroke=\"none\" />\n",
|
|
"<rect x=\"77.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4B8500\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#578A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"82.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#639000\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#6F9500\" stroke=\"none\" />\n",
|
|
"<rect x=\"87.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#7B9A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#879F00\" stroke=\"none\" />\n",
|
|
"<rect x=\"92.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#93A500\" stroke=\"none\" />\n",
|
|
"<rect x=\"95.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#9FAA00\" stroke=\"none\" />\n",
|
|
"<rect x=\"97.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#ABAF00\" stroke=\"none\" />\n",
|
|
"<rect x=\"100.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B4B200\" stroke=\"none\" />\n",
|
|
"<rect x=\"102.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B6B200\" stroke=\"none\" />\n",
|
|
"<rect x=\"105.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B9B100\" stroke=\"none\" />\n",
|
|
"<rect x=\"107.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BBB100\" stroke=\"none\" />\n",
|
|
"<rect x=\"110.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BEB000\" stroke=\"none\" />\n",
|
|
"<rect x=\"112.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C0B000\" stroke=\"none\" />\n",
|
|
"<rect x=\"115.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C3B000\" stroke=\"none\" />\n",
|
|
"<rect x=\"117.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C6AF00\" stroke=\"none\" />\n",
|
|
"<rect x=\"120.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C8AF00\" stroke=\"none\" />\n",
|
|
"<rect x=\"122.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#CBAE00\" stroke=\"none\" />\n",
|
|
"<rect x=\"125.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#CDAE00\" stroke=\"none\" />\n",
|
|
"<rect x=\"127.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D0AD00\" stroke=\"none\" />\n",
|
|
"<rect x=\"130.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D2AD00\" stroke=\"none\" />\n",
|
|
"<rect x=\"132.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D5AC00\" stroke=\"none\" />\n",
|
|
"<rect x=\"135.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D8AC00\" stroke=\"none\" />\n",
|
|
"<rect x=\"137.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DAAC00\" stroke=\"none\" />\n",
|
|
"<rect x=\"140.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DDAB00\" stroke=\"none\" />\n",
|
|
"<rect x=\"142.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DFAB00\" stroke=\"none\" />\n",
|
|
"<rect x=\"145.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E2AA00\" stroke=\"none\" />\n",
|
|
"<rect x=\"147.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E4AA00\" stroke=\"none\" />\n",
|
|
"<rect x=\"150.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E7A900\" stroke=\"none\" />\n",
|
|
"<rect x=\"152.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#EAA900\" stroke=\"none\" />\n",
|
|
"<rect x=\"155.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#ECA800\" stroke=\"none\" />\n",
|
|
"<rect x=\"157.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#EFA800\" stroke=\"none\" />\n",
|
|
"<rect x=\"160.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F1A700\" stroke=\"none\" />\n",
|
|
"<rect x=\"162.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F4A700\" stroke=\"none\" />\n",
|
|
"<rect x=\"165.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F6A600\" stroke=\"none\" />\n",
|
|
"<rect x=\"167.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F9A600\" stroke=\"none\" />\n",
|
|
"<rect x=\"170.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FCA600\" stroke=\"none\" />\n",
|
|
"<rect x=\"172.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FEA500\" stroke=\"none\" />\n",
|
|
"<rect x=\"175.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FCA100\" stroke=\"none\" />\n",
|
|
"<rect x=\"177.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F89C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"180.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F49600\" stroke=\"none\" />\n",
|
|
"<rect x=\"182.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#F19000\" stroke=\"none\" />\n",
|
|
"<rect x=\"185.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#ED8B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"187.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E98500\" stroke=\"none\" />\n",
|
|
"<rect x=\"190.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E58000\" stroke=\"none\" />\n",
|
|
"<rect x=\"192.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#E17A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"195.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DD7500\" stroke=\"none\" />\n",
|
|
"<rect x=\"197.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D96F00\" stroke=\"none\" />\n",
|
|
"<rect x=\"200.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D56A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"202.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D16400\" stroke=\"none\" />\n",
|
|
"<rect x=\"205.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#CD5E00\" stroke=\"none\" />\n",
|
|
"<rect x=\"207.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C95900\" stroke=\"none\" />\n",
|
|
"<rect x=\"210.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C65300\" stroke=\"none\" />\n",
|
|
"<rect x=\"212.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#C24E00\" stroke=\"none\" />\n",
|
|
"<rect x=\"215.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BE4800\" stroke=\"none\" />\n",
|
|
"<rect x=\"217.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BA4300\" stroke=\"none\" />\n",
|
|
"<rect x=\"220.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B63D00\" stroke=\"none\" />\n",
|
|
"<rect x=\"222.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#B23800\" stroke=\"none\" />\n",
|
|
"<rect x=\"225.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#AE3200\" stroke=\"none\" />\n",
|
|
"<rect x=\"227.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#AA2C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"230.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#A62700\" stroke=\"none\" />\n",
|
|
"<rect x=\"232.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#A22100\" stroke=\"none\" />\n",
|
|
"<rect x=\"235.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#9F1C00\" stroke=\"none\" />\n",
|
|
"<rect x=\"237.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#9B1600\" stroke=\"none\" />\n",
|
|
"<rect x=\"240.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#971100\" stroke=\"none\" />\n",
|
|
"<rect x=\"242.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#930B00\" stroke=\"none\" />\n",
|
|
"<rect x=\"245.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#8F0600\" stroke=\"none\" />\n",
|
|
"<rect x=\"247.5mm\" y=\"0.0mm\"\n",
|
|
" width=\"2.5mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#8B0000\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"100-element Array{ColorTypes.RGB{T<:Union{AbstractFloat,FixedPointNumbers.FixedPoint}},1}:\n",
|
|
" RGB{U8}(0.0,0.0,0.545) \n",
|
|
" RGB{Float64}(0.0338021,0.0,0.542193)\n",
|
|
" RGB{Float64}(0.0676041,0.0,0.539288)\n",
|
|
" RGB{Float64}(0.101406,0.0,0.536383) \n",
|
|
" RGB{Float64}(0.135208,0.0,0.533479) \n",
|
|
" RGB{Float64}(0.16901,0.0,0.530574) \n",
|
|
" RGB{Float64}(0.202812,0.0,0.527669) \n",
|
|
" RGB{Float64}(0.236615,0.0,0.524764) \n",
|
|
" RGB{Float64}(0.270417,0.0,0.521859) \n",
|
|
" RGB{Float64}(0.304219,0.0,0.518954) \n",
|
|
" RGB{Float64}(0.338021,0.0,0.516049) \n",
|
|
" RGB{Float64}(0.371823,0.0,0.513145) \n",
|
|
" RGB{Float64}(0.405625,0.0,0.51024) \n",
|
|
" ⋮ \n",
|
|
" RGB{Float64}(0.71358,0.239651,0.0) \n",
|
|
" RGB{Float64}(0.698264,0.217865,0.0) \n",
|
|
" RGB{Float64}(0.682947,0.196078,0.0) \n",
|
|
" RGB{Float64}(0.667631,0.174292,0.0) \n",
|
|
" RGB{Float64}(0.652314,0.152505,0.0) \n",
|
|
" RGB{Float64}(0.636997,0.130719,0.0) \n",
|
|
" RGB{Float64}(0.621681,0.108932,0.0) \n",
|
|
" RGB{Float64}(0.606364,0.087146,0.0) \n",
|
|
" RGB{Float64}(0.591048,0.0653595,0.0)\n",
|
|
" RGB{Float64}(0.575731,0.043573,0.0) \n",
|
|
" RGB{Float64}(0.560415,0.0217865,0.0)\n",
|
|
" RGB{Float64}(0.545098,0.0,0.0) "
|
|
]
|
|
},
|
|
"execution_count": 86,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# what if we change the scaling of that gradient?\n",
|
|
"# see how we compressed the blues, and added darkened yellows\n",
|
|
"new_colorgradient = colorscheme([colorant\"darkblue\", colorant\"purple\", colorant\"darkgreen\", \n",
|
|
" Plots.darken(colorant\"yellow\",0.3), colorant\"orange\", colorant\"darkred\"], \n",
|
|
" [0, 0.15, 0.25, 0.4, 0.7, 1.0])\n",
|
|
"RGB[getColorZ(newgrad,z) for z in linspace(0,1,100)]"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 88,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"95.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00008B\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#8B0000\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#CCAE00\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#006400\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#EC8A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#6B0082\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#95A500\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#ECA800\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BB4500\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#350086\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#502650\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4A8500\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BCB100\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DCAB00\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FCA600\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D36700\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#A32200\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1B0089\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#500084\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"19-element Array{ColorTypes.RGB{T<:Union{AbstractFloat,FixedPointNumbers.FixedPoint}},1}:\n",
|
|
" RGB{U8}(0.0,0.0,0.545) \n",
|
|
" RGB{Float64}(0.545098,0.0,0.0) \n",
|
|
" RGB{Float64}(0.8,0.682353,0.0) \n",
|
|
" RGB{Float64}(0.0,0.392157,0.0) \n",
|
|
" RGB{Float64}(0.924183,0.539216,0.0) \n",
|
|
" RGB{Float64}(0.418301,0.0,0.50915) \n",
|
|
" RGB{Float64}(0.583333,0.648693,0.0) \n",
|
|
" RGB{Float64}(0.925,0.660294,0.0) \n",
|
|
" RGB{Float64}(0.734641,0.269608,0.0) \n",
|
|
" RGB{Float64}(0.20915,0.0,0.527124) \n",
|
|
" RGB{Float64}(0.313725,0.147059,0.313725)\n",
|
|
" RGB{Float64}(0.291667,0.520425,0.0) \n",
|
|
" RGB{Float64}(0.7375,0.693382,0.0) \n",
|
|
" RGB{Float64}(0.8625,0.671324,0.0) \n",
|
|
" RGB{Float64}(0.9875,0.649265,0.0) \n",
|
|
" RGB{Float64}(0.829412,0.404412,0.0) \n",
|
|
" RGB{Float64}(0.639869,0.134804,0.0) \n",
|
|
" RGB{Float64}(0.104575,0.0,0.536111) \n",
|
|
" RGB{Float64}(0.313725,0.0,0.518137) "
|
|
]
|
|
},
|
|
"execution_count": 88,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# the new gradient with the old color picker\n",
|
|
"old_pick_colors(newgrad, 19)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 77,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"new_pick_colors (generic function with 1 method)"
|
|
]
|
|
},
|
|
"execution_count": 77,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# a different method to choose from the gradient\n",
|
|
"function new_get_zvalues(n::Int)\n",
|
|
" #offsets = Plots.getpctrange(ceil(Int,n/4))\n",
|
|
" #offsets = linspace(0,0.25,ceil(Int,n/4)+1)[1:end-1]\n",
|
|
" offsets = Plots.getpctrange(ceil(Int,n/4)+1)/4\n",
|
|
" offsets = vcat(offsets[1], offsets[3:end])\n",
|
|
" @show offsets\n",
|
|
" zvalues = Float64[]\n",
|
|
" for offset in offsets\n",
|
|
" append!(zvalues, offset + [0.0, 0.5, 0.25, 0.75])\n",
|
|
" end\n",
|
|
" zvalues[1:n]\n",
|
|
"end\n",
|
|
"\n",
|
|
"# and a method to display the colors we will choose\n",
|
|
"function new_pick_colors(grad,n)\n",
|
|
" grad=colorscheme(grad)\n",
|
|
" RGB[getColorZ(grad,z) for z in new_get_zvalues(n)]\n",
|
|
"end"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 89,
|
|
"metadata": {
|
|
"collapsed": false
|
|
},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"offsets = [0.0,0.125,0.0625,0.1875,0.03125]"
|
|
]
|
|
},
|
|
{
|
|
"data": {
|
|
"image/svg+xml": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n",
|
|
" width=\"95.0mm\" height=\"25.0mm\"\n",
|
|
" shape-rendering=\"crispEdges\">\n",
|
|
"<rect x=\"0.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#00008B\" stroke=\"none\" />\n",
|
|
"<rect x=\"5.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#CCAE00\" stroke=\"none\" />\n",
|
|
"<rect x=\"10.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#006400\" stroke=\"none\" />\n",
|
|
"<rect x=\"15.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#EC8A00\" stroke=\"none\" />\n",
|
|
"<rect x=\"20.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#6B0082\" stroke=\"none\" />\n",
|
|
"<rect x=\"25.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#ECA800\" stroke=\"none\" />\n",
|
|
"<rect x=\"30.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#95A500\" stroke=\"none\" />\n",
|
|
"<rect x=\"35.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BB4500\" stroke=\"none\" />\n",
|
|
"<rect x=\"40.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#350086\" stroke=\"none\" />\n",
|
|
"<rect x=\"45.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#DCAB00\" stroke=\"none\" />\n",
|
|
"<rect x=\"50.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#4A8500\" stroke=\"none\" />\n",
|
|
"<rect x=\"55.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D36700\" stroke=\"none\" />\n",
|
|
"<rect x=\"60.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#502650\" stroke=\"none\" />\n",
|
|
"<rect x=\"65.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#FCA600\" stroke=\"none\" />\n",
|
|
"<rect x=\"70.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#BCB100\" stroke=\"none\" />\n",
|
|
"<rect x=\"75.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#A32200\" stroke=\"none\" />\n",
|
|
"<rect x=\"80.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#1B0089\" stroke=\"none\" />\n",
|
|
"<rect x=\"85.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#D4AD00\" stroke=\"none\" />\n",
|
|
"<rect x=\"90.0mm\" y=\"0.0mm\"\n",
|
|
" width=\"4.0mm\" height=\"25.0mm\"\n",
|
|
" fill=\"#257400\" stroke=\"none\" />\n",
|
|
"</svg>"
|
|
],
|
|
"text/plain": [
|
|
"19-element Array{ColorTypes.RGB{T<:Union{AbstractFloat,FixedPointNumbers.FixedPoint}},1}:\n",
|
|
" RGB{U8}(0.0,0.0,0.545) \n",
|
|
" RGB{Float64}(0.8,0.682353,0.0) \n",
|
|
" RGB{Float64}(0.0,0.392157,0.0) \n",
|
|
" RGB{Float64}(0.924183,0.539216,0.0) \n",
|
|
" RGB{Float64}(0.418301,0.0,0.50915) \n",
|
|
" RGB{Float64}(0.925,0.660294,0.0) \n",
|
|
" RGB{Float64}(0.583333,0.648693,0.0) \n",
|
|
" RGB{Float64}(0.734641,0.269608,0.0) \n",
|
|
" RGB{Float64}(0.20915,0.0,0.527124) \n",
|
|
" RGB{Float64}(0.8625,0.671324,0.0) \n",
|
|
" RGB{Float64}(0.291667,0.520425,0.0) \n",
|
|
" RGB{Float64}(0.829412,0.404412,0.0) \n",
|
|
" RGB{Float64}(0.313725,0.147059,0.313725)\n",
|
|
" RGB{Float64}(0.9875,0.649265,0.0) \n",
|
|
" RGB{Float64}(0.7375,0.693382,0.0) \n",
|
|
" RGB{Float64}(0.639869,0.134804,0.0) \n",
|
|
" RGB{Float64}(0.104575,0.0,0.536111) \n",
|
|
" RGB{Float64}(0.83125,0.676838,0.0) \n",
|
|
" RGB{Float64}(0.145833,0.456291,0.0) "
|
|
]
|
|
},
|
|
"execution_count": 89,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"new_pick_colors(new_colorgradient, 19)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"collapsed": true
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"plot(Plots.fakedata(100,10), l=(3, new_pick_colors(new_colorgradient, 19)))"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Julia 0.4.0-rc4",
|
|
"language": "julia",
|
|
"name": "julia-0.4"
|
|
},
|
|
"language_info": {
|
|
"file_extension": ".jl",
|
|
"mimetype": "application/julia",
|
|
"name": "julia",
|
|
"version": "0.4.0"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 0
|
|
}
|