Skip to content Skip to sidebar Skip to footer

Is It Possible (how) To Add A Spot Color To Pdf From Matplotlib?

I am creating a chart which has to use (multiple) spot colors. This color could be one that is neither accessible from RGB nor CMYK. Is there a possibility to specify a spot color

Solution 1:

I was looking for something like this recently, I don't know if you managed to find it, but ReportLab has a method that is PCMYKColorSep.

So you could integrate the graph from matplotlib within a reportlab canvas, and add as many color separations as you see fitting.

The example above doesn't actually integrate with matplotlib, but it does add the spot

c = Canvas('test.pdf', (420, 200))
language_spot = PCMYKColorSep(0.0, 100.0, 91.0, 0.0, spotName='LanguageSpot', density=100)
c.setFillColor(language_spot)
c.rect(300, 75, 100, 100, fill=True, stroke=False)
c.save()

Post a Comment for "Is It Possible (how) To Add A Spot Color To Pdf From Matplotlib?"