DevOps (with Python source in Description field)

DevOps (with Python source in Description field)

Description

import matplotlib.pyplot as pltfrom matplotlib.sankey import Sankeyfig = 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/ Verify ", orientations=[0, 0], trunklength=1, flows=[1, -1], pathlengths=[0.1, -0.4], linewidth=0, prior=0, connect=(1, 0))sankey.add(patchlabel="Release/ Deploy ", 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/ 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/ Implement ", 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()

License

Public Domain

More about SVG

Size 0.04 MB

Date: 10/06/2020

No. of downloads: 149

SVG published by

OpenClipart

SVG ID: 144324