Lionel Roubeyrie wrote:
Hi all,
Is it possible to import colormap file from GMT (.cpt) to basemap? If yes how
can we do that?
Thanks
Lionel: I had included the GMT colormaps in matplotlib, but had to take
them out because of licensing issues. If you want to put them back in,
put the attached file in your matplotlib install directory
<sys.prefix>/lib/python2.4/site-packages/matplotlib. Then use a text
editor to add the following lines to _cm.py (in the same directory)
from gmt_cm import addcmaps
addcmaps(datad)
right above the line
# reverse all the colormaps.
This will give you the colormaps
GMT_gebco
GMT_globe
GMT_haxby
GMT_no_green
GMT_ocean
GMT_polar
GMT_red2green
GMT_relief
GMT_seis
GMT_wysiwyg
and the corresponding reversed colormaps (with '_r' appended to the name).
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
from matplotlib import rcParams, colors
LUTSIZE = rcParams['image.lut']
_GMT_gebco_data = {'blue': [(0.0, 1.0, 1.0), (0.14705882966518402, 1.0, 1.0), (0.29411765933036804, 1.0, 1.0), (0.44117647409439087, 0.90196079015731812, 0.90196079015731812), (0.58823531866073608, 0.84313726425170898, 0.84313726425170898), (0.73529410362243652, 0.84313726425170898, 0.84313726425170898), (0.88235294818878174, 0.84313726425170898, 0.84313726425170898), (0.95588237047195435, 0.94117647409439087, 0.94117647409439087), (1.0, 1.0, 1.0)], 'green': [(0.0, 0.94117647409439087, 0.94117647409439087), (0.14705882966518402, 1.0, 1.0), (0.29411765933036804, 1.0, 1.0), (0.44117647409439087, 1.0, 1.0), (0.58823531866073608, 1.0, 1.0), (0.73529410362243652, 1.0, 1.0), (0.88235294818878174, 1.0, 1.0), (0.95588237047195435, 1.0, 1.0), (1.0, 1.0, 1.0)], 'red': [(0.0, 0.0, 0.0), (0.14705882966518402, 0.13725490868091583, 0.13725490868091583), (0.29411765933036804, 0.35294118523597717, 0.35294118523597717), (0.44117647409439087, 0.54901963472366333, 0.54901963472366333), (0.58823531866073608, 0.64705884456634521, 0.64705884456634521), (0.73529410362243652, 0.76470589637756348, 0.76470589637756348), (0.88235294818878174, 0.82352942228317261, 0.82352942228317261), (0.95588237047195435, 0.90196079015731812, 0.90196079015731812), (1.0, 0.92156863212585449, 0.92156863212585449)]}
_GMT_globe_data = {'blue': [(0.0, 1.0, 1.0), (0.025641025975346565, 1.0, 1.0), (0.05128205195069313, 1.0, 1.0), (0.076923079788684845, 1.0, 1.0), (0.10256410390138626, 1.0, 1.0), (0.12820513546466827, 1.0, 1.0), (0.15384615957736969, 1.0, 1.0), (0.17948718369007111, 1.0, 1.0), (0.20512820780277252, 1.0, 1.0), (0.23076923191547394, 1.0, 1.0), (0.25641027092933655, 1.0, 1.0), (0.28205129504203796, 1.0, 1.0), (0.30769231915473938, 1.0, 1.0), (0.3333333432674408, 1.0, 1.0), (0.35897436738014221, 1.0, 1.0), (0.38461539149284363, 1.0, 1.0), (0.41025641560554504, 1.0, 1.0), (0.43589743971824646, 1.0, 1.0), (0.46153846383094788, 1.0, 1.0), (0.48717948794364929, 1.0, 1.0), (0.50256413221359253, 1.0, 1.0), (0.5128205418586731, 0.0, 0.0), (0.51794874668121338, 0.40000000596046448, 0.40000000596046448), (0.52307695150375366, 0.57254904508590698, 0.57254904508590698), (0.53846156597137451, 0.72549021244049072, 0.72549021244049072), (0.56410259008407593, 0.5372549295425415, 0.5372549295425415), (0.58974361419677734, 0.34509804844856262, 0.34509804844856262), (0.61538463830947876, 0.15294118225574493, 0.15294118225574493), (0.64102566242218018, 0.12156862765550613, 0.12156862765550613), (0.66666668653488159, 0.098039217293262482, 0.098039217293262482), (0.69230771064758301, 0.074509806931018829, 0.074509806931018829), (0.71794873476028442, 0.050980392843484879, 0.050980392843484879), (0.74358975887298584, 0.027450980618596077, 0.027450980618596077), (0.76923078298568726, 0.0, 0.0), (0.79487180709838867, 0.3490196168422699, 0.3490196168422699), (0.82051283121109009, 0.46274510025978088, 0.46274510025978088), (0.8461538553237915, 0.57647061347961426, 0.57647061347961426), (0.87179487943649292, 0.69019609689712524, 0.69019609689712524), (0.89743590354919434, 0.80000001192092896, 0.80000001192092896), (0.92307692766189575, 0.89803922176361084, 0.89803922176361084), (0.94871795177459717, 0.94901961088180542, 0.94901961088180542), (0.97435897588729858, 1.0, 1.0), (1.0, 1.0, 1.0)], 'green': [(0.0, 0.0, 0.0), (0.025641025975346565, 0.0, 0.0), (0.05128205195069313, 0.0, 0.0), (0.076923079788684845, 0.066666670143604279, 0.066666670143604279), (0.10256410390138626, 0.13333334028720856, 0.13333334028720856), (0.12820513546466827, 0.20000000298023224, 0.20000000298023224), (0.15384615957736969, 0.26666668057441711, 0.26666668057441711), (0.17948718369007111, 0.3333333432674408, 0.3333333432674408), (0.20512820780277252, 0.40000000596046448, 0.40000000596046448), (0.23076923191547394, 0.46666666865348816, 0.46666666865348816), (0.25641027092933655, 0.53333336114883423, 0.53333336114883423), (0.28205129504203796, 0.60000002384185791, 0.60000002384185791), (0.30769231915473938, 0.64313727617263794, 0.64313727617263794), (0.3333333432674408, 0.68627452850341797, 0.68627452850341797), (0.35897436738014221, 0.729411780834198, 0.729411780834198), (0.38461539149284363, 0.77254903316497803, 0.77254903316497803), (0.41025641560554504, 0.81568628549575806, 0.81568628549575806), (0.43589743971824646, 0.85882353782653809, 0.85882353782653809), (0.46153846383094788, 0.90196079015731812, 0.90196079015731812), (0.48717948794364929, 0.94509804248809814, 0.94509804248809814), (0.50256413221359253, 0.98823529481887817, 0.98823529481887817), (0.5128205418586731, 0.40000000596046448, 0.40000000596046448), (0.51794874668121338, 0.80000001192092896, 0.80000001192092896), (0.52307695150375366, 0.89411765336990356, 0.89411765336990356), (0.53846156597137451, 0.86274510622024536, 0.86274510622024536), (0.56410259008407593, 0.7921568751335144, 0.7921568751335144), (0.58974361419677734, 0.72156864404678345, 0.72156864404678345), (0.61538463830947876, 0.65098041296005249, 0.65098041296005249), (0.64102566242218018, 0.60392159223556519, 0.60392159223556519), (0.66666668653488159, 0.56470590829849243, 0.56470590829849243), (0.69230771064758301, 0.52549022436141968, 0.52549022436141968), (0.71794873476028442, 0.48235294222831726, 0.48235294222831726), (0.74358975887298584, 0.44313725829124451, 0.44313725829124451), (0.76923078298568726, 0.40000000596046448, 0.40000000596046448), (0.79487180709838867, 0.3490196168422699, 0.3490196168422699), (0.82051283121109009, 0.46274510025978088, 0.46274510025978088), (0.8461538553237915, 0.57647061347961426, 0.57647061347961426), (0.87179487943649292, 0.69019609689712524, 0.69019609689712524), (0.89743590354919434, 0.80000001192092896, 0.80000001192092896), (0.92307692766189575, 0.89803922176361084, 0.89803922176361084), (0.94871795177459717, 0.94901961088180542, 0.94901961088180542), (0.97435897588729858, 1.0, 1.0), (1.0, 1.0, 1.0)], 'red': [(0.0, 0.60000002384185791, 0.60000002384185791), (0.025641025975346565, 0.60000002384185791, 0.60000002384185791), (0.05128205195069313, 0.60000002384185791, 0.60000002384185791), (0.076923079788684845, 0.53333336114883423, 0.53333336114883423), (0.10256410390138626, 0.46666666865348816, 0.46666666865348816), (0.12820513546466827, 0.40000000596046448, 0.40000000596046448), (0.15384615957736969, 0.3333333432674408, 0.3333333432674408), (0.17948718369007111, 0.26666668057441711, 0.26666668057441711), (0.20512820780277252, 0.20000000298023224, 0.20000000298023224), (0.23076923191547394, 0.13333334028720856, 0.13333334028720856), (0.25641027092933655, 0.066666670143604279, 0.066666670143604279), (0.28205129504203796, 0.0, 0.0), (0.30769231915473938, 0.10588235408067703, 0.10588235408067703), (0.3333333432674408, 0.21176470816135406, 0.21176470816135406), (0.35897436738014221, 0.31764706969261169, 0.31764706969261169), (0.38461539149284363, 0.42352941632270813, 0.42352941632270813), (0.41025641560554504, 0.52549022436141968, 0.52549022436141968), (0.43589743971824646, 0.63137257099151611, 0.63137257099151611), (0.46153846383094788, 0.73725491762161255, 0.73725491762161255), (0.48717948794364929, 0.84313726425170898, 0.84313726425170898), (0.50256413221359253, 0.94509804248809814, 0.94509804248809814), (0.5128205418586731, 0.20000000298023224, 0.20000000298023224), (0.51794874668121338, 0.20000000298023224, 0.20000000298023224), (0.52307695150375366, 0.73333334922790527, 0.73333334922790527), (0.53846156597137451, 1.0, 1.0), (0.56410259008407593, 0.9529411792755127, 0.9529411792755127), (0.58974361419677734, 0.90196079015731812, 0.90196079015731812), (0.61538463830947876, 0.85098040103912354, 0.85098040103912354), (0.64102566242218018, 0.65882354974746704, 0.65882354974746704), (0.66666668653488159, 0.64313727617263794, 0.64313727617263794), (0.69230771064758301, 0.63529413938522339, 0.63529413938522339), (0.71794873476028442, 0.62352943420410156, 0.62352943420410156), (0.74358975887298584, 0.61176472902297974, 0.61176472902297974), (0.76923078298568726, 0.60000002384185791, 0.60000002384185791), (0.79487180709838867, 0.63529413938522339, 0.63529413938522339), (0.82051283121109009, 0.69803923368453979, 0.69803923368453979), (0.8461538553237915, 0.71764707565307617, 0.71764707565307617), (0.87179487943649292, 0.7607843279838562, 0.7607843279838562), (0.89743590354919434, 0.80000001192092896, 0.80000001192092896), (0.92307692766189575, 0.89803922176361084, 0.89803922176361084), (0.94871795177459717, 0.94901961088180542, 0.94901961088180542), (0.97435897588729858, 1.0, 1.0), (1.0, 1.0, 1.0)]}
_GMT_haxby_data = {'blue': [(0.0, 0.47450980544090271, 0.47450980544090271), (0.032258063554763794, 0.58823531866073608, 0.58823531866073608), (0.064516127109527588, 0.68627452850341797, 0.68627452850341797), (0.096774190664291382, 0.78431373834609985, 0.78431373834609985), (0.12903225421905518, 0.83137255907058716, 0.83137255907058716), (0.16129031777381897, 0.87843137979507446, 0.87843137979507446), (0.19354838132858276, 0.94117647409439087, 0.94117647409439087), (0.22580644488334656, 0.97254902124404907, 0.97254902124404907), (0.25806450843811035, 1.0, 1.0), (0.29032257199287415, 1.0, 1.0), (0.32258063554763794, 1.0, 1.0), (0.35483869910240173, 0.94117647409439087, 0.94117647409439087), (0.38709676265716553, 0.88235294818878174, 0.88235294818878174), (0.41935482621192932, 0.78431373834609985, 0.78431373834609985), (0.45161288976669312, 0.68235296010971069, 0.68235296010971069), (0.48387095332145691, 0.65882354974746704, 0.65882354974746704), (0.5161290168762207, 0.63529413938522339, 0.63529413938522339), (0.54838711023330688, 0.55294120311737061, 0.55294120311737061), (0.58064514398574829, 0.47450980544090271, 0.47450980544090271), (0.61290323734283447, 0.40784314274787903, 0.40784314274787903), (0.64516127109527588, 0.34117648005485535, 0.34117648005485535), (0.67741936445236206, 0.27058824896812439, 0.27058824896812439), (0.70967739820480347, 0.29411765933036804, 0.29411765933036804), (0.74193549156188965, 0.30588236451148987, 0.30588236451148987), (0.77419352531433105, 0.35294118523597717, 0.35294118523597717), (0.80645161867141724, 0.48627451062202454, 0.48627451062202454), (0.83870965242385864, 0.61960786581039429, 0.61960786581039429), (0.87096774578094482, 0.68235296010971069, 0.68235296010971069), (0.90322577953338623, 0.76862746477127075, 0.76862746477127075), (0.93548387289047241, 0.84313726425170898, 0.84313726425170898), (0.96774190664291382, 0.92156863212585449, 0.92156863212585449), (1.0, 1.0, 1.0)], 'green': [(0.0, 0.0, 0.0), (0.032258063554763794, 0.0, 0.0), (0.064516127109527588, 0.019607843831181526, 0.019607843831181526), (0.096774190664291382, 0.039215687662363052, 0.039215687662363052), (0.12903225421905518, 0.098039217293262482, 0.098039217293262482), (0.16129031777381897, 0.15686275064945221, 0.15686275064945221), (0.19354838132858276, 0.40000000596046448, 0.40000000596046448), (0.22580644488334656, 0.5058823823928833, 0.5058823823928833), (0.25806450843811035, 0.68627452850341797, 0.68627452850341797), (0.29032257199287415, 0.7450980544090271, 0.7450980544090271), (0.32258063554763794, 0.7921568751335144, 0.7921568751335144), (0.35483869910240173, 0.88235294818878174, 0.88235294818878174), (0.38709676265716553, 0.92156863212585449, 0.92156863212585449), (0.41935482621192932, 0.92156863212585449, 0.92156863212585449), (0.45161288976669312, 0.92549020051956177, 0.92549020051956177), (0.48387095332145691, 0.96078431606292725, 0.96078431606292725), (0.5161290168762207, 1.0, 1.0), (0.54838711023330688, 0.96078431606292725, 0.96078431606292725), (0.58064514398574829, 0.92549020051956177, 0.92549020051956177), (0.61290323734283447, 0.84313726425170898, 0.84313726425170898), (0.64516127109527588, 0.74117648601531982, 0.74117648601531982), (0.67741936445236206, 0.62745100259780884, 0.62745100259780884), (0.70967739820480347, 0.45882353186607361, 0.45882353186607361), (0.74193549156188965, 0.31372550129890442, 0.31372550129890442), (0.77419352531433105, 0.35294118523597717, 0.35294118523597717), (0.80645161867141724, 0.48627451062202454, 0.48627451062202454), (0.83870965242385864, 0.61960786581039429, 0.61960786581039429), (0.87096774578094482, 0.70196080207824707, 0.70196080207824707), (0.90322577953338623, 0.76862746477127075, 0.76862746477127075), (0.93548387289047241, 0.84313726425170898, 0.84313726425170898), (0.96774190664291382, 0.92156863212585449, 0.92156863212585449), (1.0, 1.0, 1.0)], 'red': [(0.0, 0.039215687662363052, 0.039215687662363052), (0.032258063554763794, 0.15686275064945221, 0.15686275064945221), (0.064516127109527588, 0.078431375324726105, 0.078431375324726105), (0.096774190664291382, 0.0, 0.0), (0.12903225421905518, 0.0, 0.0), (0.16129031777381897, 0.0, 0.0), (0.19354838132858276, 0.10196078568696976, 0.10196078568696976), (0.22580644488334656, 0.050980392843484879, 0.050980392843484879), (0.25806450843811035, 0.098039217293262482, 0.098039217293262482), (0.29032257199287415, 0.19607843458652496, 0.19607843458652496), (0.32258063554763794, 0.26666668057441711, 0.26666668057441711), (0.35483869910240173, 0.3803921639919281, 0.3803921639919281), (0.38709676265716553, 0.41568627953529358, 0.41568627953529358), (0.41935482621192932, 0.48627451062202454, 0.48627451062202454), (0.45161288976669312, 0.54117649793624878, 0.54117649793624878), (0.48387095332145691, 0.67450982332229614, 0.67450982332229614), (0.5161290168762207, 0.80392158031463623, 0.80392158031463623), (0.54838711023330688, 0.87450981140136719, 0.87450981140136719), (0.58064514398574829, 0.94117647409439087, 0.94117647409439087), (0.61290323734283447, 0.9686274528503418, 0.9686274528503418), (0.64516127109527588, 1.0, 1.0), (0.67741936445236206, 1.0, 1.0), (0.70967739820480347, 0.95686274766921997, 0.95686274766921997), (0.74193549156188965, 0.93333333730697632, 0.93333333730697632), (0.77419352531433105, 1.0, 1.0), (0.80645161867141724, 1.0, 1.0), (0.83870965242385864, 1.0, 1.0), (0.87096774578094482, 0.96078431606292725, 0.96078431606292725), (0.90322577953338623, 1.0, 1.0), (0.93548387289047241, 1.0, 1.0), (0.96774190664291382, 1.0, 1.0), (1.0, 1.0, 1.0)]}
_GMT_no_green_data = {'blue': [(0.0, 1.0, 1.0), (0.066666670143604279, 1.0, 1.0), (0.13333334028720856, 1.0, 1.0), (0.20000000298023224, 1.0, 1.0), (0.26666668057441711, 1.0, 1.0), (0.3333333432674408, 1.0, 1.0), (0.40000000596046448, 1.0, 1.0), (0.46666666865348816, 1.0, 1.0), (0.53333336114883423, 0.32941177487373352, 0.32941177487373352), (0.60000002384185791, 0.0, 0.0), (0.66666668653488159, 0.0, 0.0), (0.73333334922790527, 0.0, 0.0), (0.80000001192092896, 0.0, 0.0), (0.86666667461395264, 0.0, 0.0), (0.93333333730697632, 0.0, 0.0), (1.0, 0.0, 0.0)], 'green': [(0.0, 0.37647059559822083, 0.37647059559822083), (0.066666670143604279, 0.62352943420410156, 0.62352943420410156), (0.13333334028720856, 0.74901962280273438, 0.74901962280273438), (0.20000000298023224, 0.81176471710205078, 0.81176471710205078), (0.26666668057441711, 1.0, 1.0), (0.3333333432674408, 1.0, 1.0), (0.40000000596046448, 1.0, 1.0), (0.46666666865348816, 1.0, 1.0), (0.53333336114883423, 1.0, 1.0), (0.60000002384185791, 0.94117647409439087, 0.94117647409439087), (0.66666668653488159, 0.74901962280273438, 0.74901962280273438), (0.73333334922790527, 0.65882354974746704, 0.65882354974746704), (0.80000001192092896, 0.54117649793624878, 0.54117649793624878), (0.86666667461395264, 0.43921568989753723, 0.43921568989753723), (0.93333333730697632, 0.30196079611778259, 0.30196079611778259), (1.0, 0.0, 0.0)], 'red': [(0.0, 0.12549020349979401, 0.12549020349979401), (0.066666670143604279, 0.12549020349979401, 0.12549020349979401), (0.13333334028720856, 0.12549020349979401, 0.12549020349979401), (0.20000000298023224, 0.0, 0.0), (0.26666668057441711, 0.16470588743686676, 0.16470588743686676), (0.3333333432674408, 0.3333333432674408, 0.3333333432674408), (0.40000000596046448, 0.49803921580314636, 0.49803921580314636), (0.46666666865348816, 0.66666668653488159, 0.66666668653488159), (0.53333336114883423, 1.0, 1.0), (0.60000002384185791, 1.0, 1.0), (0.66666668653488159, 1.0, 1.0), (0.73333334922790527, 1.0, 1.0), (0.80000001192092896, 1.0, 1.0), (0.86666667461395264, 1.0, 1.0), (0.93333333730697632, 1.0, 1.0), (1.0, 1.0, 1.0)]}
_GMT_ocean_data = {'blue': [(0.0, 0.0, 0.0), (0.1428571492433548, 0.098039217293262482, 0.098039217293262482), (0.28571429848670959, 0.19607843458652496, 0.19607843458652496), (0.4285714328289032, 0.49019607901573181, 0.49019607901573181), (0.57142859697341919, 0.78431373834609985, 0.78431373834609985), (0.71428573131561279, 0.72156864404678345, 0.72156864404678345), (0.8571428656578064, 0.65882354974746704, 0.65882354974746704), (1.0, 0.82745099067687988, 0.82745099067687988)], 'green': [(0.0, 0.0, 0.0), (0.1428571492433548, 0.019607843831181526, 0.019607843831181526), (0.28571429848670959, 0.039215687662363052, 0.039215687662363052), (0.4285714328289032, 0.31372550129890442, 0.31372550129890442), (0.57142859697341919, 0.58823531866073608, 0.58823531866073608), (0.71428573131561279, 0.77254903316497803, 0.77254903316497803), (0.8571428656578064, 0.96078431606292725, 0.96078431606292725), (1.0, 0.98039215803146362, 0.98039215803146362)], 'red': [(0.0, 0.0, 0.0), (0.1428571492433548, 0.0, 0.0), (0.28571429848670959, 0.0, 0.0), (0.4285714328289032, 0.0, 0.0), (0.57142859697341919, 0.0, 0.0), (0.71428573131561279, 0.33725491166114807, 0.33725491166114807), (0.8571428656578064, 0.67450982332229614, 0.67450982332229614), (1.0, 0.82745099067687988, 0.82745099067687988)]}
_GMT_polar_data = {'blue': [(0.0, 1.0, 1.0), (0.5, 1.0, 1.0), (1.0, 0.0, 0.0)], 'green': [(0.0, 0.0, 0.0), (0.5, 1.0, 1.0), (1.0, 0.0, 0.0)], 'red': [(0.0, 0.0, 0.0), (0.5, 1.0, 1.0), (1.0, 1.0, 1.0)]}
_GMT_red2green_data = {'blue': [(0.0, 0.0, 0.0), (0.5, 1.0, 1.0), (1.0, 0.0, 0.0)], 'green': [(0.0, 0.0, 0.0), (0.5, 1.0, 1.0), (1.0, 1.0, 1.0)], 'red': [(0.0, 1.0, 1.0), (0.5, 1.0, 1.0), (1.0, 0.0, 0.0)]}
_GMT_relief_data = {'blue': [(0.0, 0.0, 0.0), (0.066666670143604279, 0.098039217293262482, 0.098039217293262482), (0.13333334028720856, 0.19607843458652496, 0.19607843458652496), (0.20000000298023224, 0.49019607901573181, 0.49019607901573181), (0.26666668057441711, 0.78431373834609985, 0.78431373834609985), (0.3333333432674408, 0.72156864404678345, 0.72156864404678345), (0.40000000596046448, 0.65882354974746704, 0.65882354974746704), (0.46666666865348816, 0.82745099067687988, 0.82745099067687988), (0.53333336114883423, 0.19607843458652496, 0.19607843458652496), (0.56666666269302368, 0.19607843458652496, 0.19607843458652496), (0.60000002384185791, 0.23529411852359772, 0.23529411852359772), (0.66666668653488159, 0.31372550129890442, 0.31372550129890442), (0.73333334922790527, 0.39215686917304993, 0.39215686917304993), (0.80000001192092896, 0.49411764740943909, 0.49411764740943909), (0.86666667461395264, 0.59607845544815063, 0.59607845544815063), (0.93333333730697632, 0.69411766529083252, 0.69411766529083252), (1.0, 0.84705883264541626, 0.84705883264541626)], 'green': [(0.0, 0.0, 0.0), (0.066666670143604279, 0.019607843831181526, 0.019607843831181526), (0.13333334028720856, 0.039215687662363052, 0.039215687662363052), (0.20000000298023224, 0.31372550129890442, 0.31372550129890442), (0.26666668057441711, 0.58823531866073608, 0.58823531866073608), (0.3333333432674408, 0.77254903316497803, 0.77254903316497803), (0.40000000596046448, 0.96078431606292725, 0.96078431606292725), (0.46666666865348816, 0.98039215803146362, 0.98039215803146362), (0.53333336114883423, 0.47058823704719543, 0.47058823704719543), (0.56666666269302368, 0.39215686917304993, 0.39215686917304993), (0.60000002384185791, 0.49411764740943909, 0.49411764740943909), (0.66666668653488159, 0.69803923368453979, 0.69803923368453979), (0.73333334922790527, 0.90196079015731812, 0.90196079015731812), (0.80000001192092896, 0.91764706373214722, 0.91764706373214722), (0.86666667461395264, 0.93333333730697632, 0.93333333730697632), (0.93333333730697632, 0.9529411792755127, 0.9529411792755127), (1.0, 0.97647058963775635, 0.97647058963775635)], 'red': [(0.0, 0.0, 0.0), (0.066666670143604279, 0.0, 0.0), (0.13333334028720856, 0.0, 0.0), (0.20000000298023224, 0.0, 0.0), (0.26666668057441711, 0.0, 0.0), (0.3333333432674408, 0.33725491166114807, 0.33725491166114807), (0.40000000596046448, 0.67450982332229614, 0.67450982332229614), (0.46666666865348816, 0.82745099067687988, 0.82745099067687988), (0.53333336114883423, 0.27450981736183167, 0.27450981736183167), (0.56666666269302368, 0.47058823704719543, 0.47058823704719543), (0.60000002384185791, 0.57254904508590698, 0.57254904508590698), (0.66666668653488159, 0.7764706015586853, 0.7764706015586853), (0.73333334922790527, 0.98039215803146362, 0.98039215803146362), (0.80000001192092896, 0.98039215803146362, 0.98039215803146362), (0.86666667461395264, 0.98823529481887817, 0.98823529481887817), (0.93333333730697632, 0.98823529481887817, 0.98823529481887817), (1.0, 0.99215686321258545, 0.99215686321258545)]}
_GMT_seis_data = {'blue': [(0.0, 0.0, 0.0), (0.1254923939704895, 0.0, 0.0), (0.25042206048965454, 0.0, 0.0), (0.37535172700881958, 0.0, 0.0), (0.50028139352798462, 0.0, 0.0), (0.62521106004714966, 0.0, 0.0), (0.75014066696166992, 0.11764705926179886, 0.11764705926179886), (0.87507039308547974, 0.43137255311012268, 0.43137255311012268), (1.0, 1.0, 1.0)], 'green': [(0.0, 0.0, 0.0), (0.1254923939704895, 0.0, 0.0), (0.25042206048965454, 0.3333333432674408, 0.3333333432674408), (0.37535172700881958, 0.66666668653488159, 0.66666668653488159), (0.50028139352798462, 1.0, 1.0), (0.62521106004714966, 1.0, 1.0), (0.75014066696166992, 1.0, 1.0), (0.87507039308547974, 0.94117647409439087, 0.94117647409439087), (1.0, 0.31372550129890442, 0.31372550129890442)], 'red': [(0.0, 0.66666668653488159, 0.66666668653488159), (0.1254923939704895, 1.0, 1.0), (0.25042206048965454, 1.0, 1.0), (0.37535172700881958, 1.0, 1.0), (0.50028139352798462, 1.0, 1.0), (0.62521106004714966, 1.0, 1.0), (0.75014066696166992, 0.35294118523597717, 0.35294118523597717), (0.87507039308547974, 0.0, 0.0), (1.0, 0.0, 0.0)]}
_GMT_wysiwyg_data = {'blue': [(0.0, 0.25098040699958801, 0.25098040699958801), (0.052631579339504242, 0.75294119119644165, 0.75294119119644165), (0.10526315867900848, 1.0, 1.0), (0.15789473056793213, 1.0, 1.0), (0.21052631735801697, 1.0, 1.0), (0.26315790414810181, 1.0, 1.0), (0.31578946113586426, 1.0, 1.0), (0.3684210479259491, 1.0, 1.0), (0.42105263471603394, 0.75294119119644165, 0.75294119119644165), (0.47368422150611877, 0.25098040699958801, 0.25098040699958801), (0.52631580829620361, 0.25098040699958801, 0.25098040699958801), (0.57894736528396606, 0.25098040699958801, 0.25098040699958801), (0.63157892227172852, 0.25098040699958801, 0.25098040699958801), (0.68421053886413574, 0.25098040699958801, 0.25098040699958801), (0.73684209585189819, 0.25098040699958801, 0.25098040699958801), (0.78947371244430542, 0.25098040699958801, 0.25098040699958801), (0.84210526943206787, 0.25098040699958801, 0.25098040699958801), (0.89473682641983032, 0.75294119119644165, 0.75294119119644165), (0.94736844301223755, 1.0, 1.0), (1.0, 1.0, 1.0)], 'green': [(0.0, 0.0, 0.0), (0.052631579339504242, 0.0, 0.0), (0.10526315867900848, 0.25098040699958801, 0.25098040699958801), (0.15789473056793213, 0.50196081399917603, 0.50196081399917603), (0.21052631735801697, 0.62745100259780884, 0.62745100259780884), (0.26315790414810181, 0.75294119119644165, 0.75294119119644165), (0.31578946113586426, 0.87843137979507446, 0.87843137979507446), (0.3684210479259491, 1.0, 1.0), (0.42105263471603394, 1.0, 1.0), (0.47368422150611877, 1.0, 1.0), (0.52631580829620361, 1.0, 1.0), (0.57894736528396606, 1.0, 1.0), (0.63157892227172852, 1.0, 1.0), (0.68421053886413574, 0.87843137979507446, 0.87843137979507446), (0.73684209585189819, 0.62745100259780884, 0.62745100259780884), (0.78947371244430542, 0.37647059559822083, 0.37647059559822083), (0.84210526943206787, 0.12549020349979401, 0.12549020349979401), (0.89473682641983032, 0.37647059559822083, 0.37647059559822083), (0.94736844301223755, 0.62745100259780884, 0.62745100259780884), (1.0, 0.87843137979507446, 0.87843137979507446)], 'red': [(0.0, 0.25098040699958801, 0.25098040699958801), (0.052631579339504242, 0.25098040699958801, 0.25098040699958801), (0.10526315867900848, 0.0, 0.0), (0.15789473056793213, 0.0, 0.0), (0.21052631735801697, 0.0, 0.0), (0.26315790414810181, 0.25098040699958801, 0.25098040699958801), (0.31578946113586426, 0.25098040699958801, 0.25098040699958801), (0.3684210479259491, 0.25098040699958801, 0.25098040699958801), (0.42105263471603394, 0.25098040699958801, 0.25098040699958801), (0.47368422150611877, 0.25098040699958801, 0.25098040699958801), (0.52631580829620361, 0.50196081399917603, 0.50196081399917603), (0.57894736528396606, 0.75294119119644165, 0.75294119119644165), (0.63157892227172852, 1.0, 1.0), (0.68421053886413574, 1.0, 1.0), (0.73684209585189819, 1.0, 1.0), (0.78947371244430542, 1.0, 1.0), (0.84210526943206787, 1.0, 1.0), (0.89473682641983032, 1.0, 1.0), (0.94736844301223755, 1.0, 1.0), (1.0, 1.0, 1.0)]}
GMT_gebco = colors.LinearSegmentedColormap('GMT_gebco', _GMT_gebco_data, LUTSIZE)
GMT_globe = colors.LinearSegmentedColormap('GMT_globe', _GMT_globe_data, LUTSIZE)
GMT_haxby = colors.LinearSegmentedColormap('GMT_haxby', _GMT_haxby_data, LUTSIZE)
GMT_no_green = colors.LinearSegmentedColormap('GMT_no_green', _GMT_no_green_data, LUTSIZE)
GMT_ocean = colors.LinearSegmentedColormap('GMT_ocean', _GMT_ocean_data, LUTSIZE)
GMT_polar = colors.LinearSegmentedColormap('GMT_polar', _GMT_polar_data, LUTSIZE)
GMT_red2green = colors.LinearSegmentedColormap('GMT_red2green', _GMT_red2green_data, LUTSIZE)
GMT_relief = colors.LinearSegmentedColormap('GMT_relief', _GMT_relief_data, LUTSIZE)
GMT_seis = colors.LinearSegmentedColormap('GMT_seis', _GMT_seis_data, LUTSIZE)
GMT_wysiwyg = colors.LinearSegmentedColormap('GMT_wysiwyg', _GMT_wysiwyg_data, LUTSIZE)
def addcmaps(datad):
datad['GMT_gebco']=_GMT_gebco_data
datad['GMT_globe']=_GMT_globe_data
datad['GMT_haxby']=_GMT_haxby_data
datad['GMT_no_green']=_GMT_no_green_data
datad['GMT_ocean']=_GMT_ocean_data
datad['GMT_polar']=_GMT_polar_data
datad['GMT_red2green']=_GMT_red2green_data
datad['GMT_relief']=_GMT_relief_data
datad['GMT_seis']=_GMT_seis_data
datad['GMT_wysiwyg']=_GMT_wysiwyg_data
return datad
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users