Share your knowledge at the LQ Wiki.
 LinuxQuestions.org Gnuplot - Combining a linear range and log-scale range in the same X-axis
 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.

Notices

 04-24-2011, 08:20 AM #1 llauro LQ Newbie   Registered: Apr 2011 Location: Spain Distribution: Fedora Posts: 2 Rep: 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: Code: ``` 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: Code: ```|-----|-----|-----|-----|-----|-----|-----|-----|-----| 0 20k 40k 60k 80k 100k 1M 10M 100M 1G``` (The abbreviations k-M-G are not the important point. Just shown for clarity) Thanks.
 04-26-2011, 07:22 AM #2 Nylex LQ Addict   Registered: Jul 2003 Location: London, UK Distribution: Slackware Posts: 7,464 Rep: 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.
 04-26-2011, 01:55 PM #3 llauro LQ Newbie   Registered: Apr 2011 Location: Spain Distribution: Fedora Posts: 2 Original Poster Rep: Thank you for the suggestion, Nylex.

 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 Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Lordandmaker Linux - Software 2 12-18-2008 01:16 PM Meson Linux - Software 5 10-18-2008 09:41 AM Worksman Linux - Software 8 11-24-2005 03:03 AM spuncut Linux - Laptop and Netbook 0 10-06-2004 06:12 AM Shade Linux - Software 1 07-29-2003 11:48 PM

LinuxQuestions.org

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

 Contact Us - Advertising Info - Rules - Privacy - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -