diff --git a/src/frontend/plotting/plotit.c b/src/frontend/plotting/plotit.c index a6ead9536..66d21c41b 100644 --- a/src/frontend/plotting/plotit.c +++ b/src/frontend/plotting/plotit.c @@ -385,7 +385,10 @@ plotit(wordlist *wl, char *hcopy, char *devname) } if (getflag(wl, "xlog")) { if (gfound) { - fprintf(cp_err, "Warning: too many grid types given\n"); + if (gtype == GRID_YLOG) + gtype = GRID_LOGLOG; + else + fprintf(cp_err, "Warning: too many grid types given\n"); } else { gtype = GRID_XLOG; gfound = TRUE; @@ -393,7 +396,10 @@ plotit(wordlist *wl, char *hcopy, char *devname) } if (getflag(wl, "ylog")) { if (gfound) { - fprintf(cp_err, "Warning: too many grid types given\n"); + if (gtype == GRID_XLOG) + gtype = GRID_LOGLOG; + else + fprintf(cp_err, "Warning: too many grid types given\n"); } else { gtype = GRID_YLOG; gfound = TRUE;