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


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

Re: Histograms, re-use auto yrange

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Histograms, re-use auto yrange
Date 2019-01-25 09:57 +0100
Organization solani.org
Message-ID <q2ej0u$gq5$1@solani.org> (permalink)
References <1fddbd1c-ec65-4120-8167-fa9fe5885311@googlegroups.com>

Show all headers | 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