From dc68403a37ef260697cd8bc1df1d39d1ec376524 Mon Sep 17 00:00:00 2001 From: Pascal Engeler <engelerp@phys.ethz.ch> Date: Thu, 18 Jul 2024 22:27:01 +0200 Subject: [PATCH] More adaptive in the number --- projects/braidingTightBinding/bin/plot_zerostate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/braidingTightBinding/bin/plot_zerostate.py b/projects/braidingTightBinding/bin/plot_zerostate.py index f26174f..688b359 100644 --- a/projects/braidingTightBinding/bin/plot_zerostate.py +++ b/projects/braidingTightBinding/bin/plot_zerostate.py @@ -7,8 +7,8 @@ writepath = "../results/plots/zerostate/" #eigenvalues ev = np.loadtxt(readpath+"eigenvalues.txt") -starting_mode = 1115 -end_mode = 1174 +starting_mode = 1110 +end_mode = 1180 plt.plot(np.array(list(range(starting_mode,end_mode))),ev[starting_mode:end_mode],'o', ms=1) plt.title("Frequency levels under vortex Kekule") @@ -35,7 +35,7 @@ pos_y = pos_data[:desired_length,5].astype('float') plt.figure(figsize=(8,300)) for i in range(starting_mode,end_mode): - plt.subplot(60,1,i-starting_mode+1) + plt.subplot(int(end_mode-starting_mode),1,i-starting_mode+1) cmax = np.amax(data[i,:]) cmin = np.amin(data[i,:]) if(-cmin > cmax): @@ -48,4 +48,4 @@ for i in range(starting_mode,end_mode): plt.xlabel("x") plt.ylabel("y") -plt.savefig(writepath + f"Modes.pdf", dpi = 50, bbox_inches='tight', pad_inches=0) +plt.savefig(writepath + f"Modes.pdf", dpi = 40, bbox_inches='tight', pad_inches=0) -- GitLab