From: Ethan A M. <me...@uw...> - 2023-11-16 04:54:12
|
On Wednesday, 15 November 2023 20:04:31 PST Dima Kogan wrote: > Ah yes. I don't multiplot very often, and clearly missed this important > detail of its operation (that you need to "unset multiplot"). > > This new logic is great. Thank you very much for implementing that. Two > notes: > > - Should we remultiplot when a window is resized? Currently we replot > when it is resized, so the whole multiplot is replaced with one of the > subplots. They all come back during a remultiplot, but that seems like > an extra step. After a resize, the terminal requests a replot. But if the most recent previous plot command was part of a multiplot, the "replot" is supposedly replaced by "remultiplot". That "most recent previous plot" test could fail if you have done other things ("clear" "test palette" "set term" ...) since the multiplot was displayed. If so, you can recover with an explicit "remultiplot" from the command line. There may well be other corner cases where the resize operation fails to substitute "remultiplot" but for me it is working in -rc3 already. If you have a reproducible example where it fails, please provide the details. Maybe it's terminal-dependent? I think a volatile data source (e.g. reading from '-') might also bypass the normal replot processing. > - Can/should we allow independent panning/zooming in each subplot? I > imagine this would be a lot of work, but I don't know. That's a whole other can of worms. Nothing in the remultiplot code makes it any easier than it was before to achieve this. It would, however, be easy to provide a way to turn off pan/zoom for individual plots. That way you could use the mouse to pan/zoom the one active (most recent) plot in the multiplot and the others would be redrawn in their original state. In some cases that would be better, in other cases worse. It just depends on whether the plots share a consistent set of axis ranges and region of interest. > Thank you very much. I'm now using the 6.0-rc3 tag for all my daily > work, so hopefully I'll catch any regressions. Great. I am hoping that all regressions were caught in -rc1 and -rc2. The multiplot stuff is new, so bug reports are welcome but I don't think that counts as a regression. Ethan |