Merge branch 'main' of gitea.pkm.physik.tu-darmstadt.de:IPKM/isotopetable

This commit is contained in:
Markus Rosenstihl 2025-03-27 20:58:18 +01:00
commit 3e24987f05
4 changed files with 8 additions and 5 deletions

View File

@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-3w!#8kidc1=!ehn_@b$*d@w-h!p(d(gm$*68i!9u%u#i-89=$@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition

Binary file not shown.

View File

@ -73,8 +73,8 @@ def result(request):
w_upper = Wedge((0,2.5), radius, theta1, theta2, fc='#D5D9FF42', edgecolor='black')
w_lower = Wedge((0,-2.5), radius, theta1, theta2, fc='#D5D9FF42', edgecolor='black')
ax.set_xlim([-8, 8])
ax.set_ylim([-8, 8])
ax.set_xlim([-5.5, 5.5])
ax.set_ylim([-5.5, 5.5])
ax.grid(True)
ax.add_patch(w_upper)
@ -95,12 +95,14 @@ def result(request):
close_isotopes.append(i_info)
arr = FancyArrowPatch((-2.5,z*1e3), (2.5, z*1e3),
arrowstyle='<->,head_width=.1', mutation_scale=20, linewidth=2)
arrowstyle='-', mutation_scale=20, linewidth=2)
ax.add_patch(arr)
ax.annotate(f"{isotope.n_nucleons}{isotope.symbol}", (1.1, 0), xycoords=arr, ha='left', va='center',fontsize=8)
ax.annotate(f"{isotope1.n_nucleons}{isotope1.symbol}: {freq:.1f}MHz\ng={gradient:.1f}T/m",
(0.91, -0.45), xycoords=w,
ha='left', va='center',fontsize=11)
ax.set_aspect('equal')
ax.set_ylabel('z (mm)')
buf = BytesIO()

View File

@ -1 +1,2 @@
Django==5.1.6
matplotlib==3.10.1