From: BBands <bb...@gm...> - 2011-04-26 19:50:26
|
One approach might be to 'set log x2' log and plot the data once on x and once on x2 using the ternary operator eliminate the unwanted points. See 'help operators ternary' and 'help set logscale' for details. jab On Tue, Apr 26, 2011 at 12:07 PM, Tomás Navarro <lla...@ho...> wrote: > > Hello all. > > I have not found the way to solve the following problem: > > I want to plot a set of data in only one plot. > > The problem is that some points of the data should be better plotted in a > linear scale (lets say 0 to 100,000) but there are other data points that, > exceding the value 100,000, would be better plotted in a logarithmic scale, > as they goes in the range 100,000 to 500,000,000. > > Let's say the data is: > > X Y > 0 100 > 10000 80 > 20000 75 > 30000 60 > 40000 55 > 50000 50 > 60000 48 > 70000 45 > 80000 43 > 90000 41 > 100000 40 > 500000 35 > 1000000 30 > 5000000 25 > 10000000 20 > 50000000 15 > 100000000 10 > 500000000 8 > > (in fact there are much more data points in the 0-100,000 interval) > > Is there a way to plot all these points in the same plot in only one X-axis > showing two different ranges in that axis: > linear: 0-100,000 > logarithmic: 100,000 - 1,000,000,000 ? > > The axis would be read, for example, as: > > |-----|-----|-----|-----|-----|-----|-----|-----|-----| > 0 2E4 4E4 6E4 8E4 1E5 1E6 1E7 1E8 1E9 > Thanks. |