Hi Johannes,<br><br>I fear that this is - again - an indicator that the tex4ht driver of pgf does not support the full power of pgf. Especially the pgf code generated by pgfplots appears to be a problem.<br><br>Alas, I although I have interest in fixing this issue, I do not have resources left on my own. And, judging from experience, Till Tantau might not have more.<br>
<br>Judging from the hard work which was required to get your figures correctly to SVG, I think we should assume that a reliable use of pgfplots in conjunction with tex4ht output is currently hindered by a bunch of issues. I would flag it as "experimental". If I had time, I would invite you to Rheinbach to improve things - my knowledge of pgfplots, tikz, and pgf combined with your SVG experience might be something. But my resources are already fully consumed by the ongoing "core" development of pgfplots. Thus, I would advise you to stick to other tools if you need reliable SVG output. <br>
<br>Best regards<br><br>Christian<br><br>PS<br>My computer is broken currently, so I cannot look into the pgfplots git history. But I believe that I had a very similar issue in the past - something with two figures. And I believe I found some sort of fix for it... or at least a work-around. Once my system is more stable, I might be able to look into it.<br>
<br><div class="gmail_quote">2011/7/27 Johannes Wilm <span dir="ltr"><<a href="mailto:mail@johanneswilm.org">mail@johanneswilm.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi again,<div>sorry for cross-posting. I am not quite sure whether this falls into the expertise of one or the other group.</div><div><br></div><div>The attached is a test case of a document which includes a graph I've created with pgfplots and then converted to html using tex4ht. I fixed the SVG-output with the script I recently mailed around.</div>

<div><br></div><div>The problem is this: There is only one graph. Yet for some reason 2 SVG files are created. The second SVG-file seems to just be empty, whereas the first one includes the graph. For some reason the HTML-code that is being output only includes the second, empty, SVG-file.</div>

<div><br></div><div>This is what I ran:</div><div><br></div><div><i>dvilualatex test.tex<br clear="all">dvilualatex test.tex</i></div><div><i>dvilualatex test.tex</i></div>
<div><i>tex4ht -f/test.tex</i></div><div><i>t4ht -f/test.tex</i></div><div><i>fix_svg_legend.py test-1.svg</i></div><div><i>fix_svg_legend.py test-2.svg</i></div><div><br></div><div>Obviously I could make a script that simply exchanges all occurrences of "test-2" with "test-1" and so on. But strangely, when the legend is in a separate svg, the legend works fine, so the numbering wouldn't work out that way.</div>

<div><br></div><div>I believe this is my very last issue with the whole setup. So if it cannot be resolved, I'll spend another day on a quick fix rather than trying to switch tools as some have recommended I do.</div>

<div><br></div><div>Sincerely,</div><div><br>-- <br>Johannes Wilm<br><a href="http://www.johanneswilm.org" target="_blank">http://www.johanneswilm.org</a><br>tel: +1 (520) 399 8880<br><div style="display: inline;"></div>
<br>

</div>
<br>------------------------------------------------------------------------------<br>
Got Input?   Slashdot Needs You.<br>
Take our quick survey online.  Come on, we don't ask for help often.<br>
Plus, you'll get a chance to win $100 to spend on ThinkGeek.<br>
<a href="http://p.sf.net/sfu/slashdot-survey" target="_blank">http://p.sf.net/sfu/slashdot-survey</a><br>_______________________________________________<br>
Pgfplots-features mailing list<br>
<a href="mailto:Pgfplots-features@lists.sourceforge.net">Pgfplots-features@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/pgfplots-features" target="_blank">https://lists.sourceforge.net/lists/listinfo/pgfplots-features</a><br>
<br></blockquote></div><br>