src/frontend/plotting/plotit.c, allow "plot xlog ylog" (equiv to "plot loglog")

This commit is contained in:
Marcel Hendrix 2015-05-14 15:56:24 +02:00 committed by rlar
parent 93354e7b73
commit 02fe549be7
1 changed files with 8 additions and 2 deletions

View File

@ -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;