Bug #536

grdcontour with periodic data affects labeling

Added by Paul over 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:2014-04-08
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:5.x-svn Platform:


With -Zp, grdcontour can draw maps of phase data, i.e., angular data which are periodic in 360. While using -Zp lets grdcontour understand that the 0 and 360 contour is the same contour, it causes standard contour labels to disappear (upper plot). Also, in this example the -180 (or +180) contour is not drawn. Without -Zp we get of course lots of contours between -180 and 180 but annotations work correctly (lower plot). The script bug.sh shows the problem.

bug.sh Magnifier - Script that shows the problem (237 Bytes) Paul, 2014-04-08 18:39

bug.pdf - The resulting PDF plot (42.9 KB) Paul, 2014-04-08 18:40


#1 Updated by Paul over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

The missing 180 contour now works, in r13053. The labeling is still an issue.

#2 Updated by Paul about 7 years ago

I have added a new test script (test/grdcontour/periodic.sh) that demonstrates the issue so we won't forget. In 13338.

#3 Updated by Paul over 6 years ago

Think I forgot to update this issue to state that the missing -180/+180 meridian in the -Zp case now plots. However, the annotations are still missing.

#4 Updated by Paul over 6 years ago

Also forgot to state that this problem was added to our test suite a while ago (test/grdcontour/periodic.sh) so it is there to remind us until fixed.

#5 Updated by Paul over 6 years ago

  • Status changed from In Progress to Resolved

Found that when -Zp is used the contour lines are obtained a bit differently so their lengths in inches differ from the non-Zp version. So missing annotations with the implicit -Gd option was affected by different lengths. Using -Gl instead avoids line lengths and shows the annotation machinery works fine. I have updated the periodic.sh script and it now passes - we leave it there as part of our suite, obviously. So this issue is resolved.

#6 Updated by Paul over 6 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

I am closing this issue.

Also available in: Atom PDF