Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4123

Re: Histograms, re-use auto yrange

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Histograms, re-use auto yrange
Date Fri, 25 Jan 2019 09:57:02 +0100
Organization solani.org
Lines 13
Message-ID <q2ej0u$gq5$1@solani.org> (permalink)
References <1fddbd1c-ec65-4120-8167-fa9fe5885311@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1548406622 17221 127.0.0.43 (25 Jan 2019 08:57:02 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Fri, 25 Jan 2019 08:57:02 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
X-User-ID eJwFwQkBACAIBLBK8h0QR0D6R3AzAaFdYVBbW8q5Z+06jUaNJ0Ra+FFzdugyeVTFe81nHPMBG9QRNw==
Content-Language en-GB
Cancel-Lock sha1:RN/isNx5wNJzpIJGsOE9xqAzr8c=
In-Reply-To <1fddbd1c-ec65-4120-8167-fa9fe5885311@googlegroups.com>
Xref csiph.com comp.graphics.apps.gnuplot:4123

Show key headers only | View raw


Am 22.01.2019 um 17:36 schrieb Stephen Prather:

> I am trying to plot multiple histograms, but I want them all to have the same yrange so that the bars are visually comparable across plots. BUT, I also want gnuplot to auto-range the y axis. I don't mind plotting in two passes (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 
Apart from the "writeback"/"restore" feature, gnuplot also has a number
of status variables that contain the info you need.

GPVAL_Y_MIN / _MAX give the current (i.e. from the last plot) axis
range. Similar variables exist for all axes, and for the value ranges of
data (i.e. before axis expansion). You can see them all by entering
"show var G" on the gnuplot console.

  Karl

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Histograms, re-use auto yrange Stephen Prather <smprather@gmail.com> - 2019-01-22 08:36 -0800
  Re: Histograms, re-use auto yrange Ethan Merritt <eamerritt@gmail.com> - 2019-01-23 04:59 +0000
  Re: Histograms, re-use auto yrange Karl Ratzsch <mail.kfr@gmx.net> - 2019-01-25 09:57 +0100
    Re: Histograms, re-use auto yrange Stephen Prather <smprather@gmail.com> - 2019-01-25 10:51 -0800

csiph-web