src/frontend/plotting/plotit.c, allow "plot xlog ylog" (equiv to "plot loglog")
This commit is contained in:
parent
93354e7b73
commit
02fe549be7
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue