Hello All,
Is there a way to add HTML links into output graphics?
In short, I would like to use something like the PLT.text command and have it
link to an html page. The url arg doesn’t seem to be what I am looking
for.
My final output medium is PDF… so I am using:
from matplotlib.backends.backend_pdf import PdfPages as PDF
import matplotlib.pyplot as PLT
pdfOutput = PDF(fileName)
PLT.text(“Some Text to Link”, url = “http:…”)
…
…
PLT.savefig(pdfOutput, format=‘pdf’)
PLT.clf()
Thanks so much for any advise!
MJ
Mark
Janikas
Product
Developer
ESRI,
Geoprocessing
380
New York St.
Redlands,
CA 92373
909-793-2853
(2563)
mjanikas@…3375…
Looks like the url string is only used for SVG files. If you could, please file a feature request to have it added to the pdf backend:
https://sourceforge.net/tracker/?group_id=80706
Ben Root
···
On Wed, Feb 23, 2011 at 10:52 PM, Mark Janikas <mjanikas@…3451…5…> wrote:
Hello All,
Is there a way to add HTML links into output graphics?
In short, I would like to use something like the PLT.text command and have it
link to an html page. The url arg doesn’t seem to be what I am looking
for.
My final output medium is PDF… so I am using:
from matplotlib.backends.backend_pdf import PdfPages as PDF
import matplotlib.pyplot as PLT
pdfOutput = PDF(fileName)
PLT.text(“Some Text to Link”, url = “http:…”)
…
…
PLT.savefig(pdfOutput, format=‘pdf’)
PLT.clf()
Thanks so much for any advise!
MJ