Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
XavCC
GraphyCV
Commits
6b0ebdeb
Commit
6b0ebdeb
authored
May 20, 2019
by
XavCC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
14c31d15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
0 deletions
+90
-0
no-discip_graphycv.py
no-discip_graphycv.py
+90
-0
No files found.
no-discip_graphycv.py
0 → 100644
View file @
6b0ebdeb
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
A Graphy CV for transdisciplanary human being
by XavCC
GNU GENERAL PUBLIC LICENSE Version 3
"""
import
numpy
as
np
import
matplotlib.pyplot
as
plt
# set plot style
plt
.
style
.
use
(
'seaborn-white'
)
# Name fields and assign value
field
=
[
'Arts'
,
'Sciences'
,
'Hacking'
,
'Engineering'
,
'Design'
]
ecology
=
[
72
,
# Arts
78
,
# Sciences
80
,
# Hacking
92
,
# Engineering
92
,
# Design
72
,
# Arts
]
digitaltech
=
[
65
,
# Arts
60
,
# Sciences
60
,
# Hacking
55
,
# Engineering
65
,
# Design
65
,
# Arts
]
teaching
=
[
55
,
# Arts
62
,
# Sciences
70
,
# Hacking
82
,
# Engineering
82
,
# Design
55
,
# Arts
]
biodesign
=
[
75
,
# Arts
92
,
# Sciences
95
,
# Hacking
88
,
# Enginering
95
,
# Design
75
,
# Arts
]
# Initialise the spider plot by setting figure size and polar projection
plt
.
figure
(
figsize
=
(
10
,
6
),
dpi
=
100
)
plt
.
subplot
(
polar
=
True
)
plt
.
subplots_adjust
(
wspace
=
0.25
,
hspace
=
0.20
,
top
=
0.85
,
bottom
=
0.05
)
theta
=
np
.
linspace
(
0
,
2
*
np
.
pi
,
len
(
biodesign
))
# Arrange the grid into number of capacties equal parts in degrees
lines
,
labels
=
plt
.
thetagrids
(
range
(
0
,
360
,
int
(
360
/
len
(
field
))),
field
)
plt
.
tick_params
(
direction
=
'out'
,
length
=
6
,
width
=
4
,
labelcolor
=
'#911C14'
)
# Plot Ecology capacities graph & area color
plt
.
plot
(
theta
,
ecology
,
'#FE984C'
)
# Jaffa FE984C
# Plot Digital Techn capacities graph
# Tamarillo #911C14 for Contrast ratio: 4.6:1 | AA with teaching
plt
.
plot
(
theta
,
digitaltech
,
'#911C14'
)
# Plot Teaching capacities graph
plt
.
plot
(
theta
,
teaching
,
'#BCC06E'
)
# Olive Green #BCC06E
# Plot Biodesign capacities graph
plt
.
plot
(
theta
,
biodesign
,
'#2A65BC'
)
# Denim 2A65BC
plt
.
fill
(
theta
,
biodesign
,
'#11B3D3'
,
alpha
=
0.2
)
# Pacific Blue 11B3D3
# Add legend and title for the plot
plt
.
legend
(
labels
=
(
'Ecology'
,
'Digital Tech'
,
'Teaching'
,
'Biodesign'
),
bbox_to_anchor
=
(
0.9
,
0.4
))
plt
.
title
(
'My Graphy CV for transdisciplanary human being'
,
fontsize
=
20
,
family
=
'cmtt10'
,
horizontalalignment
=
'center'
,
color
=
'#2A65BC'
)
# Denim 2A65BC call back biodesign
plt
.
show
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment