Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
395 changes: 0 additions & 395 deletions data/overview/PPAFM/Untitled.ipynb

This file was deleted.

574 changes: 574 additions & 0 deletions data/overview/PPAFM/overlay_atoms.py

Large diffs are not rendered by default.

Binary file modified manuscript/images/Figure4.pdf
Binary file not shown.
81,596 changes: 26,662 additions & 54,934 deletions manuscript/images/Figure4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified results/train_data/style_difference.pdf
Binary file not shown.
5,280 changes: 5,280 additions & 0 deletions results/train_data/style_difference.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified results/train_data/xy_view.pdf
Binary file not shown.
57,649 changes: 57,649 additions & 0 deletions results/train_data/xy_view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified results/train_data/xy_view_data.pdf
Binary file not shown.
1,512 changes: 1,512 additions & 0 deletions results/train_data/xy_view_data.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified results/train_data/z_distribution.pdf
Binary file not shown.
5,399 changes: 5,399 additions & 0 deletions results/train_data/z_distribution.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 17 additions & 4 deletions src/performanceEvaluation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def radar_plot(ax, mins, maxs, data, labels, color=None, alpha_fill=0.5, errors=
ax.set_title("") # Remove default title
ax.text(-0.20, 0.5, title, va='center', ha='center', rotation=90,
rotation_mode='anchor', transform=ax.transAxes, fontsize=plt.rcParams['font.size'])
return ax
return ax

if __name__ == "__main__":
fig, ax = plt.subplots(figsize=(6, 6), subplot_kw=dict(polar=True))
Expand Down Expand Up @@ -370,7 +370,7 @@ def draw_unit_cells(ax, origin, cell_vectors, nx, ny, color='black', lw=1.0, ls=
xs, ys = zip(start[:2], end[:2])
ax.plot(xs, ys, color=color, lw=lw, linestyle=ls)

def draw_3d_axis_indicator(ax, anchor=(0.95, 0.05), length=40, style='xy'):
def draw_3d_axis_indicator(ax, anchor=(0.95, 0.05), length=40, style='xy', rotate_k=0):
"""
Draw a small 3D axis compass with visually equal-length arrows (in pixels),
independent of figure size or axis aspect ratio.
Expand All @@ -380,6 +380,7 @@ def draw_3d_axis_indicator(ax, anchor=(0.95, 0.05), length=40, style='xy'):
anchor: (x, y) in axes fraction (0–1)
length: arrow length in pixels
style: 'xy' or 'x-out'
rotate_k: 90-degree in-plane rotation steps for 'xy' style
"""
import matplotlib.transforms as mtransforms

Expand All @@ -405,9 +406,21 @@ def draw_arrow(dx, dy, label, color, ha, va):
ax.text(end[0], end[1], label, fontsize=12, color=color,
ha=ha, va=va, transform=ax.transAxes)

def rotate_vec_90(dx, dy, k):
k = int(k) % 4
if k == 0:
return dx, dy
if k == 1:
return -dy, dx
if k == 2:
return -dx, -dy
return dy, -dx

if style == 'xy':
draw_arrow(length, 0, 'x', 'red', ha='left', va='center')
draw_arrow(0, length, 'y', 'green', ha='center', va='bottom')
dx_x, dy_x = rotate_vec_90(length, 0, rotate_k)
dx_y, dy_y = rotate_vec_90(0, length, rotate_k)
draw_arrow(dx_x, dy_x, 'x', 'red', ha='left', va='center')
draw_arrow(dx_y, dy_y, 'y', 'green', ha='center', va='bottom')
ax.text(anchor[0], anchor[1], 'z', fontsize=12, color='blue',
ha='center', va='center', transform=ax.transAxes)

Expand Down
303 changes: 227 additions & 76 deletions src/performanceEvaluation/visualiseTrainingData.py

Large diffs are not rendered by default.