From 2570a5f5068cb5ee77ac919f4434d9f9d2ea0e6c Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Mon, 14 Oct 2024 14:58:22 +0200 Subject: [PATCH] changed default ddG colormap no coverage color to yellow gray color on some screens / projectors looks too much like purple --- pyhdx/plot.py | 2 +- templates/09_figure_output.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pyhdx/plot.py b/pyhdx/plot.py index bcb07b16..5f1850a5 100644 --- a/pyhdx/plot.py +++ b/pyhdx/plot.py @@ -1139,7 +1139,7 @@ def __init__(self): self.cmaps = { "dG": set_bad(pplt.Colormap(tol_cmap("rainbow_PuRd")).reversed()), - "ddG": set_bad(tol_cmap("PRGn").reversed()), + "ddG": set_bad(tol_cmap("PRGn").reversed(), color="#FFEE99"), "rfu": set_bad(pplt.Colormap(cc.cm.gouldian)), "drfu": set_bad(pplt.Colormap(cc.cm.diverging_bwr_20_95_c54)), # =CET_D1A "d_uptake": set_bad(pplt.Colormap("Dense")), diff --git a/templates/09_figure_output.py b/templates/09_figure_output.py index dbafffaf..6587ec8f 100644 --- a/templates/09_figure_output.py +++ b/templates/09_figure_output.py @@ -12,7 +12,6 @@ ddG_scatter_figure, dG_scatter_figure, linear_bars_figure, - rainbowclouds_figure, ) from pyhdx.support import apply_cmap, color_pymol @@ -48,15 +47,18 @@ pplt.show() # %% - -linear_bars_figure(plot_data) +# %% +linear_bars_figure(dG_df, groupby="fit_ID") pplt.show() # %% -rainbowclouds_figure(plot_data) +linear_bars_figure(dG_df, groupby="fit_ID", reference="SecB_tetramer") pplt.show() +# %% + + # %% protein_states = plot_data.columns.get_level_values(0).unique() ddG_scatter_figure(plot_data, reference=protein_states[0])