|
From: <l_b...@us...> - 2013-01-24 16:34:08
|
>From mailnull Thu Jan 24 15:48:29 2013 Received-SPF: neutral (sog-mx-4.v43.ch3.sourceforge.com: 172.29.29.180 is neither permitted nor denied by domain of lists.sourceforge.net) client-ip=172.29.29.180; env...@li...; helo=lists.sourceforge.net; Received-SPF: neutral (sog-mx-3.v43.ch3.sourceforge.com: 216.139.250.139 is neither permitted nor denied by domain of gmail.com) client-ip=216.139.250.139; env...@gm...; helo=joe.nabble.com; Date: Thu, 24 Jan 2013 07:46:43 -0800 From: somesh <som...@gm...> Content-Type: text/plain; charset="us-ascii" Hi, I have a data file like this: #x y 1 34 2 450 3 -987 4 20045 5 -1003 6 -30 For only positive values, just "logscale y" is fine. For only negative values, I can use a reversed logscale: -- set logscale y set yrange [ymin:ymax] reverse plot file u 1:(-$2) axis x1y1 t "Y" w linespoints -- But how do I plot both positive and negative values in same plot? I want to place the x axis at the center of y axis; positive log scale (for positive values) above the x axis, and reversed logscale (for negative values) below the x axis. How about f(x) = (x >= 0 ? x : 1/abs(x)); plot file using 1:(f($2)) .... Leo |