Language | Translated | Untranslated | Untranslated words | Checks | Suggestions | Comments | |
---|---|---|---|---|---|---|---|
Chinese (Traditional)
|
2 | ||||||
|
|||||||
English (United States)
|
3 | ||||||
|
|||||||
Norwegian Bokmål
|
0% | 95 | 899 | 3 | |||
|
Please sign in to see the alerts.
Overview
Project website | gmt-tutorials.org |
---|---|
Instructions for translators | Translation project for the website GMT Tutorials. Originally written in Chinese (TW) and has been partially translated into English. |
Project maintainers |
![]() |
Translation process |
|
Translation license | Creative Commons Attribution 4.0 International |
Source code repository |
https://github.com/whyjz/GMT-tutorials.git
|
Repository branch | master |
Last remote commit |
Change PyGMT version info
52fca7e
![]() |
Weblate repository |
https://hosted.weblate.org/git/gmt-tutorials/index/
|
Filemask | SOURCE_DOCS/locale/*/LC_MESSAGES/pen_and_painting.po |
String statistics
Strings percent | Hosted strings | Words percent | Hosted words | Characters percent | Hosted characters | |
---|---|---|---|---|---|---|
Total | 293 | 2,943 | 33,601 | |||
Source | 99 | 1,022 | 11,623 | |||
Translated | 67% | 198 | 69% | 2,044 | 69% | 23,246 |
Needs editing | 0% | 0 | 0% | 0 | 0% | 0 |
Failing checks | 2% | 8 | 1% | 16 | 1% | 120 |
Quick numbers
2,943
Hosted words
293
Hosted strings
67%
Translated
1
Contributors
and previous 30 days
Trends of last 30 days
+100%
Hosted words
—
+100%
Hosted strings
—
+67%
Translated
—
+100%
Contributors
—
# ==== 設定顏色與對應的國家 ====
# 這裡我們利用了 Python 的 Dictionary 資料結構來縮短程式碼!
color_dict = {'MX,BR,CR,DO': '#CD5C5C', # mexico, brazil, costa rica, dominican
'GT,JM,VE,GF,BS': 'pink', # guatemala, venezuela, jamaica, french guiana, bahamas
'US,PR,NI,GY': '240/230/140', # united states, puerto rico, nicaragua, guyana
'BZ,HT,TT,PA,SV': '0/36/74/4', # belize, haiti, trinidad and tobago, panama, salvador
'CO,CU,HN,SR': '97-0.52-0.94'} # colombia, cuba, honduras, suriname
color0 = '169' # 其他國家
dcw_list = [key + '+g' + value for key, value in color_dict.items()]
# ==== 取得地形資料 ====
region = [-100, -50, 1, 34]
grid = pygmt.datasets.load_earth_relief(resolution='05m', region=region)
# ==== 繪圖 ====
fig = pygmt.Figure()
fig.grdimage(grid, region=region, projection='B-80.27/8.58/-8/24/15c', cmap='geo')
fig.coast(land=color0, dcw=dcw_list)
fig.coast(shorelines='1/thinner', borders='1/thinner', resolution='i', frame='afg')
# 注意這裡我們在色階條的位置字串中加上了 +o1c/0,稍微偏移其位置。
fig.colorbar(position='jRM+w3c+o1c/0', truncate=[-8000, 0], frame=['x3000', 'y+lm'], box='+gwhite@50')
fig.show()
fig.savefig('central_america_pygmt.png')
# ==== Setting up colors and corresponding countries ====
# Here we take the advantage of Python's dictionary data structure!
color_dict = {'MX,BR,CR,DO': '#CD5C5C', # mexico, brazil, costa rica, dominican
'GT,JM,VE,GF,BS': 'pink', # guatemala, venezuela, jamaica, french guiana, bahamas
'US,PR,NI,GY': '240/230/140', # united states, puerto rico, nicaragua, guyana
'BZ,HT,TT,PA,SV': '0/36/74/4', # belize, haiti, trinidad and tobago, panama, salvador
'CO,CU,HN,SR': '97-0.52-0.94'} # colombia, cuba, honduras, suriname
color0 = '169' # other countries
dcw_list = [key + '+g' + value for key, value in color_dict.items()]
# ==== Get the Earth relief data ====
region = [-100, -50, 1, 34]
grid = pygmt.datasets.load_earth_relief(resolution='05m', region=region)
# ==== Plotting ====
fig = pygmt.Figure()
fig.grdimage(grid, region=region, projection='B-80.27/8.58/-8/24/15c', cmap='geo')
fig.coast(land=color0, dcw=dcw_list)
fig.coast(shorelines='1/thinner', borders='1/thinner', resolution='i', frame='afg')
# Note that we added '+o1c/0' to the original position string to slightly shift the colorbar!
fig.colorbar(position='jRM+w3c+o1c/0', truncate=[-8000, 0], frame=['x3000', 'y+lm'], box='+gwhite@50')
fig.show()
fig.savefig('central_america_pygmt.png')