# set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "named_palettes_4" jsdir "." # set output 'named_palettes.4.js' unset border set dummy u, v unset key set object 1 rect from screen 0, 0 to screen 1, 1 set object 1 behind clip lw 1.0 dashtype solid fc rgb "gray" fillstyle solid 1.00 border lt -1 set object 11 rect from screen 0.92, 0.3 to screen 0.95, 0.7 set object 11 back clip lw 1.0 dashtype solid fc bgnd fillstyle empty border lt -1 set object 12 rect from screen 0.2, 0.04 to screen 0.6, 0.07 set object 12 back clip lw 1.0 dashtype solid fc bgnd fillstyle empty border lt -1 set parametric set view 290, 11, 2.2, 1.2 set view equal xyz set samples 41, 41 set isosamples 100, 40 set style data lines unset xtics unset ytics unset ztics unset cbtics unset rtics set title "pm3d coloring using two named colormap palettes" set urange [ -3.14159 : 3.14159 ] noreverse nowriteback set vrange [ -3.14159 : 3.14159 ] noreverse nowriteback set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set pm3d implicit at s set pm3d depthorder set pm3d interpolate 2,2 flush begin noftriangles noborder corners2color mean set pm3d lighting primary 0.5 specular 0.2 spec2 0 set palette negative nops_allcF maxcolors 0 gamma 1.5 color model RGB set palette defined ( 0 1 1 0, 1 1 0 0 ) 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) 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] array water[256] colormap = [0x0040e0d0,0x0040e0cf,0x003fdfce,0x003fdfce,0x003fdecd,0x003fdecc,0x003eddcb,0x003eddca,0x003edcc9,0x003edcc9,0x003ddbc8,0x003ddbc7,0x003ddac6,0x003ddac5,0x003cd9c5,0x003cd9c4,0x003cd8c3,0x003cd8c2,0x003bd7c1,0x003bd7c1,0x003bd6c0,0x003bd6bf,0x003ad5be,0x003ad5bd,0x003ad4bc,0x003ad4bc,0x0039d3bb,0x0039d3ba,0x0039d2b9,0x0039d2b8,0x0038d1b8,0x0038d1b7,0x0038d0b6,0x0038d0b5,0x0037cfb4,0x0037cfb3,0x0037ceb3,0x0037ceb2,0x0036ceb1,0x0036cdb0,0x0036cdaf,0x0036ccaf,0x0035ccae,0x0035cbad,0x0035cbac,0x0035caab,0x0034caaa,0x0034c9aa,0x0034c9a9,0x0034c8a8,0x0033c8a7,0x0033c7a6,0x0033c7a6,0x0033c6a5,0x0032c6a4,0x0032c5a3,0x0032c5a2,0x0032c4a2,0x0031c4a1,0x0031c3a0,0x0031c39f,0x0031c29e,0x0030c29d,0x0030c19d,0x0030c19c,0x0030c09b,0x002fc09a,0x002fbf99,0x002fbf99,0x002fbe98,0x002ebe97,0x002ebd96,0x002ebd95,0x002ebd94,0x002dbc94,0x002dbc93,0x002dbb92,0x002dbb91,0x002cba90,0x002cba90,0x002cb98f,0x002cb98e,0x002bb88d,0x002bb88c,0x002bb78b,0x002bb78b,0x002ab68a,0x002ab689,0x002ab588,0x002ab587,0x0029b487,0x0029b486,0x0029b385,0x0029b384,0x0028b283,0x0028b283,0x0028b182,0x0028b181,0x0027b080,0x0027b07f,0x0027af7e,0x0027af7e,0x0026ae7d,0x0026ae7c,0x0026ad7b,0x0026ad7a,0x0025ac7a,0x0025ac79,0x0025ab78,0x0025ab77,0x0024ab76,0x0024aa75,0x0024aa75,0x0024a974,0x0023a973,0x0023a872,0x0023a871,0x0023a771,0x0022a770,0x0022a66f,0x0022a66e,0x0022a56d,0x0021a56c,0x0021a46c,0x0021a46b,0x0021a36a,0x0020a369,0x0020a268,0x0020a268,0x0020a167,0x001fa166,0x001fa065,0x001fa064,0x001f9f64,0x001e9f63,0x001e9e62,0x001e9e61,0x001e9d60,0x001d9d5f,0x001d9c5f,0x001d9c5e,0x001d9b5d,0x001c9b5c,0x001c9a5b,0x001c9a5b,0x001c995a,0x001b9959,0x001b9958,0x001b9857,0x001b9856,0x001a9756,0x001a9755,0x001a9654,0x001a9653,0x00199552,0x00199552,0x00199451,0x00199450,0x0018934f,0x0018934e,0x0018924d,0x0018924d,0x0017914c,0x0017914b,0x0017904a,0x00179049,0x00168f49,0x00168f48,0x00168e47,0x00168e46,0x00158d45,0x00158d45,0x00158c44,0x00158c43,0x00148b42,0x00148b41,0x00148a40,0x00148a40,0x0013893f,0x0013893e,0x0013883d,0x0013883c,0x0012873c,0x0012873b,0x0012873a,0x00128639,0x00118638,0x00118537,0x00118537,0x00118436,0x00108435,0x00108334,0x00108333,0x00108233,0x000f8232,0x000f8131,0x000f8130,0x000f802f,0x000e802e,0x000e7f2e,0x000e7f2d,0x000e7e2c,0x000d7e2b,0x000d7d2a,0x000d7d2a,0x000d7c29,0x000c7c28,0x000c7b27,0x000c7b26,0x000c7a26,0x000b7a25,0x000b7924,0x000b7923,0x000b7822,0x000a7821,0x000a7721,0x000a7720,0x000a761f,0x0009761e,0x0009761d,0x0009751d,0x0009751c,0x0008741b,0x0008741a,0x00087319,0x00087318,0x00077218,0x00077217,0x00077116,0x00077115,0x00067014,0x00067014,0x00066f13,0x00066f12,0x00056e11,0x00056e10,0x00056d0f,0x00056d0f,0x00046c0e,0x00046c0d,0x00046b0c,0x00046b0b,0x00036a0b,0x00036a0a,0x00036909,0x00036908,0x00026807,0x00026807,0x00026706,0x00026705,0x00016604,0x00016603,0x00016502,0x00016502,0x00006401,0x00006400] array flame[256] colormap = [0x00ff0000,0x00ff0100,0x00ff0200,0x00ff0300,0x00ff0400,0x00ff0500,0x00ff0600,0x00ff0700,0x00ff0800,0x00ff0900,0x00ff0a00,0x00ff0b00,0x00ff0c00,0x00ff0d00,0x00ff0e00,0x00ff0f00,0x00ff1000,0x00ff1100,0x00ff1200,0x00ff1300,0x00ff1400,0x00ff1500,0x00ff1600,0x00ff1700,0x00ff1800,0x00ff1900,0x00ff1a00,0x00ff1b00,0x00ff1c00,0x00ff1d00,0x00ff1e00,0x00ff1f00,0x00ff2000,0x00ff2100,0x00ff2200,0x00ff2300,0x00ff2400,0x00ff2500,0x00ff2600,0x00ff2700,0x00ff2800,0x00ff2900,0x00ff2a00,0x00ff2b00,0x00ff2c00,0x00ff2d00,0x00ff2e00,0x00ff2f00,0x00ff3000,0x00ff3100,0x00ff3200,0x00ff3300,0x00ff3400,0x00ff3500,0x00ff3600,0x00ff3700,0x00ff3800,0x00ff3900,0x00ff3a00,0x00ff3b00,0x00ff3c00,0x00ff3d00,0x00ff3e00,0x00ff3f00,0x00ff4000,0x00ff4100,0x00ff4200,0x00ff4300,0x00ff4400,0x00ff4500,0x00ff4600,0x00ff4700,0x00ff4800,0x00ff4900,0x00ff4a00,0x00ff4b00,0x00ff4c00,0x00ff4d00,0x00ff4e00,0x00ff4f00,0x00ff5000,0x00ff5100,0x00ff5200,0x00ff5300,0x00ff5400,0x00ff5500,0x00ff5600,0x00ff5700,0x00ff5800,0x00ff5900,0x00ff5a00,0x00ff5b00,0x00ff5c00,0x00ff5d00,0x00ff5e00,0x00ff5f00,0x00ff6000,0x00ff6100,0x00ff6200,0x00ff6300,0x00ff6400,0x00ff6500,0x00ff6600,0x00ff6700,0x00ff6800,0x00ff6900,0x00ff6a00,0x00ff6b00,0x00ff6c00,0x00ff6d00,0x00ff6e00,0x00ff6f00,0x00ff7000,0x00ff7100,0x00ff7200,0x00ff7300,0x00ff7400,0x00ff7500,0x00ff7600,0x00ff7700,0x00ff7800,0x00ff7900,0x00ff7a00,0x00ff7b00,0x00ff7c00,0x00ff7d00,0x00ff7e00,0x00ff7f00,0x00ff8000,0x00ff8100,0x00ff8200,0x00ff8300,0x00ff8400,0x00ff8500,0x00ff8600,0x00ff8700,0x00ff8800,0x00ff8900,0x00ff8a00,0x00ff8b00,0x00ff8c00,0x00ff8d00,0x00ff8e00,0x00ff8f00,0x00ff9000,0x00ff9100,0x00ff9200,0x00ff9300,0x00ff9400,0x00ff9500,0x00ff9600,0x00ff9700,0x00ff9800,0x00ff9900,0x00ff9a00,0x00ff9b00,0x00ff9c00,0x00ff9d00,0x00ff9e00,0x00ff9f00,0x00ffa000,0x00ffa100,0x00ffa200,0x00ffa300,0x00ffa400,0x00ffa500,0x00ffa600,0x00ffa700,0x00ffa800,0x00ffa900,0x00ffaa00,0x00ffab00,0x00ffac00,0x00ffad00,0x00ffae00,0x00ffaf00,0x00ffb000,0x00ffb100,0x00ffb200,0x00ffb300,0x00ffb400,0x00ffb500,0x00ffb600,0x00ffb700,0x00ffb800,0x00ffb900,0x00ffba00,0x00ffbb00,0x00ffbc00,0x00ffbd00,0x00ffbe00,0x00ffbf00,0x00ffc000,0x00ffc100,0x00ffc200,0x00ffc300,0x00ffc400,0x00ffc500,0x00ffc600,0x00ffc700,0x00ffc800,0x00ffc900,0x00ffca00,0x00ffcb00,0x00ffcc00,0x00ffcd00,0x00ffce00,0x00ffcf00,0x00ffd000,0x00ffd100,0x00ffd200,0x00ffd300,0x00ffd400,0x00ffd500,0x00ffd600,0x00ffd700,0x00ffd800,0x00ffd900,0x00ffda00,0x00ffdb00,0x00ffdc00,0x00ffdd00,0x00ffde00,0x00ffdf00,0x00ffe000,0x00ffe100,0x00ffe200,0x00ffe300,0x00ffe400,0x00ffe500,0x00ffe600,0x00ffe700,0x00ffe800,0x00ffe900,0x00ffea00,0x00ffeb00,0x00ffec00,0x00ffed00,0x00ffee00,0x00ffef00,0x00fff000,0x00fff100,0x00fff200,0x00fff300,0x00fff400,0x00fff500,0x00fff600,0x00fff700,0x00fff800,0x00fff900,0x00fffa00,0x00fffb00,0x00fffc00,0x00fffd00,0x00fffe00,0x00ffff00] set pixmap 1 colormap water # (1 x 256 pixmap) set pixmap 1 at screen 0.92, 0.3, 0 size screen 0.03, 0.4 back set pixmap 2 colormap flame # (1 x 256 pixmap) set pixmap 2 at screen 0.2, 0.04, 0 size screen 0.4, 0.03 back ## Last datafile plotted: "++" splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) fc palette flame, 1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) fc palette water