wangjin2000 commited on
Commit
5bdb740
1 Parent(s): 34d0935

Update plot_pdb.py

Browse files
Files changed (1) hide show
  1. plot_pdb.py +1 -1
plot_pdb.py CHANGED
@@ -6,7 +6,7 @@ def display_pdb_by_pdb(pdb):
6
  # function to display pdb in py3dmol
7
  # ref: https://huggingface.co/spaces/AIGE/A_B
8
 
9
- view = py3Dmol.view(width=500, height=500)
10
  view.addModel(pdb, "pdb")
11
  view.setStyle({'cartoon': {'color': 'spectrum'}})
12
  view.zoomTo()
 
6
  # function to display pdb in py3dmol
7
  # ref: https://huggingface.co/spaces/AIGE/A_B
8
 
9
+ view = py3Dmol.view(width=500, height=500, background=black)
10
  view.addModel(pdb, "pdb")
11
  view.setStyle({'cartoon': {'color': 'spectrum'}})
12
  view.zoomTo()