1
-- $Id: x06a.adb 11680 2011-03-27 17:57:51Z airwin $
3
-- Displays the entire "plpoin" symbol (font) set.
5
-- Copyright (C) 2010 Jerry Bauck
7
-- This file is part of PLplot.
9
-- PLplot is free software; you can redistribute it and/or modify
10
-- it under the terms of the GNU Library General Public License as published
11
-- by the Free Software Foundation; either version 2 of the License, or
12
-- (at your option) any later version.
14
-- PLplot is distributed in the hope that it will be useful,
15
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
16
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
-- GNU Library General Public License for more details.
19
-- You should have received a copy of the GNU Library General Public License
20
-- along with PLplot; if not, write to the Free Software
21
-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27
Ada.Numerics.Long_Elementary_Functions,
34
Ada.Numerics.Long_Elementary_Functions,
43
x, y : Real_Vector(1 .. 1);
46
-- Parse and process command line arguments
47
plparseopts(PL_PARSE_FULL);
52
for Kind_Font in 0 .. 1 loop
60
for font in 0 .. maxfont - 1 loop
64
-- Set up viewport and window
66
plvpor(0.1, 1.0, 0.1, 0.9);
67
plwind(0.0, 1.0, 0.0, 1.3);
69
-- Draw the grid using plbox
70
plbox("bcg", 0.1, 0, "bcg", 0.1, 0);
72
-- Write the digits below the frame
75
plmtex("b", 1.5, (0.1 * Long_Float(i) + 0.05), 0.5, Trim(Integer'image(i), Left));
81
-- Write the digits to the left of the frame
82
plmtex("lv", 1.0, (1.0 - (2.0 * Long_Float(i) + 1.0) / 26.0), 1.0, Trim(Integer'image(10 * i), Left));
84
x(1) := 0.1 * Long_Float(j) + 0.05;
85
y(1) := 1.25 - 0.1 * Long_Float(i);
87
-- Display the symbols (plpoin expects that x and y are arrays so
97
plmtex("t", 1.5, 0.5, 0.5, "PLplot Example 6 - plpoin symbols (compact)");
99
plmtex("t", 1.5, 0.5, 0.5, "PLplot Example 6 - plpoin symbols (extended)");
102
end loop; -- Kind_Font