From: Ethan A M. <me...@uw...> - 2023-11-15 23:55:09
|
On Wednesday, 15 November 2023 13:56:28 PST Dima Kogan wrote: > !-------------------------------------------------------------------| > This Message Is From an Untrusted Sender > You have not previously corresponded with this sender. > See https://itconnect.uw.edu/email-tags for additional > information. Please contact the UW-IT Service Center, > he...@uw... 206.221.5000, for assistance. > |-------------------------------------------------------------------! > > Hi Ethan. Thanks for pushing this out. I'm trying the 6.0-rc3 tag from > git. > > A question below. > > > Ethan A Merritt <me...@uw...> writes: > > > - Replotting and mousing multiplots > > o new commands "remultiplot", "set mouse multiplot" > > o command sequence to regenerate full multiplot is saved to a datablock > > Can you talk a bit more about this? I wrote a simple script (tst.gp): > > set multiplot layout 2,1 > plot x > plot x*x > > I run "gnuplot" and "load tst.gp". I see the plots come up, as expected. > If I do a "replot" then I see the plots being redrawn, but without > clearing what's behind them, so you get an unusable image. Right. That's because you are still at the stage of creating the multiplot. That stage begins with the commands "set multiplot ..." and ends with the command "unset multiplot". The intervening commands are stored to a temporary buffer and then moved to $GPVAL_LAST_MULTIPLOT when the "unset multiplot" completes. At that point the entire sequence of commands is available to regenerate the original multiplot using the "remuptiplot" command. > remultiplot does this: > > multiplot> remultiplot > no datablock named $GPVAL_LAST_MULTIPLOT > > I also tried to "set mouse multiplot", but that doesn't appear to do > anything different: I can still use the right button to try to zoom, but > it doesn't do anything. This is with the x11 and qt terminals. Yeah, at this stage the support for "set mouse multiplot" is pretty rough. I am in the process of smoothing it out in the master branch and will merge the improved version back into 6.0 before the full release. What does work already in 6.0rc3 2D scroll/pan/zoom hot keys (replot toggle log-scale arrow keys ...) Works in master branch but not in -rc3 3D mouse rotations sanity check the commands inside $GPVAL_LAST_MULTIPLOT multiplots containing 'load' commands multiplots using function blocks Still not working but seems possible limit mouse coordinate readout to the single active plot in the multiplot Not going to happen any time soon mouse readout for the non-active plots as well (this what everyone has wanted since forever, but the "remultiplot" work isn't going to get there). > > I haven't checked if these are different from the behavior in previous > releases. It would be great, though, if you could resize a multiplot > window, and see all the plots be redrawn. Or if you could interactively > zoom in multiplots. That should work in rc3. Try the following test script #################################################### # demo script for multiplot mousing in 6.0.rc3 set mouse multiplot set multiplot layout 1,3 plotno = 0.0 do for [i=1:3] { plotno = real(i) plot sin(x/plotno)/plotno title sprintf("Plot #%g",plotno) } unset multiplot print "about to replot" remultiplot print "done, now you can pan/zoom/replot" #################################################### thanks for testing Ethan |