grdcontour with periodic data affects labeling
|Target version:||Candidate for next bugfix release|
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.
#5 Updated by Paul almost 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.