Code: Alles auswählen
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
pdf_pages = PdfPages('figures/Results_FBGS.pdf')
fig1 = plt.figure(1)
fig1.set_size_inches(5.79,49.62)
axisNum = 0
for row in range(30):
axisNum += 1
ax1 = plt.subplot(30, 1, axisNum)
ax1.xaxis.set_major_locator(months)
ax1.xaxis.set_minor_locator(days)
ax1.xaxis.set_major_formatter(monthsFmt)
ax1.yaxis.set_major_formatter(ymajorFmt2)
ax1.yaxis.grid(True, which='major')
ax1.xaxis.grid(True, which='major')
plt.ylabel("Temperatur [$^\circ$C] \n" + str(T_fiber_depth[axisNum-1])
+ " m (BGL)")
plt.plot(data_FBGS.index,data_FBGS.loc[:,('Temp'+str(axisNum))],
label='FBGS')
fig1.autofmt_xdate()
#legend = ax1.legend(loc='lower left', shadow=True)
plt.figtext(0.18,0.99,
"Temperaturen der FBG-Sensoren in der \nBohrung KB-Moxa 13/1",
fontsize=14,)
fig1.tight_layout(pad=4.0, w_pad=None, h_pad=0.1)
pdf_pages.savefig(fig1)
# Write the PDF document to the disk
pdf_pages.close()Kennt sich jemand damit aus?
