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

  • Home
  • SEARCH
  • 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 4557236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:28:50+00:00 2026-05-21T17:28:50+00:00

I found this strange behaviour when using gnuplot (ver 4.4), it repeats the same

  • 0

I found this strange behaviour when using gnuplot (ver 4.4), it repeats the same y-axis ticks labels when set format y “%10.0f” command is used and y range is relatively low. If I set it up to “%10.5f” the numbers don’t repeat but the “0.5” rounding isn’t logical in my case. So I’m looking for a solution with minimal changes to the following script, any help appreciated!

Example with repeating y-axis ticks labels:
Example with repeating y axis tics-labels

Data:

0.5 -
1   3.000
2   4.000
3   4.000
4   2.000
5   1.000

Script:

set encoding cp1250
set datafile separator "\t"
set datafile missing "-"

set terminal png font "arial" small size 1090,282 xffffff x000000 x404040 x00aa66     xdd3300
set output "output.png"

set key off

set grid
set boxwidth 0.9 relative
set style data histograms
set style fill solid 0.6 border -1
set decimalsign ","
set format y "%10.0f"
set xtics ('28.02.2011-06.03.2011' 1,'07.03.2011-13.03.2011' 2,'14.03.2011-20.03.2011'     3,'21.03.2011-27.03.2011' 4,'28.03.2011-03.04.2011' 5)
set ylabel 'Label'
set xrange [0.5:5.5]
plot "data.dat" using 2
  • 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-21T17:28:51+00:00Added an answer on May 21, 2026 at 5:28 pm

    The repetition of y tic entries is due to the fact that you format the y tics to be displayed without any decimal places. Therefore a 3,5 is rounded towards a 4 and and so forth. There are a few solutions that would circumvent that.

    1. Allow decimal places to be displayed: set format y "%.1f"
    2. Try too fool around with set ytics autofreq. For instance
      set ytics autofreq 1 would accomplish the same thing you try to achieve in your script but without the repetition.

    Hope that helped…
    Cherio
    Woltan

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

Sidebar

Related Questions

I have found this example on StackOverflow: var people = new List<Person> { new
I'm trying to build a C++ extension for python using swig. I've followed the
I've found several jQuery syntaxes for nullifying the enter on a form. First one:
I have a new web app that is packaged as a WAR as part
I am playing with TFS 2010, and am trying to setup a build process
I have several USB mass storage flash drives connected to a Ubuntu Linux computer

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.