title: How to highlight the substructure of a molecule with thick red lines in RDKit as SVG (high res)
body: <p>I have the following code:</p>
  <pre><code>from rdkit import Chem
  from rdkit.Chem.Draw import IPythonConsole
  from rdkit.Chem import rdDepictor
  from rdkit.Chem.Draw import rdMolDraw2D
  from IPython.display import SVG
  
  
  m = Chem.MolFromSmiles('c1cc(C(=O)O)c(OC(=O)C)cc1')
  substructure = Chem.MolFromSmarts('C(=O)O')
  print(m.GetSubstructMatches(substructure))
  m
  </code></pre>
  <p>Which produces the following plot.</p>
  <p><a href="https://i.stack.imgur.com/0z78t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0z78t.png" alt="enter image description here" /></a></p>
  <p>However the code above doesn't produce the high resolution image.
  I'd like to have the SVG.
  I tried this:</p>
  <pre><code>drawer = rdMolDraw2D.MolDraw2DSVG(400,200)
  drawer.DrawMolecule(m,highlightAtoms=m.GetSubstructMatch(Chem.MolFromSmarts('C(=O)O')))
  drawer.FinishDrawing()
  svg = drawer.GetDrawingText().replace('svg:','')
  SVG(svg)
  </code></pre>
  <p>But I get:</p>
  <p><a href="https://i.stack.imgur.com/BkSdn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BkSdn.png" alt="enter image description here" /></a></p>
  <p>What's the right way to do it?</p>
  <p>The code can be tested in my <a href="https://colab.research.google.com/drive/11_rlM-_50fXnyUVUM3uq-tSt_0pBXsIh?usp=sharing" rel="nofollow noreferrer"><strong>Google Colab</strong></a>.</p>