1Template::Plugin::GD::GUrsaeprh:C:omnitxreidb(u3t)ed PerTlemDpolcautmee:n:tPaltuigoinn::GD::Graph::mixed(3)
2
3
4
6 Template::Plugin::GD::Graph::mixed - Create mixed graphs with axes and
7 legends
8
10 [% USE g = GD.Graph.mixed(x_size, y_size); %]
11
13 [% FILTER null;
14 data = [
15 ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
16 [ 1, 2, 5, 6, 3, 1.5, -1, -3, -4],
17 [ -4, -3, 1, 1, -3, -1.5, -2, -1, 0],
18 [ 9, 8, 9, 8.4, 7.1, 7.5, 8, 3, -3],
19 [ 0.1, 0.2, 0.5, 0.4, 0.3, 0.5, 0.1, 0, 0.4],
20 [ -0.1, 2, 5, 4, -3, 2.5, 3.2, 4, -4],
21 ];
22
23 USE my_graph = GD.Graph.mixed();
24
25 my_graph.set(
26 types => ['lines', 'lines', 'points', 'area', 'linespoints'],
27 default_type => 'points',
28 );
29
30 my_graph.set(
31
32 x_label => 'X Label',
33 y_label => 'Y label',
34 title => 'A Mixed Type Graph',
35
36 y_max_value => 10,
37 y_min_value => -5,
38 y_tick_number => 3,
39 y_label_skip => 0,
40 x_plot_values => 0,
41 y_plot_values => 0,
42
43 long_ticks => 1,
44 x_ticks => 0,
45
46 legend_marker_width => 24,
47 line_width => 3,
48 marker_size => 5,
49
50 bar_spacing => 8,
51
52 transparent => 0,
53 );
54
55 my_graph.set_legend('one', 'two', 'three', 'four', 'five', 'six');
56 my_graph.plot(data).png | stdout(1);
57 END;
58 -%]
59
61 The GD.Graph.mixed plugin provides an interface to the GD::Graph::mixed
62 class defined by the GD::Graph module. It allows one or more (x,y) data
63 sets to be plotted with various styles (lines, points, bars, areas
64 etc).
65
66 See GD::Graph for more details.
67
69 Thomas Boutell wrote the GD graphics library.
70
71 Lincoln D. Stein wrote the Perl GD modules that interface to it.
72
73 Martien Verbruggen wrote the GD::Graph module.
74
75 Craig Barratt <craig@arraycomm.com> wrote the original GD plugins for
76 the Template Toolkit (2001).
77
78 Andy Wardley <abw@cpan.org> extracted them from the TT core into a
79 separate distribution for TT version 2.15.
80
82 Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy
83 Wardley <abw@cpan.org>.
84
85 GD::Graph is copyright 1999 Martien Verbruggen.
86
87 This module is free software; you can redistribute it and/or modify it
88 under the same terms as Perl itself.
89
91 Template::Plugin::GD, Template::Plugin::GD::Graph::lines,
92 Template::Plugin::GD::Graph::lines3d,
93 Template::Plugin::GD::Graph::bars, Template::Plugin::GD::Graph::bars3d,
94 Template::Plugin::GD::Graph::points,
95 Template::Plugin::GD::Graph::linespoints,
96 Template::Plugin::GD::Graph::area, Template::Plugin::GD::Graph::pie,
97 Template::Plugin::GD::Graph::pie3d, GD
98
99
100
101perl v5.28.1 2006-02-T0e3mplate::Plugin::GD::Graph::mixed(3)