Skip to content

Instantly share code, notes, and snippets.

@N-Coder
Created July 4, 2017 17:55
Show Gist options
  • Save N-Coder/c139ff2790a9536f44103a34e3cd54b3 to your computer and use it in GitHub Desktop.
Save N-Coder/c139ff2790a9536f44103a34e3cd54b3 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
plt.xkcd()
fig = plt.figure()
ax = fig.add_axes((0.1, 0.25, 0.8, 0.7))
t = np.arange(0.0, 2.4 * np.pi, 0.1)
ax.plot(t, (np.power(np.sin(t), 2) * (1 + t / 1.5 / np.pi)) + 1, 'b-')
t = np.arange(2.39 * np.pi, 2.75 * np.pi, 0.1)
ax.plot(t, (np.power(np.sin(t), 2) * (1 + t / 1.5 / np.pi)) + 1, 'b--')
ax.axvline(2.4 * np.pi, color='y')
plt.xlabel('Semester')
plt.ylabel('Konflikte im FSinfo Büro')
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')
plt.xticks(np.arange(0.0, 3 * np.pi + 1, 0.5 * np.pi),
["SS 14", "WS 14/15", "SS 15", "WS 15/16", "SS 16", "WS 16/17"])
plt.yticks([])
fig.text(0.5, 0.05, '"Das Boot äh Büro is voll" - mal wieder', ha='center')
ax.annotate("jetzt", xy=(2.45 * np.pi, 1))
plt.show()
@N-Coder
Copy link
Author

N-Coder commented Jul 4, 2017

photo5393153677713319937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment