[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
9.5.10 Color schemes sample
C++ code
mglData a(256,2); a.Fill(-1,1); gr->SubPlot(2,10,0,0.2); gr->Dens(a,"kw", nan); gr->Puts(mglPoint(-1.4, -0.3), "kw", "C", -8); gr->SubPlot(2,10,1,0.2); gr->Dens(a,"wk", nan); gr->Puts(mglPoint(-1.4, -0.3), "wk", "C", -8); gr->SubPlot(2,10,2,0.2); gr->Dens(a,"kHCcw", nan); gr->Puts(mglPoint(-1.4, -0.3), "kHCcw", "C", -8); gr->SubPlot(2,10,3,0.2); gr->Dens(a,"kBbcw", nan); gr->Puts(mglPoint(-1.4, -0.3), "kBbcw", "C", -8); gr->SubPlot(2,10,4,0.2); gr->Dens(a,"kRryw", nan); gr->Puts(mglPoint(-1.4, -0.3), "kRryw", "C", -8); gr->SubPlot(2,10,5,0.2); gr->Dens(a,"kGgew", nan); gr->Puts(mglPoint(-1.4, -0.3), "kGgew", "C", -8); gr->SubPlot(2,10,6,0.2); gr->Dens(a,"BbwrR", nan); gr->Puts(mglPoint(-1.4, -0.3), "BbwrR", "C", -8); gr->SubPlot(2,10,7,0.2); gr->Dens(a,"BbwgG", nan); gr->Puts(mglPoint(-1.4, -0.3), "BbwgG", "C", -8); gr->SubPlot(2,10,8,0.2); gr->Dens(a,"GgwmM", nan); gr->Puts(mglPoint(-1.4, -0.3), "GgwmM", "C", -8); gr->SubPlot(2,10,9,0.2); gr->Dens(a,"UuwqR", nan); gr->Puts(mglPoint(-1.4, -0.3), "UuwqR", "C", -8); gr->SubPlot(2,10,10,0.2); gr->Dens(a,"QqwcC", nan); gr->Puts(mglPoint(-1.4, -0.3), "QqwcC", "C", -8); gr->SubPlot(2,10,11,0.2); gr->Dens(a,"CcwyY", nan); gr->Puts(mglPoint(-1.4, -0.3), "CcwyY", "C", -8); gr->SubPlot(2,10,12,0.2); gr->Dens(a,"bcwyr", nan); gr->Puts(mglPoint(-1.4, -0.3), "bcwyr", "C", -8); gr->SubPlot(2,10,13,0.2); gr->Dens(a,"bwr", nan); gr->Puts(mglPoint(-1.4, -0.3), "bwr", "C", -8); gr->SubPlot(2,10,14,0.2); gr->Dens(a,"BbcyrR", nan); gr->Puts(mglPoint(-1.4, -0.3), "BbcyrR", "C", -8); gr->SubPlot(2,10,15,0.2); gr->Dens(a,"UbcyqR", nan); gr->Puts(mglPoint(-1.4, -0.3), "UbcyqR", "C", -8); gr->SubPlot(2,10,16,0.2); gr->Dens(a,"BbcwyrR", nan); gr->Puts(mglPoint(-1.4, -0.3), "BbcwyrR", "C", -8); gr->SubPlot(2,10,17,0.2); gr->Dens(a,"bcyr", nan); gr->Puts(mglPoint(-1.4, -0.3), "bcyr", "C", -8); gr->SubPlot(2,10,18,0.2); gr->Dens(a,"BbcyrR|", nan); gr->Puts(mglPoint(-1.4, -0.3), "BbcyrR|", "C", -8); gr->SubPlot(2,10,19,0.2); gr->Dens(a,"bgr", nan); gr->Puts(mglPoint(-1.4, -0.3), "bgr", "C", -8);
MGL code
new a 256 2: fill a 'x' subplot 2 10 0 0.2:dens a 'kw' text -1.4 -0.3 'kw' '' -8 subplot 2 10 1 0.2:dens a 'wk' text -1.4 -0.3 'wk' '' -8 subplot 2 10 2 0.2:dens a 'kHCcw' text -1.4 -0.3 'kHCcw' '' -8 subplot 2 10 3 0.2:dens a 'kBbcw' text -1.4 -0.3 'kBbcw' '' -8 subplot 2 10 4 0.2:dens a 'kRryw' text -1.4 -0.3 'kRryw' '' -8 subplot 2 10 5 0.2:dens a 'kGgew' text -1.4 -0.3 'kGgew' '' -8 subplot 2 10 6 0.2:dens a 'BbwrR' text -1.4 -0.3 'BbwrR' '' -8 subplot 2 10 7 0.2:dens a 'BbwgG' text -1.4 -0.3 'BbwgG' '' -8 subplot 2 10 8 0.2:dens a 'GgwmM' text -1.4 -0.3 'GgwmM' '' -8 subplot 2 10 9 0.2:dens a 'UuwqR' text -1.4 -0.3 'UuwqR' '' -8 subplot 2 10 10 0.2:dens a 'QqwcC' text -1.4 -0.3 'QqwcC' '' -8 subplot 2 10 11 0.2:dens a 'CcwyY' text -1.4 -0.3 'CcwyY' '' -8 subplot 2 10 12 0.2:dens a 'bcwyr' text -1.4 -0.3 'bcwyr' '' -8 subplot 2 10 13 0.2:dens a 'bwr' text -1.4 -0.3 'bwr' '' -8 subplot 2 10 14 0.2:dens a 'BbcyrR' text -1.4 -0.3 'BbcyrR' '' -8 subplot 2 10 15 0.2:dens a 'UbcyqR' text -1.4 -0.3 'UbcyqR' '' -8 subplot 2 10 16 0.2:dens a 'BbcwyrR' text -1.4 -0.3 'BbcwyrR' '' -8 subplot 2 10 17 0.2:dens a 'bcyr' text -1.4 -0.3 'bcyr' '' -8 subplot 2 10 18 0.2:dens a 'BbcyrR|' text -1.4 -0.3 'BbcyrR|' '' -8 subplot 2 10 19 0.2:dens a 'bgr' text -1.4 -0.3 'bgr' '' -8
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |