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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:54:00+00:00 2026-06-05T03:54:00+00:00

I want to add Core Plot Touch to my project. I found this tutorial:

  • 0

I want to add Core Plot Touch to my project.
I found this tutorial: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application

However, I’ve downloaded the newest version of CorePlotTouch and it seems that some things have changed because I can’t set all of the properties.
I receive plenty of errors which say that property is readonly.

For example:

CPTScatterPlot *xSquaredPlot = [[CPTScatterPlot alloc] 
                                    initWithFrame:graph.bounds];


    xSquaredPlot.dataLineStyle.lineColor = [CPTColor redColor];
    xSquaredPlot.dataLineStyle.lineWidth = 1.0f;

Both lineColor and lineWidth are readonly properties and I can’t find different way of changing them.
So how can I change line’s color or width?

  • 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-05T03:54:02+00:00Added an answer on June 5, 2026 at 3:54 am

    You need to create a CPTMutableLineStyle object and set its properties.

    CPTScatterPlot *xSquredPlot = [[CPTScatterPlot alloc] init];
    CPTMutableLineStyle *lineStyle = [CPTMutableLineStyle lineStyle];
    lineStyle.lineWidth = 1.0f;
    lineStyle.lineColor = [CPTColor redColor];
    xSquredPlot.dataLineStyle = lineStyle;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read the tutorials about making 2D BarGraph using Core Plot in iPhone.
I am creating a page through the core service. I want to add component
I want add my custom sidebar next right column all page. Please check this
I want to add 10 elements to a Core Data store. The problem is
I am using the Core Plot library for drawing graphs on the iOS. I
I want to add EasyMock Class Extension 3.1 to my project and I have
I want to add the blackberry Web Development Plug-in for Eclipse.I am using the
Am a newbie to iOS programming and to Core Plot. Am using XCode 4.2
I want to add some new functions to the core string helper, which is
I'm using reStructuredText for my blog/website and I want to add a global include

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.