ich möchte für meine Diplomarbeit nun einige Diagramme erstellen. Diese sollen möglichst noch DIN 461 aussehen. Dafür möchte ich nun die Pfeile, welche bei mir als longrightarrow im Text stehen, so wie in der DIN ans Diagramm anfügen.
Hier mein Code für das Diagramm:
Code: Alles auswählen
import matplotlib.pyplot as plt
x = [-1, 0, 1]
i = [-4, -2, 0, 2, 4]
f = [[-3, -1, 1, 3, 5],[-4, -2, 0, 2, 4],[-5, -3, -1, 1, 3]]
fig = plt.figure() # neue Figur
ax1 = fig.add_subplot(1, 1, 1) # neuer Subplot
for k in xrange(len(x)):
ax1.plot(i, f[len(x)-1-k], marker='o', label="$x=%s\/mm$"%(1000*x[len(x)-1-k]))
ax1.grid(which='major', axis='x', linewidth=0.75, linestyle='-', color='0.75')
ax1.grid(which='major', axis='y', linewidth=0.75, linestyle='-', color='0.75')
ax1.set_xlabel("Steuerstrom $i_x$ in A $\longrightarrow$")
ax1.set_ylabel('Kraft $f_x$\nin N $\longrightarrow$', rotation="horizontal")
ax1.legend(loc='best')
ax1.set_xlim(round(1.1*i[0]), round(1.1*i[-1]))
plt.xticks(np.arange(i[0], i[-1]+2,2))
Viele Grüße,
Tiiz