Skip to content

Commit fe1b201

Browse files
author
Kyle Beyer
committed
update figs
1 parent 60eab28 commit fe1b201

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

assets/lead_208_pp_dxds.png

-1.05 KB
Loading

examples/data_curation_tutorial.ipynb

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

src/exfor_tools/exfor_tools.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -976,9 +976,9 @@ def set_label(
976976
label_location = (label_xloc_deg, label_yloc)
977977

978978
if log:
979-
offset_text = f"($\\times$ {offset:0.0e})"
979+
offset_text = f"($\\times$ {offset:0e})"
980980
else:
981-
offset_text = f"($+$ {offset:1.0f})"
981+
offset_text = f"($+$ {offset:1f})"
982982

983983
m = measurements[0]
984984
label = ""
@@ -1000,7 +1000,7 @@ def set_label(
10001000
else:
10011001
label += f"{m.subentry}, "
10021002
if label_offset:
1003-
label += "\n" + offset_text
1003+
label += offset_text
10041004

10051005
t = ax.text(*label_location, label, fontsize=fontsize, color=colors[-1])
10061006

@@ -1088,8 +1088,12 @@ def plot_angular_distributions(
10881088
set_label(ax, m, c, offset, x, y, log, fontsize, **label_kwargs)
10891089

10901090
if isinstance(measurements[0], list):
1091-
x_units = measurements[0][0].x_units
1092-
y_units = measurements[0][0].y_units
1091+
x_units = unit_symbols.get(
1092+
measurements[0][0].x_units, measurements[0][0].x_units
1093+
)
1094+
y_units = unit_symbols.get(
1095+
measurements[0][0].y_units, measurements[0][0].y_units
1096+
)
10931097
else:
10941098
x_units = unit_symbols.get(measurements[0].x_units, measurements[0].x_units)
10951099
y_units = unit_symbols.get(measurements[0].y_units, measurements[0].y_units)

0 commit comments

Comments
 (0)