From: sfeam <sf...@us...> - 2018-04-27 05:04:14
|
On Thursday, 26 April 2018 21:02:12 Dima Kogan wrote: > sfeam via gnuplot-beta <gnu...@li...> writes: > > > I have uploaded a 5.2.3 tarball to the "testing" section of the > > gnuplot files folder on SourceForge. > > I found a bug earlier that I haven't yet got around to reporting or > trying to fix. Just confirmed that it's still an issue with this new > build. Would you mind taking a look before this release becomes > official? > > The bug: autoscaling of plots with any logscale axes doesn't work on a > replot. For instance, the attached script produces reasonable > autoscaling initially, but after a "replot", it is broken. This is > significant because everyone using a tiling window manager ends up > replotting at least once before looking at any plot. I agree this is undesirable, but I don't see an immediate fix. There are at least a couple of work-arounds however 1) Don't replot in-line data. That didn't use to be possible at all and as you have found the change to allow it was imperfect. Put the data in a datablock instead. 2) Use writeback/restore: set xrange [*:*] writeback plot '-' ... set xrange restore replot > I vaguely recall a discussion at some point in the past where we talked > about the "replot" command just recalling the axis extents from the > initial plot command if it is sure the data hasn't changed (which is > true for inline data, such as here). Should we do that? I vaguely recall that also but I don't remember the details. I'll look into it. However I have a strong aversion to complicated last-minute changes before a release. If there's some stupid error in the logic because of log scaling that might have a trivial fix. But re-doing the way autoscale + replot works sounds like a major change that I'd want to have tested in the development version for a while before it went into a minor level release. cheers, Ethan |