From: Mark J. <mja...@es...> - 2011-02-24 04:52:54
|
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) mja...@es...<mailto:mja...@es...> |
From: Benjamin R. <ben...@ou...> - 2011-02-24 15:44:42
|
On Wed, Feb 23, 2011 at 10:52 PM, Mark Janikas <mja...@es...> 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 > > 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 |