Browse Source

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

pre-master-46
Marcel Hendrix 11 years ago
committed by rlar
parent
commit
02fe549be7
  1. 10
      src/frontend/plotting/plotit.c

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

Loading…
Cancel
Save