Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6036853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:59:10+00:00 2026-05-23T05:59:10+00:00

I have a data set that uses the x-scale: 0.1 0.4 1 2 3

  • 0

I have a data set that uses the x-scale:

0.1 0.4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

But I need the tics to line up evenly, not have 0.1 and 0.4 scrunched up into the corner. I currently use,

set xtics 1
set xtics add (0.1)(0.4)

But that spaces 0.1 and 0.4 respective to the rest of the scale. I’ve attached a link to a tinypic I uploaded of my dummy data set with my current problem.

http://tinypic.com/r/2zfolxf/7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:59:11+00:00Added an answer on May 23, 2026 at 5:59 am

    Current State

    As far as I know, you can do the following in gnuplot with tics (at least what is relevant to your question):

    • You can specify the start, increment and end of the tics displayed.
      This would make sense to you, if you wish to simply set the tics after the value of 2 like

      set xtics 2, 1
      
    • The other thing you can do, is add explicit tic labels to certain values like

      set xtics add ("0.1" 0, "0.4" 1)
      

      This would introduce the labels 0.1, and 0.4 to the x scale where the actual values are 0 and 1

    However you cannot modify the actual plotting of the graph. If in you data it states

    0.1 100
    0.4 150
    1   200
    2   300
    

    then gunplot will plot it correspondingly.

    Possible workaround

    A workaround could look like this:

    1. Plot the normal graph from 2 upwards.
    2. Do some hackery stuff to the first two values with this:

      plot "Data.dat" every 1::2 w l, "" every 1::1::2 using ($1<magic>):($2)
      

    magic specifies some algebraic operation you want to do with the first column.
    Everything is allowed and if your values are constant you can specify a polynomial that goes through the points 0, 1 and 2 with the inputs 0.1, 0.4 and 1 like this polynomial:

    y = -1.85*x^2 + 4.26*x - 1.4
    

    Example

    Suppose you have this data file:

    0.1 0.41
    0.4  0.03
    1 0.97
    2  0.74
    3  0.05
    4  0.15
    5   0.11 
    6 0.60
    7 0.76
    8 0.25 
    

    Then you can “rearrange” the first two entries to the x-positions -1 and 0 like this:

    plot "Data.dat" every 1::2 w l, \
    "" every 1::0::2 using (-1.85*$1**2 + 4.26*$1 - 1.4):($2) w l
    

    With some tic-labeling and line style settings it should look exactly like what you are after.

    I hope I understood what you are after and that you can make some use of my suggestions.
    Cherio
    Woltan

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application where every single page uses a set of data that
I have a haskell program that uses Data.Set and Data.IntMap, what flags do I
I have a JMeter test that uses a CSV Data Set Config to provide
I have a data set that resembles this: id product_id size color price created_date
I have a data set that is around 700 rows with eight columns of
I have a data set that that I would like to call in a
I have the following data set that I am trying to plot with ggplot2,
I have a large data set that I'm working with in excel. About 1000+
I have a very large possible data set that I am trying to visualize
I have a data set of item difficulties that correspond to items on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.