If you build gnuplot without interactive graphical terminals (x11, qt, wxt, etc.) then gnuplot defaults to the 'unknown' terminal. By design this terminal does nothing and produces no output. This looks mysterious to a user who doesn't know they are using this terminal. The attached patch prints a message if you try to make plots using this 'unknown' terminal.
I do plot to 'unknown' terminal on purporose. How to supress this warning in a script?
The warning is printed to stderr, so I suppose you could redirect stderr.
But why would you want to do this?
Maybe there is a better way.
I use 'unknown' because I want get ranges of axis before actual ploting.
Ugh. That seems like a terrible hack to me. Use of the "unknown" state for any purpose is undocumented and unsupported.
The suggestion in that StackOverflow thread to use the "stats" command instead of a dummy plot seems much better to me.
Best of all might be to plot once using the real current terminal, then reset the axis ranges and plot again. I realize you asked about a use inside a multiplot. In that context you would need to back up one plot position using the "previous" keyword so that the 2nd version of the plot replaces the first one. Conceptually like this:
As noted on the StackOverflow thread, you can wrap all the identically repeated commands in a string and then invoke it either as a macro or via eval(commandstring).