YongchengYAO commited on
Commit
279b335
·
1 Parent(s): 26d95df
Files changed (2) hide show
  1. Landmarks-fig.zip +2 -2
  2. get_dataset.py +11 -6
Landmarks-fig.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bfaba739a464f2f968a2b687ef86d6c531ffd6a5c26ec4163b903b3df23e6a8d
3
- size 1309339265
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:784b7f7a95bdcde927b1df172ae7a792334544271f4826542856c826b07b8523
3
+ size 1309837392
get_dataset.py CHANGED
@@ -224,18 +224,23 @@ def plot_slice_with_landmarks(nii_path: str, json_path: str, fig_path: str = Non
224
  facecolors="#18A727",
225
  edgecolors="black",
226
  marker="o",
227
- s=30,
228
- linewidth=1,
229
  )
230
  for i, (x, y) in enumerate(zip(x_coords, y_coords), 1):
231
  plt.annotate(
232
- f"{i}", (x, y), xytext=(2, 2), textcoords="offset points", color="#FE9100"
 
 
 
 
 
233
  )
234
 
235
  # Configure plot appearance
236
- plt.axis("on")
237
- plt.xlabel("Posterior to Anterior")
238
- plt.ylabel("Inferior to Superior")
239
 
240
  # Save or display the plot
241
  if fig_path:
 
224
  facecolors="#18A727",
225
  edgecolors="black",
226
  marker="o",
227
+ s=80,
228
+ linewidth=1.5,
229
  )
230
  for i, (x, y) in enumerate(zip(x_coords, y_coords), 1):
231
  plt.annotate(
232
+ f"$\\mathbf{{{i}}}$",
233
+ (x, y),
234
+ xytext=(2, 2),
235
+ textcoords="offset points",
236
+ color="#FE9100",
237
+ fontsize=14,
238
  )
239
 
240
  # Configure plot appearance
241
+ plt.xlabel("Anterior →", fontsize=14)
242
+ plt.ylabel("Superior →", fontsize=14)
243
+ plt.margins(0)
244
 
245
  # Save or display the plot
246
  if fig_path: