Skip to content

Commit b8baea6

Browse files
author
Meghan Jones
authored
Set maximum annotation interval to 60 for some projections (#4987)
* Set max auto intervals at 60 for misc projections * Update PS files
1 parent 7976fd7 commit b8baea6

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

doc/examples/ex01/ex01.ps

3.52 KB
Binary file not shown.

doc/examples/ex36/ex36.ps

3.36 KB
Binary file not shown.

src/gmt_map.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6782,7 +6782,11 @@ void gmt_auto_frame_interval (struct GMT_CTRL *GMT, unsigned int axis, unsigned
67826782
}
67836783
if (n) {
67846784
while (i < n && maj[i] < d) i++; /* Wind up to largest reasonable interval */
6785-
d = maj[i] * p, f = sub[i] * p; /* Scale up intervals in multiple of unit */
6785+
if ((GMT->current.proj.projection == GMT_MOLLWEIDE || GMT->current.proj.projection == GMT_HAMMER || \
6786+
GMT->current.proj.projection == GMT_ECKERT4) && i == 6) /* Rounded misc. projections */
6787+
d = maj[i-1] * p; /* Annotation interval needs to be less than 90 */
6788+
else d = maj[i] * p; /* Scale up intervals in multiple of unit */
6789+
f = sub[i] * p;
67866790
}
67876791
if (is_time) { /* Last check to change a 12 month unit to 1 year and 24 hours to 1 day */
67886792
if (unit == 'O' && d == 12.0) d = 1.0, f /= 12.0, unit = 'Y';

test/psxy/repeat2.ps

7.55 KB
Binary file not shown.

0 commit comments

Comments
 (0)