|
From: Lixus Z. <li...@mu...> - 2014-03-26 19:00:27
|
Hello, I am wondering if it is possible to make gnuplot to output "Content-Type: image/svg+xml" to use gnuplot scripts directly with cgi. E.g. for this #!/usr/bin/gnuplot set terminal svg plot sin(x) I currently have to use a wrapper: #!/bin/bash echo "Content-Type: image/svg+xml" echo $PWD/myplot.gnu But having a wrapper script for each gnuplot script is not ideal. I tried to add this to the gnuplot script: print "Content-Type: image/svg+xml" print "" but then this goes to STDERR instead of STDOUT so next I also added set output "STDOUT" but then only the header is displayed and the svg data is missing. Thanks Lixus |