Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/grdimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,16 @@ EXTERN_MSC int GMT_grdimage(void *V_API, int mode, void *args) {
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);

if (GMT->common.R.active[RSET] && gmt_M_is_geographic(GMT, GMT_IN) && !gmt_M_is_nonlinear_graticule(GMT) && GMT->common.R.wesn[YHI] == 90.0) {
/* Plotting a global pixel-registered grid with a linear/cylindrical (rectangular graticule) projection and a
* north boundary of exactly +90 makes a later gmt_map_setup collapse the y-scale, producing a degenerate plot
* (https://github.com/GenericMappingTools/gmt issue). Nudge the north boundary just below the pole, which is
* what passing -R.../89.999999999999 does and avoids the problem with no visible difference.
*/
GMT->common.R.wesn[YHI] = 90.0 - GMT_CONV12_LIMIT;
GMT_Report(API, GMT_MSG_DEBUG, "Nudged north boundary from 90 to %.12g to avoid degenerate projection scaling\n", GMT->common.R.wesn[YHI]);
}

/*---------------------------- This is the grdimage main code ----------------------------*/

if ((Conf = gmt_M_memory (GMT, NULL, 1, struct GRDIMAGE_CONF)) == NULL) {
Expand Down
Binary file removed test/baseline/psxy/bezier_demo_cubic.ps
Binary file not shown.
Binary file removed test/baseline/psxy/bezier_demo_quadratic.ps
Binary file not shown.
Loading