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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:28:38+00:00 2026-06-14T09:28:38+00:00

Scenario: Drawing a graph. Have data points which range from A to B, and

  • 0

Scenario:

Drawing a graph. Have data points which range from A to B, and want to decide on a granularity for drawing the axis scales. Eg, for 134 to 151 the scale might run from 130 to 155, to start and end on “round” numbers in the decimal system. But the numbers might run from 134.31 to 134.35, in which case a scale from 130 to 135 would (visually) compress out the “significance” in the data — it would be better to draw the scale from 134 to 135, or maybe even 134.3 to 134.4. And the data values might instead run from 0.013431 to 0.013435, or from 1343100 to 1343500.

So I’m trying to figure out an elegant way to calculate the “granularity” to round the low bound down to and the upper bound up to, to produce a “pleasing” chart. One could just “hack” it somehow, but that produces little confidence that “odd” cases will be handled well.

Any ideas?

  • 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-14T09:28:39+00:00Added an answer on June 14, 2026 at 9:28 am

    Just an idea:

    1. Add about 10% to your range, tune this figure empirically
    2. Divide size of range by number of tick marks you want to have
    3. Take the base 10 logarithm of that number
    4. Multiply the result by three, then round to the nearest integer
    5. The remainder modulo 3 will tell you whether you want the least significant decimal to change in steps of 1, 2, or 5
    6. The result of an integer division by 3 will tell you the power of ten to use
    7. Take the (extended) range and compute the extremal tick points it contains, according to the tick frequencey just computed
    8. Ensure that all data points actually lie within that range, add ticks if not
    9. If needed, add minor ticks by decreasing the integer above by one
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario where, the data (both x and y coordinates) comes dynamically.
I have the scenario where a command comes in over a socket which requires
Scenario: Most smartphones have a high resolution camera that generates photos that may range
I have a scenario which I think I can convey giving PC Monitor example
Scenario : I'll try to put an analogy with the loan broker example from
Scenario: Every page on the website will have a menu bar at the top
Scenario 1: If I have a Great Grandpa ancestor (let's name him A); And
I am describing the behavior of a random drawing. To do this, I want
I have the following scenario: a Bitmap that is used as background and another
Scenario: I save my drawing with a file name as picture . After 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.