Types::PGPLOT - Type::Tiny compatible types for the PGPLOT library
version 0.02
use Types::PGPLOT -types; use Type::Params qw( validate ); my ( $lstyle ) = validate( [ 'full' ], LineStyle );
Types::PGPLOT provides Type::Tiny types for constants used by the PGPLOT library.
A real number in [-360,360].
An integer in [1,2].
Coercions are provided for Str types with one of the following values:
filled solid outline
A positive real number.
An integer in [0,255].
background foreground black magenta blue-magenta white yellow red-magenta red orange dark-gray green green-yellow light-gray blue green-cyan darkgray cyan blue-cyan lightgray
An integer in [1,4].
solid filled outline hatched cross-hatched
normal roman italic script
An integer in [1,5].
full dashed dot-dash-dot-dash dotted dash-dot-dot-dot
An integer in [1,201].
An integer in [0,4].
ndc normalized-device-coordinates in inches mm millimeters pixels wc world-coordinates
An integer in [-31,255]
Coercions are provided for string or references to strings with one of the following values:
doicosagon dodecagon triangle henicosagon hendecagon dot0 icosagon decagon dot1 enneadecagon nonagon opensquare octadecagon enneagon dot heptadecagon octagon plus hexadecagon heptagon asterisk pentaadecagon hexagon opencircle tetradecagon pentagon cross tridecagon diamond x opensquare1 stardavid opencirc4 opentriangle square opencirc5 earth circle opencirc6 sun star opencirc7 curvesquare bigosquare backarrow opendiamond opencirc0 fwdarrow openstar opencirc1 uparrow triangle1 opencirc2 downarrow openplus opencirc3
as well as characters with unicode/ascii codes in [32, 127].
Because Perl well treat digits stored as strings as numbers rather than strings, the characters 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 will get treated as integers, not characters, so the resultant symbols will not be the expected characters. To ensure that a character is treated as a character, pass a reference to it. This will bypass the automatic conversion to integer.
0
1
2
3
4
5
6
7
8
9
A string containing any of the characters in ABCGILNPMTS12, where no character repeats.
ABCGILNPMTS12
A string containing any of the characters in ABCGILNPMTSV12, where no character repeats.
ABCGILNPMTSV12
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Types-PGPLOT or by email to bug-Types-PGPLOT@rt.cpan.org.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
The development version is on github at https://github.com/djerius/types-pgplot and may be cloned from git://github.com/djerius/types-pgplot.git
Diab Jerius <djerius@cpan.org>
This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Types::PGPLOT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Types::PGPLOT
CPAN shell
perl -MCPAN -e shell install Types::PGPLOT
For more information on module installation, please visit the detailed CPAN module installation guide.