Skip to content
Snippets Groups Projects
Commit 3ef28348 authored by Richter, Manuela's avatar Richter, Manuela
Browse files

zweites Diagramm erstellt und abgespeichert

parent 987adfb1
Branches Rpc
No related tags found
1 merge request!12v.0.1 for alpha release
Test0.tiff

5.67 MiB

Test1.tiff

5.67 MiB

......@@ -43,10 +43,19 @@ color_list = colors.get_color_names()
# Plot erstellen
color1 = colors.get_rgb('black')
color2 = colors.get_rgb('yellow')
fig = plt.figure()
#1.Figure
fig1 = plt.figure()
plt.plot(x,y, color=color1)
plt.plot(x,y_2, color= color2)
plt.draw()
# 2.Figure
plt.clf #Figure schließen
fig2 = plt.figure()
plt.plot(x,y, color=color2)
plt.plot(x,y_2, color= color1)
plt.draw()
fig = [fig1, fig2]
#print(type(Figure1))
......@@ -65,6 +74,8 @@ plt.draw()
# plot taggen
#%% Figure als tiff-Datei abspeichern
figs.savefig('Test.tiff')
for i in range(len(figs)):
name = "Test"+str(i)+".tiff"
figs[i].savefig(name)
......@@ -34,7 +34,6 @@ def TagPlot(figs,prefix):
#%% Textfeld mit ID anlegen
# Position bestimmen
#aktuelle Achse erhalten
# Limits for relative Positioning
# plt.text(10, 10, ID)
#x_lim = figs.axes.get_xlim()
......@@ -53,6 +52,5 @@ def TagPlot(figs,prefix):
#%% Rückgabewerte
return(figs, ID)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment