Skip to content

Commit

Permalink
changed default ddG colormap no coverage color to yellow
Browse files Browse the repository at this point in the history
gray color on some screens / projectors looks too much like purple
  • Loading branch information
Jhsmit committed Oct 14, 2024
1 parent 40ff584 commit 2570a5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyhdx/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down
10 changes: 6 additions & 4 deletions templates/09_figure_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ddG_scatter_figure,
dG_scatter_figure,
linear_bars_figure,
rainbowclouds_figure,
)
from pyhdx.support import apply_cmap, color_pymol

Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 2570a5f

Please sign in to comment.