/
tinhatbenbranding.py
60 lines (48 loc) · 2.15 KB
/
tinhatbenbranding.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /usr/bin/env python
"""!
-----------------------------------------------------------------------------
File Name : tinhatbenbranding.py
Purpose:
Created: 24-Apr-2016 08:00:45 AEST
-----------------------------------------------------------------------------
Revision History
-----------------------------------------------------------------------------
S.D.G
"""
__author__ = 'tinhatben'
__revision__ = '0.1'
__date__ = '24-Apr-2016 08:00:45 AEST'
__license__ = 'BSD 3 Clause'
# LICENSE DETAILS############################################################
# This Source Code Form is subject to the terms of the BSD 3 Clause License
# see the file LICENSE for more information
# IMPORTS#####################################################################
##############################################################################
# Constants
TINHATBEN_GRAY = "#7a7a7a"
TINHATBEN_YELLOW = "#ffaf1f"
def add_tinhatbendotcom(ax, pos):
ax.text(pos[0], pos[1], 't',
verticalalignment='bottom', horizontalalignment='left',
transform=ax.transAxes,
color=TINHATBEN_YELLOW, fontsize=25, style='normal')
ax.text(pos[0] + 0.02, pos[1], 'in',
verticalalignment='bottom', horizontalalignment='left',
transform=ax.transAxes,
color=TINHATBEN_GRAY, fontsize=25, style='normal')
ax.text(pos[0] + 0.06, pos[1], 'h',
verticalalignment='bottom', horizontalalignment='left',
transform=ax.transAxes,
color=TINHATBEN_YELLOW, fontsize=25, style='normal')
ax.text(pos[0] + 0.09, pos[1], 'at',
verticalalignment='bottom', horizontalalignment='left',
transform=ax.transAxes,
color=TINHATBEN_GRAY, fontsize=25, style='normal')
ax.text(pos[0] + 0.135, pos[1], 'b',
verticalalignment='bottom', horizontalalignment='left',
transform=ax.transAxes,
color=TINHATBEN_YELLOW, fontsize=25, style='normal')
ax.text(pos[0] + 0.16, pos[1], 'en.com',
verticalalignment='bottom', horizontalalignment='left',
transform=ax.transAxes,
color=TINHATBEN_GRAY, fontsize=25, style='normal')