X-Received: by 2002:a24:e4cf:: with SMTP id o198mr1052421ith.20.1548174984621; Tue, 22 Jan 2019 08:36:24 -0800 (PST) X-Received: by 2002:a9d:2c22:: with SMTP id f31mr23758otb.4.1548174983805; Tue, 22 Jan 2019 08:36:23 -0800 (PST) Path: csiph.com!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q69no718277itb.0!news-out.google.com!v71ni819ita.0!nntp.google.com!q69no718276itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 22 Jan 2019 08:36:23 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=158.140.1.28; posting-account=-cz37goAAACuC3C-aT36SZmnAlFIWvSK NNTP-Posting-Host: 158.140.1.28 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1fddbd1c-ec65-4120-8167-fa9fe5885311@googlegroups.com> Subject: Histograms, re-use auto yrange From: Stephen Prather Injection-Date: Tue, 22 Jan 2019 16:36:24 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 16 X-Received-Bytes: 2098 X-Received-Body-CRC: 494608895 Xref: csiph.com comp.graphics.apps.gnuplot:4121 Hi forum-- I am trying to plot multiple histograms, but I want them all to have the sa= me yrange so that the bars are visually comparable across plots. BUT, I als= o want gnuplot to auto-range the y axis. I don't mind plotting in two passe= s (plot all, capture max yrange, replot all). But I don't know how to query= the value of the yrange into a variable. I know about 'show yrange'. But I= don't know how to use that information. I could script around gnuplot (ie,= Ruby), but if I'm going to do that, I just as well write my own bucketizer= in Ruby to determine the max height of buckets across my datasets. Since gnuplot is not a general programming language, I think this may be to= o tall of an order. Sure would be cool if it were a full language (or re-bu= ilt on top of an existing one). Thanks! --Myles