This commit is contained in:
Markus Rosenstihl 2025-03-27 20:56:43 +01:00
parent 0ae4c6920c
commit 9b74f3e76e
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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['*']
# Application definition # 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_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') w_lower = Wedge((0,-2.5), radius, theta1, theta2, fc='#D5D9FF42', edgecolor='black')
ax.set_xlim([-8, 8]) ax.set_xlim([-5.5, 5.5])
ax.set_ylim([-8, 8]) ax.set_ylim([-5.5, 5.5])
ax.grid(True) ax.grid(True)
ax.add_patch(w_upper) ax.add_patch(w_upper)
@ -95,12 +95,14 @@ def result(request):
close_isotopes.append(i_info) close_isotopes.append(i_info)
arr = FancyArrowPatch((-2.5,z*1e3), (2.5, z*1e3), 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.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"{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_aspect('equal')
ax.set_ylabel('z (mm)') ax.set_ylabel('z (mm)')
buf = BytesIO() buf = BytesIO()

View File

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