How to include HTML or PDF in plot
Kristof Koch <[email protected]> Fri, 18 Apr 2014 15:58:00 +0200
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Dear list, the chart I'm plotting requires quite an extensive table of database driven information to be present on the left side of the plot. Currently I'm achieving this with a fair amount of Bash and pslegend magic. It's a bit limited concerning the formatting of the data. For example changing background color of a line is impossible. I thought about generating the table outside of the GMT-suite and insert it via psimage. Unfortunately psimage takes only .ras and .eps as input. The workflow I came up with (non working at the moment) is HTML & CSS > convert with "TCPDF" > PDF > convert with "pdftops" > EPS > plot with psimage I'm sure I'll get in trouble with so much converting and bounding boxes being treated differently in different programs. There must be an easier way but I didn't find it so far. How would you tackle the problem? All the best, Kristof Koch TCPDF: http://www.tcpdf.org/index.php pdftops: http://poppler.freedesktop.org Why pdftops and not pdf2ps: http://stefaanlippens.net/pdf2ps_vs_pdftops Sample of the data driving pslegend: N 2 L 7p 40 L @:6.5p:BGBW@:: L 7p 39 R 112ft / nil N 9 L 7p 39 L N L 7p 39 L 07 L 7p 39 L \040 L 7p 39 L \040 L 7p 39 C 1.8x45 L 7p 39 R \040 L 7p 39 R \040 L 7p 39 R 25 L 7p 39 R - N 2 L 7p 40 L @:6.5p:BGSF@:: L 7p 39 R 165ft / 5-8 N 9 L 7p 39 L L L 7p 39 L 09 L 7p 39 L \040 L 7p 39 L \040 L 7p 39 C 2.8x60 L 7p 39 R \040 L 7p 39 R \040 L 7p 39 R 27 L 7p 39 R C ... Sample crop of current solution: To unsubscribe, send the message "signoff gmt-help" to [email protected] To unsubscribe, send the message "signoff gmt-help" to [email protected]
image.png
(image/png, 248 KB) - not displayed