@@ -28,9 +28,9 @@ import molhighlighter as mh
28
28
mol = Chem.MolFromSmiles(" C1=CC(=CC=C1N=NC2=CC=C(C=C2)Br)O" )
29
29
30
30
highlights = [
31
- mh.Highlight.from_smarts (mol, " c1ccccc1Br" , fill_ring = True ),
32
- mh.Highlight.from_smarts (mol, " N=N" ),
33
- mh.Highlight.from_smarts (mol, " c1ccccc1O" , fill_ring = True ),
31
+ mh.Smarts (mol, " c1ccccc1Br" , fill_ring = True ),
32
+ mh.Smarts (mol, " N=N" ),
33
+ mh.Smarts (mol, " c1ccccc1O" , fill_ring = True ),
34
34
]
35
35
mh.MolHighlighter(mol, highlights)
36
36
```
@@ -45,9 +45,9 @@ mol = Chem.MolFromSmiles("C1=CC(=CC=C1N=NC2=CC=C(C=C2)Br)O")
45
45
name = " 4-[(4-bromophenyl)diazenyl]phenol"
46
46
47
47
highlights = [
48
- mh.Highlight.from_smarts (mol, " c1ccccc1Br" , " bromophenyl" , fill_ring = True ),
49
- mh.Highlight.from_smarts (mol, " N=N" , " diazenyl" ),
50
- mh.Highlight.from_smarts (mol, " c1ccccc1O" , " phenol" , fill_ring = True ),
48
+ mh.Smarts (mol, " c1ccccc1Br" , " bromophenyl" , fill_ring = True ),
49
+ mh.Smarts (mol, " N=N" , " diazenyl" ),
50
+ mh.Smarts (mol, " c1ccccc1O" , " phenol" , fill_ring = True ),
51
51
]
52
52
mh.MolHighlighter(mol, highlights, label = name)
53
53
```
0 commit comments