From 02fe549be762695f65a4689811a1a3e5863f4104 Mon Sep 17 00:00:00 2001 From: Marcel Hendrix Date: Thu, 14 May 2015 15:56:24 +0200 Subject: [PATCH] src/frontend/plotting/plotit.c, allow "plot xlog ylog" (equiv to "plot loglog") --- src/frontend/plotting/plotit.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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;