Hi Chris,

The trick here is to know that the first element of the tuple that the
similarity map functions return is a matplotlib Figure object. you can use
all the methods available for that to add annotations or additional
information. The easiest way to add a compound ID would be using the figure
title, which you can set via:
fig.axes[0].set_title()
Here's a gist demonstrating this;
https://gist.github.com/greglandrum/3fab9a5de996d84e7b052966251074e8

-greg

On Sat, Jun 9, 2018 at 7:23 PM Chris Swain <[email protected]> wrote:

> Hi,
>
> I’m using Similarity Maps to map a property onto a molecule and then
> display as a contour map and export as an image.
>
> This all works fine but is it possible to annotate the image the the
> molecule ID (molID)
>
> Cheers,
>
> Chris
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Rdkit-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to