Hello,

When plotting molecules contained in a dataframe as image, I use 
`PandasTools.FrameToGridImage`.  One of the optional parameters is 
`legendsCol`, which allows me to define a column in the df to be used as legend.

Can this be tweaked to include two columns as legend that would be printed 
below each other like so:

----------------------
|                    |
|                    |
|                    |
|       C=C          |
|                    |
|                    |
|                    |
|                    |
| column 1 contents  |
| column 2 contents  |
----------------------

Passing a list to `legendsCol` results in a RuntimeError: Pre-condition 
Violation
Bad size
Violation occurred on line 656 in file Code/GraphMol/MolDraw2D/MolDraw2D.cpp
Failed Expression: !legends || legends->size() == mols.size()
RDKIT: 2019.03.4
BOOST: 1_67

Thanks
Markus
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to