# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'named_palettes.2.png' set samples 41, 41 set isosamples 41, 41 set style data lines set title "Version 6 offers a new keyword to access this palette" set xrange [ 0.00000 : 5.00000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ 0.00000 : 5.00000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ -1.00000 : 1.00000 ] noreverse nowriteback set rrange [ * : * ] noreverse writeback set palette defined ( 0 0 0 0.5451, 1 1 1 1 ) set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault unset colorbox blues(z) = (z <= blues_min) ? blues[1] : (z >= blues_max) ? blues[256] : blues[ floor(255. * (z-blues_min)/(blues_max-blues_min)) + 1] foo(x,y) = sin(x*y) NO_ANIMATION = 1 array blues[256] = [127,65919,131712,197504,263297,329089,394882,460674,526467,592259,658052,723844,789637,855429,921222,987014,1052807,1118599,1184392,1250184,1315977,1381769,1447562,1513354,1579147,1644939,1710732,1776524,1842317,1908109,1973902,2039694,2105487,2171279,2237072,2302864,2368657,2434449,2500242,2566034,2631827,2697619,2763412,2829204,2894997,2960789,3026582,3092374,3158167,3223959,3289752,3355544,3421337,3487129,3552922,3618714,3684507,3750299,3816092,3881884,3947677,4013469,4079262,4145054,4210847,4276639,4342432,4408224,4474017,4539809,4605602,4671394,4737187,4802979,4868772,4934564,5000357,5066149,5131942,5197734,5263527,5329319,5395112,5460904,5526697,5592489,5658282,5724074,5789867,5855659,5921452,5987244,6053037,6118829,6184622,6250414,6316207,6381999,6447792,6513584,6579377,6645169,6710962,6776754,6842547,6908339,6974132,7039924,7105717,7171509,7237302,7303094,7368887,7434679,7500472,7566264,7632057,7697849,7763642,7829434,7895227,7961019,8026812,8092604,8158397,8224189,8289982,8355774,8421567,8487359,8553152,8618944,8684737,8750529,8816322,8882114,8947907,9013699,9079492,9145284,9211077,9276869,9342662,9408454,9474247,9540039,9605832,9671624,9737417,9803209,9869002,9934794,10000587,10066379,10132172,10197964,10263757,10329549,10395342,10461134,10526927,10592719,10658512,10724304,10790097,10855889,10921682,10987474,11053267,11119059,11184852,11250644,11316437,11382229,11448022,11513814,11579607,11645399,11711192,11776984,11842777,11908569,11974362,12040154,12105947,12171739,12237532,12303324,12369117,12434909,12500702,12566494,12632287,12698079,12763872,12829664,12895457,12961249,13027042,13092834,13158627,13224419,13290212,13356004,13421797,13487589,13553382,13619174,13684967,13750759,13816552,13882344,13948137,14013929,14079722,14145514,14211307,14277099,14342892,14408684,14474477,14540269,14606062,14671854,14737647,14803439,14869232,14935024,15000817,15066609,15132402,15198194,15263987,15329779,15395572,15461364,15527157,15592949,15658742,15724534,15790327,15856119,15921912,15987704,16053497,16119289,16185082,16250874,16316667,16382459,16448252,16514044,16579837,16645629,16711422,16777215] blues_min = -1 blues_max = 1 array bluemap[256] colormap = [0x0000008b,0x0001018b,0x0002028c,0x0003038c,0x0004048d,0x0005058d,0x0006068e,0x0007078e,0x0008088f,0x0009098f,0x000a0a90,0x000b0b90,0x000c0c90,0x000d0d91,0x000e0e91,0x000f0f92,0x00101092,0x00111193,0x00121293,0x00131394,0x00141494,0x00151595,0x00161695,0x00171795,0x00181896,0x00191996,0x001a1a97,0x001b1b97,0x001c1c98,0x001d1d98,0x001e1e99,0x001f1f99,0x0020209a,0x0021219a,0x0022229a,0x0023239b,0x0024249b,0x0025259c,0x0026269c,0x0027279d,0x0028289d,0x0029299e,0x002a2a9e,0x002b2b9f,0x002c2c9f,0x002d2d9f,0x002e2ea0,0x002f2fa0,0x003030a1,0x003131a1,0x003232a2,0x003333a2,0x003434a3,0x003535a3,0x003636a4,0x003737a4,0x003838a4,0x003939a5,0x003a3aa5,0x003b3ba6,0x003c3ca6,0x003d3da7,0x003e3ea7,0x003f3fa8,0x004040a8,0x004141a9,0x004242a9,0x004343a9,0x004444aa,0x004545aa,0x004646ab,0x004747ab,0x004848ac,0x004949ac,0x004a4aad,0x004b4bad,0x004c4cae,0x004d4dae,0x004e4eae,0x004f4faf,0x005050af,0x005151b0,0x005252b0,0x005353b1,0x005454b1,0x005555b2,0x005656b2,0x005757b3,0x005858b3,0x005959b3,0x005a5ab4,0x005b5bb4,0x005c5cb5,0x005d5db5,0x005e5eb6,0x005f5fb6,0x006060b7,0x006161b7,0x006262b8,0x006363b8,0x006464b8,0x006565b9,0x006666b9,0x006767ba,0x006868ba,0x006969bb,0x006a6abb,0x006b6bbc,0x006c6cbc,0x006d6dbd,0x006e6ebd,0x006f6fbd,0x007070be,0x007171be,0x007272bf,0x007373bf,0x007474c0,0x007575c0,0x007676c1,0x007777c1,0x007878c2,0x007979c2,0x007a7ac2,0x007b7bc3,0x007c7cc3,0x007d7dc4,0x007e7ec4,0x007f7fc5,0x008080c5,0x008181c6,0x008282c6,0x008383c7,0x008484c7,0x008585c8,0x008686c8,0x008787c8,0x008888c9,0x008989c9,0x008a8aca,0x008b8bca,0x008c8ccb,0x008d8dcb,0x008e8ecc,0x008f8fcc,0x009090cd,0x009191cd,0x009292cd,0x009393ce,0x009494ce,0x009595cf,0x009696cf,0x009797d0,0x009898d0,0x009999d1,0x009a9ad1,0x009b9bd2,0x009c9cd2,0x009d9dd2,0x009e9ed3,0x009f9fd3,0x00a0a0d4,0x00a1a1d4,0x00a2a2d5,0x00a3a3d5,0x00a4a4d6,0x00a5a5d6,0x00a6a6d7,0x00a7a7d7,0x00a8a8d7,0x00a9a9d8,0x00aaaad8,0x00ababd9,0x00acacd9,0x00adadda,0x00aeaeda,0x00afafdb,0x00b0b0db,0x00b1b1dc,0x00b2b2dc,0x00b3b3dc,0x00b4b4dd,0x00b5b5dd,0x00b6b6de,0x00b7b7de,0x00b8b8df,0x00b9b9df,0x00babae0,0x00bbbbe0,0x00bcbce1,0x00bdbde1,0x00bebee1,0x00bfbfe2,0x00c0c0e2,0x00c1c1e3,0x00c2c2e3,0x00c3c3e4,0x00c4c4e4,0x00c5c5e5,0x00c6c6e5,0x00c7c7e6,0x00c8c8e6,0x00c9c9e6,0x00cacae7,0x00cbcbe7,0x00cccce8,0x00cdcde8,0x00cecee9,0x00cfcfe9,0x00d0d0ea,0x00d1d1ea,0x00d2d2eb,0x00d3d3eb,0x00d4d4eb,0x00d5d5ec,0x00d6d6ec,0x00d7d7ed,0x00d8d8ed,0x00d9d9ee,0x00dadaee,0x00dbdbef,0x00dcdcef,0x00ddddf0,0x00dedef0,0x00dfdff0,0x00e0e0f1,0x00e1e1f1,0x00e2e2f2,0x00e3e3f2,0x00e4e4f3,0x00e5e5f3,0x00e6e6f4,0x00e7e7f4,0x00e8e8f5,0x00e9e9f5,0x00eaeaf5,0x00ebebf6,0x00ececf6,0x00ededf7,0x00eeeef7,0x00efeff8,0x00f0f0f8,0x00f1f1f9,0x00f2f2f9,0x00f3f3fa,0x00f4f4fa,0x00f5f5fa,0x00f6f6fb,0x00f7f7fb,0x00f8f8fc,0x00f9f9fc,0x00fafafd,0x00fbfbfd,0x00fcfcfe,0x00fdfdfe,0x00fefeff,0x00ffffff] ## Last datafile plotted: "++" splot '++' using 1:2:(foo($1,$2)) with pm3d fc palette bluemap title "pm3d using 1:2:3 with pm3d fc palette bluemap"