[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    Re: Break y-axis / range ?
From:       Hans-Bernhard Broeker <broeker () physik ! rwth-aachen ! de>
Date:       2001-09-11 11:40:21
[Download RAW message or body]

In article <3B989CF1.29D9F68D@tu-clausthal.de> you wrote:

> is there a way to break the range on the y-axis in such a way that (for
> examples) all the values in the rage[0.0:10.0] _and_ everything in the
> range [100.0:105.0] is displayed?

No really simple one. You have to do most of it yourself. Roughly like
this:

	real_y(y) = (y < 10.0) ? y : (y > 100.0) : y-88.0 : 0/0

This maps [*:10] --> [*:10], and [100.0:*] to [12.0:*].  Then you
would do:

	set yrange [real_y(0.0) : real_y(105.0)]
	set ytics (0, 5, 10, '100' real_y(100), '105' real_y(105))

	plot datafile using 1:(real_y($2))

You may want to turn off the left border and draw two headless arrows
instead to visualize the break in the axis.

-- 
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot
to majordomo@dartmouth.edu
]]]]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic