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 7884651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:51:27+00:00 2026-06-03T04:51:27+00:00

How can I visualize on axis x only the integer values? I plot the

  • 0

How can I visualize on axis x only the integer values?

I plot the function described in a file like this

0   0.5
1   0.25
2   0.125
3   0.0625
4   0

whit these commands:

set xrange [0:4]
plot "./data_file" using 1:2 with line lw 2

The problem is that, by doing so, I visualize on axis x the values 0; 0.5; 1; 1.5; 2; 2.5; 3; 3.5; 4
How can I visualize only the integer values 0; 1; 2; 3; 4?

Thank you

  • 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-06-03T04:51:28+00:00Added an answer on June 3, 2026 at 4:51 am
    help set
    
    help set xtics
    
    set xtics 1
    

    as mgilson notes in the comments, set xtics with a single argument defines an increment for the x axis.

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

Sidebar

Related Questions

Can this be done? It seems like this should be possible. In general, I
How can I monitor or visualize memory fragmentation of a delphi application?
Can 2 or more equations defining a function in Haskell share the same where
can I make my own headers in HTTP request ? e.g. This is normal
Can somebody help me with this. There is HTML code: <h3> <label> <input type=checkbox
I can visualize the situation when, for example, I have allocated memory in the
Are there any good C++ libraries that can be used to visualize a graph
I am looking for a library with which I can visualize arrangement of components
I am a visual person, if I can visualize something it often makes more
I would like to do this: class Derived; class Base { virtual Derived f()

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.