Skip to content
Snippets Groups Projects
Commit 00878274 authored by Horns, Prof. Dr. Dieter's avatar Horns, Prof. Dr. Dieter :house_with_garden:
Browse files

added python script for figure in section 9

(massstab)
parent 81ab6b1e
No related branches found
No related tags found
No related merge requests found
Pipeline #74756 passed
v0.1/figures/massstab.png

38.5 KiB

from matplotlib import pyplot as plt
import numpy as np
#plt.xkcd()
fig = plt.figure()
plt.rc('text', usetex=True)
ax = fig.add_subplot(1, 1, 1)
#plt.rc('font',family='serif')
#ax.spines['right'].set_color('none')
#ax.spines['top'].set_color('none')
#plt.yticks([])
ax.set_ylim([-5,5.])
ax.set_xlim([0,5.])
ax.set_xlabel(r'g/f')
ax.set_ylabel(r'm')
x0=np.linspace(0,1.,3)
yt=np.ones(x0.size)*5.
yb=np.zeros(x0.size)
x=np.linspace(0,0.999,500)
#plt.annotate(
# 'THE DAY I REALIZED\nI COULD COOK BACON\nWHENEVER I WANTED',
# xy=(70, 1), arrowprops=dict(arrowstyle='->'), xytext=(15, -10))
#plt.title(" im LC-Kreis: Einschaltvorgang")
y = 1./(1-x)
plt.plot(x,y,'b')
x=np.linspace(1.001,5,500)
y = 1./(1-x)
plt.plot(x,y,'b')
plt.hlines(0,0,5,'b')
plt.hlines(1,0,5,'b','-.')
plt.hlines(-1,0,5,'b','-.')
plt.vlines(1,-5,5,'b','--')
plt.savefig('massstab.png',dpi=300,bbox_inches='tight')
#plt.savefig('massstab.png',bbox_inches='tight')
plt.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment