Skip to content

Commit 0f64e64

Browse files
HaraldJoergmohawk2
authored andcommitted
Documentation: Add some links
In PGP::Simple, point to the description of pgrid::Matrix. Also point to the examples directory which has ready-to-run examples.
1 parent 7222b49 commit 0f64e64

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- doc improvements (#54) - thanks @HaraldJoerg
2+
13
0.21 2024-04-22
24
- demo now only loads Prima when run, reducing perldl problems
35

lib/PDL/Graphics/Prima/PlotType.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,8 @@ you should use pimage::Basic instead.
16261626
The x- and y-bounds of your Grid are taken from the dataset x- and y-bounds,
16271627
so look into L<PDL::Graphics::Prima::DataSet> for details.
16281628
1629-
working here - expand, give an example
1629+
The F<examples> directory in this distribution demonstrates the usage,
1630+
e.g. in F<examples/intensity-plot.pl>.
16301631
16311632
=cut
16321633

lib/PDL/Graphics/Prima/Simple.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ is used.
162162
163163
Both L</matrix_plot> and L</imag_plot> take one or
164164
three arguments, the first two of which specify the x-bounds and the
165-
y-bounds, the third (or only) of which is the matrix to plot
165+
y-bounds, the third (or only) of which is the 2D ndarray to plot.
166166
167167
=item plot (...)
168168
@@ -1053,11 +1053,14 @@ and its equivalent L<plot|/"PLOT FUNCTION"> commands are:
10531053
plotType => pgrid::Matrix,
10541054
));
10551055
1056+
See L<PDL::Graphics::Prima::PlotType/pgrid::Matrix> for how to specify
1057+
the colors, and F<examples/intensity-plot.pl> for a complete example.
1058+
10561059
Specifying edges looks like this:
10571060
10581061
matrix_plot ([0 => 5], [1 => 10], $matrix);
10591062
1060-
and the quivalent is:
1063+
and the equivalent is:
10611064
10621065
plot(-image => ds::Grid(
10631066
$matrix,

0 commit comments

Comments
 (0)