Skip to content

Commit 79dd3f8

Browse files
committed
Use the add_point method instead of the add_stamp method in the SimpleGraph.pl macro.
1 parent c1c0cc7 commit 79dd3f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

macros/math/SimpleGraph.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ sub image {
793793

794794
for my $i (0 .. $self->lastVertexIndex) {
795795
my $iVertex = [ cos($i * $gap), sin($i * $gap) ];
796-
$plot->add_stamp(@$iVertex, color => 'blue');
796+
$plot->add_point(@$iVertex, color => 'blue', mark_size => 3);
797797

798798
$plot->add_label(
799799
1.25 * $iVertex->[0], 1.25 * $iVertex->[1],
@@ -865,7 +865,7 @@ sub gridLayoutImage {
865865
for my $j (0 .. $self->{gridLayout}[1] - 1) {
866866
my $x = $gridGap * $j;
867867
my $y = $gridGap * ($self->{gridLayout}[0] - $i - 1);
868-
$plot->add_stamp($x, $y, color => 'blue');
868+
$plot->add_point($x, $y, color => 'blue', mark_size => 3);
869869
$plot->add_label(
870870
$x - $labelShift, $y + 2 * $labelShift,
871871
label => "\\\\($self->{labels}[$i + $self->{gridLayout}[0] * $j]\\\\)",
@@ -967,7 +967,7 @@ sub bipartiteLayoutImage {
967967
);
968968

969969
for my $i (0 .. $#$top) {
970-
$plot->add_stamp($i * $width + $shift[0], $high, color => 'blue');
970+
$plot->add_point($i * $width + $shift[0], $high, color => 'blue', mark_size => 3);
971971
$plot->add_label(
972972
$i * $width + $shift[0], $high + 2 / 3,
973973
label => "\\\\($self->{labels}[$top->[$i]]\\\\)",
@@ -977,7 +977,7 @@ sub bipartiteLayoutImage {
977977
) if $graphOptions{showLabels};
978978
}
979979
for my $j (0 .. $#$bottom) {
980-
$plot->add_stamp($j * $width + $shift[1], $low, color => 'blue');
980+
$plot->add_point($j * $width + $shift[1], $low, color => 'blue', mark_size => 3);
981981
$plot->add_label(
982982
$j * $width + $shift[1], $low - 2 / 3,
983983
label => "\\\\($self->{labels}[$bottom->[$j]]\\\\)",
@@ -1037,7 +1037,7 @@ sub wheelLayoutImage {
10371037

10381038
my $gap = 2 * $main::PI / ($self->lastVertexIndex || 1);
10391039

1040-
$plot->add_stamp(0, 0, color => 'blue');
1040+
$plot->add_point(0, 0, color => 'blue', mark_size => 3);
10411041
$plot->add_label(
10421042
0.1, 0.2,
10431043
label => "\\\\($self->{labels}[ $self->{wheelLayout} ]\\\\)",
@@ -1052,7 +1052,7 @@ sub wheelLayoutImage {
10521052
my $iRel = $i > $self->{wheelLayout} ? $i - 1 : $i;
10531053

10541054
my $iVertex = [ cos($iRel * $gap), sin($iRel * $gap) ];
1055-
$plot->add_stamp(@$iVertex, color => 'blue');
1055+
$plot->add_point(@$iVertex, color => 'blue', mark_size => 3);
10561056

10571057
$plot->add_label(
10581058
1.25 * $iVertex->[0], 1.25 * $iVertex->[1],

0 commit comments

Comments
 (0)