
| Current Path : /var/www/web-klick.de/dsh/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/tools_roadmap.py |
import os,sys,re,time
import matplotlib.pyplot as plt
def block (plt,a,b,y,h,c,t,ha="center"):
a = a-1
a = a + 0.1
b = b - 0.1
h = h - 0.2
plt.gca().add_patch(plt.Rectangle( (a,y), b-a, h, color=c ) )
if ha == "left":
plt.text(a,y+h/2,t,ha=ha,va="center")
else:
plt.text(a+(b-a)/2,y+h/2,t,ha=ha,va="center",size="x-small",color="white")
fig,ax = plt.subplots()
plt.figure(figsize=(11.69,8.27),dpi=300)
plt.axis('off')
# plt.plot([0.00]+gesamt,color="blue",linewidth=1.2)
#plt.axhline(0,color="green",linewidth=0.3)
plt.axvline(1,color="black",linewidth=0.0) #,linestyle="dashed")
plt.axvline(36,color="black",linewidth=0.0)
plt.axhline(-1,color="black",linewidth=0.0)
plt.axhline(-20,color="black",linewidth=0.0)
#plt.ylabel("Ebit kEUR")
#plt.plot(0,-180," ")
block(plt, 10, 12, -1, 1, "#999999", "23/04")
block(plt, 12 + 1, 12 + 3, -1, 1, "#999999", "24/01")
block(plt, 12 + 4, 12 + 6, -1, 1, "#999999", "24/02")
block(plt, 12 + 7, 12 + 9, -1, 1, "#999999", "24/03")
block(plt, 12 +10, 12 + 12, -1, 1, "#999999", "24/04")
block(plt, 24 + 1, 24 + 3, -1, 1, "#999999", "25/01")
block(plt, 24 + 4, 24 + 6, -1, 1, "#999999", "25/02")
block(plt, 24 + 7, 24 + 9, -1, 1, "#999999", "25/03")
block(plt, 24 +10, 24 + 12, -1, 1, "#999999", "25/04")
berg = "#aa00ff"
ift = "#ff00aa"
beyond = "#aaaa00"
unknown = "#999999"
line = -3
block(plt, 1, 8, line, 1, "#ffffff", "C# Simulation", "left")
block(plt, 9, 10, line, 1, beyond, "Demo")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Python Simulation", "left")
block(plt, 9, 12, line, 1, ift, "Buf Cen IO")
block(plt, 12+1, 12+9, line, 1, ift, "22 Modules")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Symbolfiles check", "left")
block(plt, 10, 12+3, line, 1, ift, "Check Symbols")
block(plt, 12+4, 12+6, line, 1, ift, "Documentation")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "VDD Generator", "left")
block(plt, 12+2, 12+6, line, 1, unknown, "Skript")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Log Analyzer Tool", "left")
block(plt, 9, 11, line, 1, berg, "Arch")
block(plt, 12, 12+8, line, 1, berg, "Programming")
block(plt, 12+9, 12+12, line, 1, ift, "Testing")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Solution files", "left")
block(plt, 9, 10, line, 1, ift, "Concept")
block(plt, 11, 12, line, 1, ift, "Skript")
block(plt, 12+1, 12+4, line, 1, ift, "Rollout")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Update Configuration Tool", "left")
block(plt, 12+4, 12+6, line, 1, berg, "User needs")
block(plt,12+7, 12+12, line, 1, berg, "Programming")
block(plt, 24+1, 24+3, line, 1, ift, "Test")
block(plt, 24+4, 24+5, line, 1, berg, "Rollout")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Track Explorer", "left")
block(plt, 12+8, 24+12, line, 1, berg, " ")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "Basis Service App", "left")
block(plt, 12+6, 24+6, line, 1, unknown, " ")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "TrackDesigner", "left")
block(plt, 12+5, 24+12, line, 1, unknown, " ")
line = line - 1
block(plt, 1, 8, line, 1, "#ffffff", "TrackEmulator", "left")
block(plt,12+10, 24+12, line, 1, unknown, " ")
# Solution files
# Log Analyzer
# VDD Generator
# Update Configuration Tool
# Python Skripte Robert
# NP++ Piccola Plugins
#ypos = 0.99
#plt.gca().add_patch(plt.Rectangle( (0.2,ypos), 0.03,0.02, color="green", transform=fig.transFigure ) )
#plt.text(0.24,ypos,"Revenue",ha="left",va="bottom",transform=fig.transFigure)
#
#ypos = ypos - 0.04
#plt.gca().add_patch(plt.Rectangle( (0.2,ypos), 0.03,0.02, color="red", transform=fig.transFigure ) )
#plt.text(0.24,ypos,"Other costs",ha="left",va="bottom",transform=fig.transFigure)
#
#ypos = ypos - 0.04
#plt.gca().add_patch(plt.Rectangle( (0.2,ypos), 0.03,0.02, color="grey", transform=fig.transFigure ) )
#plt.text(0.24,ypos,"Invest",ha="left",va="bottom",transform=fig.transFigure)
#
#ypos = ypos - 0.04
#plt.gca().add_patch(plt.Rectangle( (0.2,ypos), 0.03,0.02, color="yellow", transform=fig.transFigure ) )
#plt.text(0.24,ypos,"Labor costs",ha="left",va="bottom",transform=fig.transFigure)
#
#ypos = ypos - 0.04
#plt.gca().add_patch(plt.Rectangle( (0.2,ypos), 0.03,0.02, color="orange", transform=fig.transFigure ) )
#plt.text(0.24,ypos,"Raw material",ha="left",va="bottom",transform=fig.transFigure)
#
#ypos = ypos - 0.04
#plt.gca().add_patch(plt.Rectangle( (0.2,ypos+0.01), 0.03,0.0005, color="blue", transform=fig.transFigure ) )
#plt.text(0.24,ypos,"Total net win",ha="left",va="bottom",transform=fig.transFigure)
#
#
## print(inc_salden["SUM"])
#
#
#
plt.savefig("tools_roadmap.pdf",orientation="landscape")
#os.system("cp "+filename+".pdf test.pdf")
#
#