Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-24-2011, 08:20 AM   #1
LQ Newbie
Registered: Apr 2011
Location: Spain
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
Question Gnuplot - Combining a linear range and log-scale range in the same X-axis

Hello all.

First of all excuse me because English is not my mother language.

I used gnuplot time ago (I haven't been an expert never) and 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    20k   40k   60k   80k   100k   1M   10M   100M   1G
(The abbreviations k-M-G are not the important point. Just shown for clarity)

Old 04-26-2011, 07:22 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If you don't get any answers here, I'd suggest asking on the project's mailing list (which should have been your first try, for obvious reasons). See this for information about the gnuplot mailing list.
Old 04-26-2011, 01:55 PM   #3
LQ Newbie
Registered: Apr 2011
Location: Spain
Distribution: Fedora
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for the suggestion, Nylex.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Time-based range in gnuplot? Lordandmaker Linux - Software 2 12-18-2008 01:16 PM
gnuplot - plot horizontal line over shorter range than the axis Meson Linux - Software 5 10-18-2008 09:41 AM
No other 'Failed to set up mtrr write-combining range' thread on! Worksman Linux - Software 8 11-24-2005 03:03 AM
Failed to set up write-combining range (0xd0000000,0x4000000) spuncut Linux - Laptop and Netbook 0 10-06-2004 06:12 AM
XFree86 and Write-Combining Range ? Shade Linux - Software 1 07-29-2003 11:48 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration