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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:35:15+00:00 2026-05-31T13:35:15+00:00

What algorithm or formula would you recommend to set the labels on the y-axis

  • 0

What algorithm or formula would you recommend to set the labels on the y-axis to multiples of 5 or 10 in CorePlot?

I basically want to get even numbering, for instance: 5, 10, 15, 20 or 100, 105, 110, 115… and set the maximum number of y-labels to 10.

Any ideas would be welcome! 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-05-31T13:35:16+00:00Added an answer on May 31, 2026 at 1:35 pm

    This is controlled by the “labeling policy”. You have several choices:

    typedef enum _CPTAxisLabelingPolicy {
        CPTAxisLabelingPolicyNone,              ///< No labels provided; user sets labels and tick locations.
        CPTAxisLabelingPolicyLocationsProvided, ///< User sets tick locations; axis makes labels.
        CPTAxisLabelingPolicyFixedInterval,     ///< Fixed interval labeling policy.
        CPTAxisLabelingPolicyAutomatic,         ///< Automatic labeling policy.
        CPTAxisLabelingPolicyEqualDivisions     ///< Divide the plot range into equal parts.
    } CPTAxisLabelingPolicy;
    

    If you know how far apart you want the tick marks, keep the default labeling policy (fixed interval) and set the majorIntervalLength to the desired interval. You could also use the automatic policy to let Core Plot pick the intervals. Use the preferredNumberOfMajorTicks property to give it a hint about how many tick marks to make.

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

Sidebar

Related Questions

What algorithm would you make a computer use, if you want to solve a
i want to create an algorithm or formula that gives me the following combinations
I have Fortran-based 3D column-major order array flattened into linear memory. What formula/algorithm can
I got this formula from a data structure book in the bubble sort algorithm.
Which algorithm would you use to search short substrings in short texts? By short
i'm not really into basics algorithm programming, so here's my problem. I want to
I am looking for a method to get a formula, formula which comes from
I am looking for a formula/algorithm to calculate PI~3.14 in a given precision. The
what is the algorithm (or rather formula) which, for each pair integers i and
Is there a formula or algorithm which can prioritize items based on weight and

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.