6
6
7
7
from pathlib import Path
8
8
9
- import numpy as np # get ride of the x shift for letter M
10
9
import pygmt
11
10
12
11
@@ -169,24 +168,22 @@ def create_logo(color=True, theme="light", shape="circle", wordmark=True): # no
169
168
# polygon with small distance to horizontal line of letter G
170
169
# starting point: lower right corner of the left vertical line of letter M
171
170
# direction: clockwise
172
- m_x1 = 0.35
173
- m_x2 = 1.52
174
- m_x = np .array (
175
- [
176
- m_x1 + m_x1 / 2 , # vertical left upwarts
177
- m_x1 - m_x1 / 2 ,
178
- m_x1 - m_x1 / 2 ,
179
- m_x1 + m_x1 / 2 ,
180
- (m_x2 + m_x1 / 2 ) / 2 + m_x1 / 4 , # mid pick above
181
- m_x2 - m_x1 / 2 , # vertical right downwarts
182
- m_x2 + m_x1 / 2 ,
183
- m_x2 + m_x1 / 2 ,
184
- m_x2 - m_x1 / 2 ,
185
- m_x2 - m_x1 / 2 , # right pick below
186
- (m_x2 + m_x1 / 2 ) / 2 + m_x1 / 4 , # mid pick below
187
- m_x1 + m_x1 / 2 , # left pick below
188
- ]
189
- ) # get ride of the x shift
171
+ m_x1 = 0.35 - 0.35 / 2 - 0.06
172
+ m_x2 = 1.52 + 0.35 / 2 - 0.06
173
+ m_x = [
174
+ m_x1 + m_x2 / 5 , # vertical left upwarts
175
+ m_x1 ,
176
+ m_x1 ,
177
+ m_x1 + m_x2 / 5 ,
178
+ m_x1 + (m_x2 - m_x1 ) / 2 , # mid pick above
179
+ m_x2 - m_x2 / 5 , # vertical right downwarts
180
+ m_x2 ,
181
+ m_x2 ,
182
+ m_x2 - m_x2 / 5 ,
183
+ m_x2 - m_x2 / 5 , # right pick below
184
+ m_x1 + (m_x2 - m_x1 ) / 2 , # mid pick below
185
+ m_x1 + m_x2 / 5 , # left pick below
186
+ ]
190
187
m_y1 = 0.3
191
188
m_y2 = 1.63
192
189
m_y = [
@@ -203,7 +200,7 @@ def create_logo(color=True, theme="light", shape="circle", wordmark=True): # no
203
200
m_y2 - m_y2 / 2 - m_y2 / 18 , # mid pick below
204
201
m_y2 - m_y2 / 3 , # left pick below
205
202
]
206
- fig .plot (x = m_x - 0.06 , y = m_y , close = True , fill = color_red ) # get ride of the x shift
203
+ fig .plot (x = m_x , y = m_y , close = True , fill = color_red )
207
204
208
205
# .............................................................................
209
206
# letter T
0 commit comments