[Graph-dev] Error in Chart::Graph::Gnuplot docs

Torsten Seemann Torsten Seemann <torsten@csse.monash.edu.au>
Thu, 19 Sep 2002 13:11:34 +1000


# (my comments are marked with #)
# (The man page for Chart::Graph::Gnuplot)

         use Chart::Graph::Gnuplot qw(gnuplot);

         gnuplot({"title" => "foo",
                  "x2-axis label" => "bar",
                  "logscale x2" => "1",
                  "logscale y" => "1",
                  "output type" => "png",
                  "output file" => "gnuplot1.png",
                  "xtics" => [ ["small\\nfoo", 10], ["medium\\nfoo", 20],
			["large\\nfoo", 30] ],
                  "ytics" => [10,20,30,40,50]},

# the } on the previous line is too early?
# as the main options are not over yet

                  "xdata" => "time",
                  "format" => ["x", "%m/%d"],
                  "timefmt"=> $date_format,
                  "extra_opts" => "set key left top Left",

# i think it should go here instead 

                 [{"title" => "data1",
                   "type" => "matrix"}, [[1, 10],


--Torsten

_______________________________________________________________________
Torsten Seemann  mailto:torsten@csse.monash.edu.au  tel: +61 3 99059010
Victorian Bioinformatics Consortium    http://www.vicbioinformatics.com