Skip to content

Commit 60b8900

Browse files
authored
changed default ddG colormap no coverage color to yellow (#360)
* changed default ddG colormap no coverage color to yellow gray color on some screens / projectors looks too much like purple * set missing color to light gray
1 parent fa0f9c7 commit 60b8900

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

pyhdx/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ def __init__(self):
11391139

11401140
self.cmaps = {
11411141
"dG": set_bad(pplt.Colormap(tol_cmap("rainbow_PuRd")).reversed()),
1142-
"ddG": set_bad(tol_cmap("PRGn").reversed()),
1142+
"ddG": set_bad(tol_cmap("PRGn").reversed(), color="#d8d8d8"),
11431143
"rfu": set_bad(pplt.Colormap(cc.cm.gouldian)),
11441144
"drfu": set_bad(pplt.Colormap(cc.cm.diverging_bwr_20_95_c54)), # =CET_D1A
11451145
"d_uptake": set_bad(pplt.Colormap("Dense")),

templates/09_figure_output.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
ddG_scatter_figure,
1313
dG_scatter_figure,
1414
linear_bars_figure,
15-
rainbowclouds_figure,
1615
)
1716
from pyhdx.support import apply_cmap, color_pymol
1817

@@ -48,15 +47,18 @@
4847
pplt.show()
4948

5049
# %%
51-
52-
linear_bars_figure(plot_data)
50+
# %%
51+
linear_bars_figure(dG_df, groupby="fit_ID")
5352
pplt.show()
5453

5554
# %%
5655

57-
rainbowclouds_figure(plot_data)
56+
linear_bars_figure(dG_df, groupby="fit_ID", reference="SecB_tetramer")
5857
pplt.show()
5958

59+
# %%
60+
61+
6062
# %%
6163
protein_states = plot_data.columns.get_level_values(0).unique()
6264
ddG_scatter_figure(plot_data, reference=protein_states[0])

0 commit comments

Comments
 (0)