Re: New warning about inline data and multiplots
Ethan A Merritt <[email protected]> Wed, 3 Dec 2025 13:57:34 -0800
| Newsgroups | gmane.comp.graphics.gnuplot.devel |
|---|---|
| Message-ID | <CALUAmEtOnf5M63BBiSkcm5kMEBT=Xpn1QkmdHv_YJE3Pg1ckAA@mail.gmail.com> |
--===============3091065995573630871== Content-Type: multipart/alternative; boundary="0000000000003488140645134fb9" --0000000000003488140645134fb9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 3, 2025 at 9:02=E2=80=AFAM Dima Kogan <[email protected]= .net> wrote: > > I just ran the gnuplotlib unit test, and I see lots of warnings with one > of the tests. The plots are still made, but there's A LOT of console > chatter now: > > "/tmp/tst.gp" line 17: warning: Reading from '-' inside a multiplot not > supported; use a datablock instead > "/tmp/tst.gp" line 18: warning: Reading from '-' inside a multiplot not > supported; use a datablock instead > "/tmp/tst.gp" line 19: warning: Reading from '-' inside a multiplot not > supported; use a datablock instead > "/tmp/tst.gp" line 20: warning: Reading from '-' inside a multiplot not > supported; use a datablock instead > "/tmp/tst.gp" line 21: warning: Reading from '-' inside a multiplot not > supported; use a datablock instead > > This keeps repeating many times. The resulting gnuplot script is attached. It clearly shows the warnings. > > What isn't supported here? Exactly what it says. The current (since version 6.0) implementation of multiplot does not support placing inline data inside a multiplot block. This is because the full set of commands inside `set multiplot .... unset multiplot` is saved for replay during mousing or by a replot command, and inline data would mess that up badly. > I've been doing this for years with great > success, and it appears to still work today. It does not work today. What you see is the first execution, with a warning, while it is reading in the multiplot block. But it does not become part of the multiplot and the program fails to exit the block cleanly. > Should I be doing something different? Yes. $DATA << EOD line 1 line 2 ... line N EOD set multiplot plot $DATA with lp unset multiplot I use gnuplot constantly, every day. But 99% of my usage is > either through feedgnuplot or gnuplotlib, both of which use inline data. > Should those tools be using a datablock? Can they? > For use with gnuplot version 6 they should. The output script, as attached, was also incorrect in that it did not contain an "unset multiplot" command. For that matter, I don't think the script should be using multiplot at all. Why is it using multiplot? There was nothing in the input you showed that requested multiplot. If "set multiplot" appears in the output gnuplot script I think that must be a bug in the program that generated the script. Ethan --0000000000003488140645134fb9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g= mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Dec 3, = 2025 at 9:02=E2=80=AFAM Dima Kogan <<a href=3D"mailto:[email protected]= tsauce.net">[email protected]</a>> wrote:<br></div><blockquot= e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s= olid rgb(204,204,204);padding-left:1ex"><br> I just ran the gnuplotlib unit test, and I see lots of warnings with one<br= > of the tests. The plots are still made, but there's A LOT of console<br= > chatter now:<br> <br> =C2=A0 "/tmp/<a href=3D"http://tst.gp" rel=3D"noreferrer" target=3D"_b= lank">tst.gp</a>" line 17: warning: Reading from '-' inside a = multiplot not supported; use a datablock instead<br> =C2=A0 "/tmp/<a href=3D"http://tst.gp" rel=3D"noreferrer" target=3D"_b= lank">tst.gp</a>" line 18: warning: Reading from '-' inside a = multiplot not supported; use a datablock instead<br> =C2=A0 "/tmp/<a href=3D"http://tst.gp" rel=3D"noreferrer" target=3D"_b= lank">tst.gp</a>" line 19: warning: Reading from '-' inside a = multiplot not supported; use a datablock instead<br> =C2=A0 "/tmp/<a href=3D"http://tst.gp" rel=3D"noreferrer" target=3D"_b= lank">tst.gp</a>" line 20: warning: Reading from '-' inside a = multiplot not supported; use a datablock instead<br> =C2=A0 "/tmp/<a href=3D"http://tst.gp" rel=3D"noreferrer" target=3D"_b= lank">tst.gp</a>" line 21: warning: Reading from '-' inside a = multiplot not supported; use a datablock instead<br> <br> This keeps repeating many times.</blockquote><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex">The resulting gnuplot script is attached. It clearly sh= ows the warnings.<br> <br> What isn't supported here? </blockquote><div><br></div><div>Exactly wha= t it says.=C2=A0 The current (since version 6.0) implementation of multiplo= t does not support placing inline data inside a multiplot block.=C2=A0 This= is because the full set of commands inside `set multiplot .... unset multi= plot` is saved for replay during mousing or by a replot command, and inline= data would mess that up badly.</div><div>=C2=A0</div><blockquote class=3D"= gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex">I've been doing this for years with great<= br> success, and it appears to still work today. </blockquote><div><br></div><d= iv>It does not work today.=C2=A0 What you see is the first execution, with = a warning, while it is reading in the multiplot block. But it does not beco= me part of the multiplot and the program fails to exit the block cleanly.</= div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Shou= ld I be doing something different?</blockquote><div>Yes.=C2=A0</div></div><= blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><div class= =3D"gmail_quote gmail_quote_container"><div>$DATA << EOD</div></div><= div class=3D"gmail_quote gmail_quote_container"><div>line 1</div></div><div= class=3D"gmail_quote gmail_quote_container"><div>line 2</div></div><div cl= ass=3D"gmail_quote gmail_quote_container"><div>...</div></div><div class=3D= "gmail_quote gmail_quote_container"><div>line N</div></div><div class=3D"gm= ail_quote gmail_quote_container"><div>EOD</div></div><div class=3D"gmail_qu= ote gmail_quote_container"><div><br></div></div><div class=3D"gmail_quote g= mail_quote_container"><div>set multiplot</div></div><div class=3D"gmail_quo= te gmail_quote_container"><div>plot $DATA with lp</div></div><div class=3D"= gmail_quote gmail_quote_container"><div>unset multiplot</div></div></blockq= uote><div class=3D"gmail_quote gmail_quote_container"><div><br></div><block= quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1= px solid rgb(204,204,204);padding-left:1ex">I use gnuplot constantly, every= day. But 99% of my usage is<br> either through feedgnuplot or gnuplotlib, both of which use inline data.<br= > Should those tools be using a datablock? Can they?<br></blockquote><div><br= ></div><div>For use with gnuplot version 6 they should.</div><div><br></div= ><div>The output script, as attached, was also incorrect in that it did not= contain an "unset multiplot" command.=C2=A0 For that matter, I d= on't think the script should be using multiplot at all.=C2=A0 Why is it= using multiplot?=C2=A0 There was nothing in the input you showed that requ= ested multiplot.=C2=A0 If "set multiplot" appears in the output g= nuplot script I think that must be a bug in the program that generated the = script.</div><div><br></div><div>=C2=A0 =C2=A0Ethan</div><div><br></div><di= v><br></div></div></div> --0000000000003488140645134fb9-- --===============3091065995573630871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3091065995573630871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnuplot-beta mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta --===============3091065995573630871==--