DevOps (with Python source in Description field)
by kdavies4 - uploaded on January 6, 2019, 8:41 am
import matplotlib.pyplot as plt
from matplotlib.sankey import Sankey
fig = plt.figure(figsize=(9, 6.75))
ax = fig.add_subplot(1, 1, 1, xticks=[], yticks=[], title="DevOps")
sankey = Sankey(ax=ax, unit=None, shoulder=0, head_angle=135, gap=0.1, scale=0.3, margin=0)
sankey.add(patchlabel="Integrate ", orientations=[1, 0], trunklength=0.6, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, rotation=45)
sankey.add(patchlabel="Test/ \nVerify ", orientations=[0, 0], trunklength=1, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=0, connect=(1, 0))
sankey.add(patchlabel="Release/ \nDeploy ", orientations=[-1, 0], trunklength=0.6, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=1, connect=(1, 0))
sankey.add(patchlabel=" Configure", orientations=[-1, 0], trunklength=0.6, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=2, connect=(1, 0))
sankey.add(patchlabel=" Monitor", orientations=[-1, 0], trunklength=0.6, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=3, connect=(1, 0))
sankey.add(patchlabel=" Analyze/\n Evaluate", orientations=[0, 0], trunklength=1, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=4, connect=(1, 0))
sankey.add(patchlabel=" Plan", orientations=[1, 0], trunklength=0.6, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=5, connect=(1, 0))
sankey.add(patchlabel="Create/ \nImplement ", orientations=[1, 0], trunklength=0.6, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=6, connect=(1, 0))
diagrams = sankey.finish()
for diagram in diagrams:
# Indent the following 3 lines:
diagram.text.set_fontweight('bold')
diagram.text.set_color('white')
diagram.text.set_rotation_mode('anchor')
diagrams[0].text.set_rotation(45); diagrams[0].text.set_horizontalalignment('right')
diagrams[1].text.set_rotation(45); diagrams[1].text.set_horizontalalignment('center')
diagrams[2].text.set_rotation(-45); diagrams[2].text.set_horizontalalignment('right')
diagrams[3].text.set_rotation(45); diagrams[3].text.set_horizontalalignment('left')
diagrams[4].text.set_rotation(-45); diagrams[4].text.set_horizontalalignment('left')
diagrams[5].text.set_rotation(-45); diagrams[5].text.set_horizontalalignment('center')
diagrams[6].text.set_rotation(45); diagrams[6].text.set_horizontalalignment('left')
diagrams[7].text.set_rotation(-45); diagrams[7].text.set_horizontalalignment('right')
plt.savefig('devops.svg', format='svg', dpi=500)
plt.show()
Log into OpenClipart
- Tags
- software development IT operations
- Safe for Work?
- Yes
0 Comments. Please login to comment or add your own remix.