[Graph-dev] Changing Font Size / Orientation on Time / X axis

Brock Murch bmurch at marine.usf.edu
Mon Mar 7 12:07:11 PST 2005


Lo all:
	I have been trying without success to change the font size on the x axis. I 
provide an online time series tool and produce a graph in perl with use 
Chart::Graph::Gnuplot qw(&gnuplot). When I do a long time series, however, 
the dates get cluttered and write over each other. Is there a way to change 
the font / orientation of the labels on the x?

I have tried this:
my $options = {	"title" => "SST Time Series",
		"x-axis label" => "Day and Month",
		"y-axis label" => "Degrees C $opt_lat Lat $opt_lon Lon",
		"output type" => "png",
		"output file" => "$png_out_file",
		"xdata" => "time",
		"timefmt" => "%Y/%m/%d",
		#"format" => ["x", "%d/%m"],
		#"xrange" => "[\"2004/01/31\":\"2004/02/16\"]",
		"extra_opts" => join("\n", "set size 2.5, 2.5", "set timestamp", "set 
autoscale x", 'set xlabel "Day and Month" font "Helvetica,5"' ),
            };
m

-- 
Brock Murch
Managing Director
Institute for Marine Remote Sensing 
University of South Florida 
140 7th Ave South  
St. Petersburg, FL 33701 
http://imars.usf.edu/
(727) 553-1186




More information about the Graph-dev mailing list