Andrei tomut commited on
Commit
c8c4db0
1 Parent(s): 0c340e3
interface_connection/latmatcher_interface.py CHANGED
@@ -137,8 +137,8 @@ def plot_supercel(super_xyz, min_supercel):
137
  y = [0.0, min_supercel.sc_vec3[1][0], min_supercel.sc_vec3[1][0] + min_supercel.sc_vec3[1][1],
138
  min_supercel.sc_vec3[1][1], 0.0]
139
  plt.gca().add_patch(patches.Polygon(xy=list(zip(x, y)), fill=True, alpha=0.4, color="green"))
140
- plt.ylim(min(y)-10, max(y)+10)
141
- plt.xlim(min(x)-10, max(x)+10)
142
  # super_a = [super_xyz[i] for i in range(len(new_structure["host_guest"])) if
143
  # new_structure["host_guest"][i] == "host"]
144
  # super_b = [super_xyz[i] for i in range(len(new_structure["host_guest"])) if
 
137
  y = [0.0, min_supercel.sc_vec3[1][0], min_supercel.sc_vec3[1][0] + min_supercel.sc_vec3[1][1],
138
  min_supercel.sc_vec3[1][1], 0.0]
139
  plt.gca().add_patch(patches.Polygon(xy=list(zip(x, y)), fill=True, alpha=0.4, color="green"))
140
+ plt.ylim(min(y)*3, max(y)*3)
141
+ plt.xlim(min(x)*3, max(x)*3)
142
  # super_a = [super_xyz[i] for i in range(len(new_structure["host_guest"])) if
143
  # new_structure["host_guest"][i] == "host"]
144
  # super_b = [super_xyz[i] for i in range(len(new_structure["host_guest"])) if