Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting fix for CBU nodes #413

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
432 changes: 278 additions & 154 deletions kymata/invokers/invoker_run_nkg_plotting.py
100644 → 100755

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion kymata/plot/plot.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ def _custom_label(transform_name):
top_ax = bottom_ax = axes[_AxName.main]
top_ax.set_title(title)
bottom_ax.set_xlabel("Latency (ms) relative to onset of the environment")
# if minimap == "large":
# bottom_ax.set_ylabel("p-value")
# else:
# fig.text(
# x=top_ax.get_position().xmin - 0.05,
# y=0.5,
# s="p-value (with α at 5-sigma, Šidák corrected)",
# ha="center",
# va="center",
# rotation="vertical",
# )
bottom_ax_xmin, bottom_ax_xmax = bottom_ax.get_xlim()
bottom_ax.xaxis.set_major_locator(
FixedLocator(_get_xticks((bottom_ax_xmin, bottom_ax_xmax)))
Expand Down Expand Up @@ -855,7 +866,7 @@ def _custom_label(transform_name):
)
legends.append(top_legend)

__reposition_axes_for_legends(fig, legends)
__reposition_axes_for_legends(fig, legends)

__add_axis_name_annotations(axes_names, top_ax, bottom_ax, fig, paired_axes, ylim, minimap)

Expand Down
Loading
Loading