function cmap = bwr()
% this was extracted from Matplotlib.

cmap = [0.0,0.0,1.0;
0.00784313725490196,0.00784313725490196,1.0;
0.01568627450980392,0.01568627450980392,1.0;
0.023529411764705882,0.023529411764705882,1.0;
0.03137254901960784,0.03137254901960784,1.0;
0.0392156862745098,0.0392156862745098,1.0;
0.047058823529411764,0.047058823529411764,1.0;
0.054901960784313725,0.054901960784313725,1.0;
0.06274509803921569,0.06274509803921569,1.0;
0.07058823529411765,0.07058823529411765,1.0;
0.0784313725490196,0.0784313725490196,1.0;
0.08627450980392157,0.08627450980392157,1.0;
0.09411764705882353,0.09411764705882353,1.0;
0.10196078431372549,0.10196078431372549,1.0;
0.10980392156862745,0.10980392156862745,1.0;
0.11764705882352941,0.11764705882352941,1.0;
0.12549019607843137,0.12549019607843137,1.0;
0.13333333333333333,0.13333333333333333,1.0;
0.1411764705882353,0.1411764705882353,1.0;
0.14901960784313725,0.14901960784313725,1.0;
0.1568627450980392,0.1568627450980392,1.0;
0.16470588235294117,0.16470588235294117,1.0;
0.17254901960784313,0.17254901960784313,1.0;
0.1803921568627451,0.1803921568627451,1.0;
0.18823529411764706,0.18823529411764706,1.0;
0.19607843137254902,0.19607843137254902,1.0;
0.20392156862745098,0.20392156862745098,1.0;
0.21176470588235294,0.21176470588235294,1.0;
0.2196078431372549,0.2196078431372549,1.0;
0.22745098039215686,0.22745098039215686,1.0;
0.23529411764705882,0.23529411764705882,1.0;
0.24313725490196078,0.24313725490196078,1.0;
0.25098039215686274,0.25098039215686274,1.0;
0.2588235294117647,0.2588235294117647,1.0;
0.26666666666666666,0.26666666666666666,1.0;
0.27450980392156865,0.27450980392156865,1.0;
0.2823529411764706,0.2823529411764706,1.0;
0.2901960784313725,0.2901960784313725,1.0;
0.2980392156862745,0.2980392156862745,1.0;
0.3058823529411765,0.3058823529411765,1.0;
0.3137254901960784,0.3137254901960784,1.0;
0.32156862745098036,0.32156862745098036,1.0;
0.32941176470588235,0.32941176470588235,1.0;
0.33725490196078434,0.33725490196078434,1.0;
0.34509803921568627,0.34509803921568627,1.0;
0.3529411764705882,0.3529411764705882,1.0;
0.3607843137254902,0.3607843137254902,1.0;
0.3686274509803922,0.3686274509803922,1.0;
0.3764705882352941,0.3764705882352941,1.0;
0.38431372549019605,0.38431372549019605,1.0;
0.39215686274509803,0.39215686274509803,1.0;
0.4,0.4,1.0;
0.40784313725490196,0.40784313725490196,1.0;
0.4156862745098039,0.4156862745098039,1.0;
0.4235294117647059,0.4235294117647059,1.0;
0.43137254901960786,0.43137254901960786,1.0;
0.4392156862745098,0.4392156862745098,1.0;
0.44705882352941173,0.44705882352941173,1.0;
0.4549019607843137,0.4549019607843137,1.0;
0.4627450980392157,0.4627450980392157,1.0;
0.47058823529411764,0.47058823529411764,1.0;
0.4784313725490196,0.4784313725490196,1.0;
0.48627450980392156,0.48627450980392156,1.0;
0.49411764705882355,0.49411764705882355,1.0;
0.5019607843137255,0.5019607843137255,1.0;
0.5098039215686274,0.5098039215686274,1.0;
0.5176470588235293,0.5176470588235293,1.0;
0.5254901960784314,0.5254901960784314,1.0;
0.5333333333333333,0.5333333333333333,1.0;
0.5411764705882353,0.5411764705882353,1.0;
0.5490196078431373,0.5490196078431373,1.0;
0.5568627450980392,0.5568627450980392,1.0;
0.5647058823529412,0.5647058823529412,1.0;
0.5725490196078431,0.5725490196078431,1.0;
0.580392156862745,0.580392156862745,1.0;
0.5882352941176471,0.5882352941176471,1.0;
0.596078431372549,0.596078431372549,1.0;
0.6039215686274509,0.6039215686274509,1.0;
0.611764705882353,0.611764705882353,1.0;
0.6196078431372549,0.6196078431372549,1.0;
0.6274509803921569,0.6274509803921569,1.0;
0.6352941176470588,0.6352941176470588,1.0;
0.6431372549019607,0.6431372549019607,1.0;
0.6509803921568628,0.6509803921568628,1.0;
0.6588235294117647,0.6588235294117647,1.0;
0.6666666666666666,0.6666666666666666,1.0;
0.6745098039215687,0.6745098039215687,1.0;
0.6823529411764706,0.6823529411764706,1.0;
0.6901960784313725,0.6901960784313725,1.0;
0.6980392156862745,0.6980392156862745,1.0;
0.7058823529411764,0.7058823529411764,1.0;
0.7137254901960784,0.7137254901960784,1.0;
0.7215686274509804,0.7215686274509804,1.0;
0.7294117647058823,0.7294117647058823,1.0;
0.7372549019607844,0.7372549019607844,1.0;
0.7450980392156863,0.7450980392156863,1.0;
0.7529411764705882,0.7529411764705882,1.0;
0.7607843137254902,0.7607843137254902,1.0;
0.7686274509803921,0.7686274509803921,1.0;
0.7764705882352941,0.7764705882352941,1.0;
0.7843137254901961,0.7843137254901961,1.0;
0.792156862745098,0.792156862745098,1.0;
0.8,0.8,1.0;
0.807843137254902,0.807843137254902,1.0;
0.8156862745098039,0.8156862745098039,1.0;
0.8235294117647058,0.8235294117647058,1.0;
0.8313725490196078,0.8313725490196078,1.0;
0.8392156862745098,0.8392156862745098,1.0;
0.8470588235294118,0.8470588235294118,1.0;
0.8549019607843137,0.8549019607843137,1.0;
0.8627450980392157,0.8627450980392157,1.0;
0.8705882352941177,0.8705882352941177,1.0;
0.8784313725490196,0.8784313725490196,1.0;
0.8862745098039215,0.8862745098039215,1.0;
0.8941176470588235,0.8941176470588235,1.0;
0.9019607843137255,0.9019607843137255,1.0;
0.9098039215686274,0.9098039215686274,1.0;
0.9176470588235294,0.9176470588235294,1.0;
0.9254901960784314,0.9254901960784314,1.0;
0.9333333333333333,0.9333333333333333,1.0;
0.9411764705882353,0.9411764705882353,1.0;
0.9490196078431372,0.9490196078431372,1.0;
0.9568627450980391,0.9568627450980391,1.0;
0.9647058823529412,0.9647058823529412,1.0;
0.9725490196078431,0.9725490196078431,1.0;
0.9803921568627451,0.9803921568627451,1.0;
0.9882352941176471,0.9882352941176471,1.0;
0.996078431372549,0.996078431372549,1.0;
1.0,0.996078431372549,0.996078431372549;
1.0,0.9882352941176471,0.9882352941176471;
1.0,0.9803921568627451,0.9803921568627451;
1.0,0.9725490196078431,0.9725490196078431;
1.0,0.9647058823529414,0.9647058823529414;
1.0,0.9568627450980393,0.9568627450980393;
1.0,0.9490196078431372,0.9490196078431372;
1.0,0.9411764705882353,0.9411764705882353;
1.0,0.9333333333333333,0.9333333333333333;
1.0,0.9254901960784314,0.9254901960784314;
1.0,0.9176470588235294,0.9176470588235294;
1.0,0.9098039215686274,0.9098039215686274;
1.0,0.9019607843137255,0.9019607843137255;
1.0,0.8941176470588236,0.8941176470588236;
1.0,0.8862745098039215,0.8862745098039215;
1.0,0.8784313725490196,0.8784313725490196;
1.0,0.8705882352941177,0.8705882352941177;
1.0,0.8627450980392157,0.8627450980392157;
1.0,0.8549019607843137,0.8549019607843137;
1.0,0.8470588235294118,0.8470588235294118;
1.0,0.83921568627451,0.83921568627451;
1.0,0.8313725490196078,0.8313725490196078;
1.0,0.8235294117647058,0.8235294117647058;
1.0,0.8156862745098039,0.8156862745098039;
1.0,0.807843137254902,0.807843137254902;
1.0,0.8,0.8;
1.0,0.792156862745098,0.792156862745098;
1.0,0.7843137254901961,0.7843137254901961;
1.0,0.7764705882352941,0.7764705882352941;
1.0,0.7686274509803921,0.7686274509803921;
1.0,0.7607843137254902,0.7607843137254902;
1.0,0.7529411764705882,0.7529411764705882;
1.0,0.7450980392156863,0.7450980392156863;
1.0,0.7372549019607844,0.7372549019607844;
1.0,0.7294117647058824,0.7294117647058824;
1.0,0.7215686274509804,0.7215686274509804;
1.0,0.7137254901960787,0.7137254901960787;
1.0,0.7058823529411764,0.7058823529411764;
1.0,0.6980392156862745,0.6980392156862745;
1.0,0.6901960784313725,0.6901960784313725;
1.0,0.6823529411764706,0.6823529411764706;
1.0,0.6745098039215687,0.6745098039215687;
1.0,0.6666666666666667,0.6666666666666667;
1.0,0.6588235294117647,0.6588235294117647;
1.0,0.6509803921568628,0.6509803921568628;
1.0,0.6431372549019607,0.6431372549019607;
1.0,0.6352941176470588,0.6352941176470588;
1.0,0.6274509803921569,0.6274509803921569;
1.0,0.6196078431372549,0.6196078431372549;
1.0,0.611764705882353,0.611764705882353;
1.0,0.603921568627451,0.603921568627451;
1.0,0.596078431372549,0.596078431372549;
1.0,0.5882352941176473,0.5882352941176473;
1.0,0.580392156862745,0.580392156862745;
1.0,0.5725490196078431,0.5725490196078431;
1.0,0.5647058823529412,0.5647058823529412;
1.0,0.5568627450980392,0.5568627450980392;
1.0,0.5490196078431373,0.5490196078431373;
1.0,0.5411764705882354,0.5411764705882354;
1.0,0.5333333333333333,0.5333333333333333;
1.0,0.5254901960784314,0.5254901960784314;
1.0,0.5176470588235293,0.5176470588235293;
1.0,0.5098039215686274,0.5098039215686274;
1.0,0.5019607843137255,0.5019607843137255;
1.0,0.49411764705882355,0.49411764705882355;
1.0,0.4862745098039216,0.4862745098039216;
1.0,0.4784313725490196,0.4784313725490196;
1.0,0.47058823529411764,0.47058823529411764;
1.0,0.46274509803921593,0.46274509803921593;
1.0,0.4549019607843138,0.4549019607843138;
1.0,0.44705882352941173,0.44705882352941173;
1.0,0.4392156862745098,0.4392156862745098;
1.0,0.43137254901960786,0.43137254901960786;
1.0,0.42352941176470593,0.42352941176470593;
1.0,0.4156862745098039,0.4156862745098039;
1.0,0.40784313725490196,0.40784313725490196;
1.0,0.4,0.4;
1.0,0.3921568627450981,0.3921568627450981;
1.0,0.38431372549019605,0.38431372549019605;
1.0,0.3764705882352941,0.3764705882352941;
1.0,0.3686274509803922,0.3686274509803922;
1.0,0.36078431372549025,0.36078431372549025;
1.0,0.3529411764705882,0.3529411764705882;
1.0,0.34509803921568627,0.34509803921568627;
1.0,0.33725490196078456,0.33725490196078456;
1.0,0.3294117647058824,0.3294117647058824;
1.0,0.32156862745098036,0.32156862745098036;
1.0,0.3137254901960784,0.3137254901960784;
1.0,0.3058823529411765,0.3058823529411765;
1.0,0.29803921568627456,0.29803921568627456;
1.0,0.2901960784313725,0.2901960784313725;
1.0,0.2823529411764706,0.2823529411764706;
1.0,0.27450980392156865,0.27450980392156865;
1.0,0.2666666666666667,0.2666666666666667;
1.0,0.2588235294117647,0.2588235294117647;
1.0,0.25098039215686274,0.25098039215686274;
1.0,0.2431372549019608,0.2431372549019608;
1.0,0.23529411764705888,0.23529411764705888;
1.0,0.22745098039215683,0.22745098039215683;
1.0,0.2196078431372549,0.2196078431372549;
1.0,0.2117647058823532,0.2117647058823532;
1.0,0.20392156862745103,0.20392156862745103;
1.0,0.196078431372549,0.196078431372549;
1.0,0.18823529411764706,0.18823529411764706;
1.0,0.18039215686274512,0.18039215686274512;
1.0,0.1725490196078432,0.1725490196078432;
1.0,0.16470588235294115,0.16470588235294115;
1.0,0.1568627450980392,0.1568627450980392;
1.0,0.14901960784313728,0.14901960784313728;
1.0,0.14117647058823535,0.14117647058823535;
1.0,0.1333333333333333,0.1333333333333333;
1.0,0.12549019607843137,0.12549019607843137;
1.0,0.11764705882352944,0.11764705882352944;
1.0,0.1098039215686275,0.1098039215686275;
1.0,0.10196078431372546,0.10196078431372546;
1.0,0.09411764705882353,0.09411764705882353;
1.0,0.08627450980392182,0.08627450980392182;
1.0,0.07843137254901966,0.07843137254901966;
1.0,0.07058823529411762,0.07058823529411762;
1.0,0.06274509803921569,0.06274509803921569;
1.0,0.05490196078431375,0.05490196078431375;
1.0,0.04705882352941182,0.04705882352941182;
1.0,0.039215686274509776,0.039215686274509776;
1.0,0.03137254901960784,0.03137254901960784;
1.0,0.02352941176470591,0.02352941176470591;
1.0,0.015686274509803977,0.015686274509803977;
1.0,0.007843137254901933,0.007843137254901933;
1.0,0.0,0.0;
];

end

% 1. This LICENSE AGREEMENT is between the Matplotlib Development Team ("MDT"), and the Individual or Organization ("Licensee") accessing and otherwise using matplotlib software in source or binary form and its associated documentation.
% 2. Subject to the terms and conditions of this License Agreement, MDT hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use matplotlib alone or in any derivative version, provided, however, that MDT's License Agreement and MDT's notice of copyright, i.e., "Copyright (c) 2012-2013 Matplotlib Development Team; All Rights Reserved" are retained in matplotlib alone or in any derivative version prepared by Licensee.
% 3. In the event Licensee prepares a derivative work that is based on or incorporates matplotlib or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to matplotlib.
% 4. MDT is making matplotlib available to Licensee on an "AS IS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
% 5. MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
% 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
% 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between MDT and Licensee. This License Agreement does not grant permission to use MDT trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
% 8. By copying, installing or otherwise using matplotlib , Licensee agrees to be bound by the terms and conditions of this License Agreement.