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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:14:06+00:00 2026-06-01T15:14:06+00:00

I have created a graph using core plot. Graph is shown in on the

  • 0

I have created a graph using core plot.
Graph is shown in on the screen perfectly.
i have a full screen button on tap on it a popOver shows the graph in a bigger frame…
The problem is that when i resize the graph sometime it does not resize..

If i dismiss the popover I can still see a big char on my screen. This does not happen all the time.

in my .h file

     CPGraphHostingView *scatterPlotView;
 CPXYGraph *graph, *barChart;

in my .m file

I have created the chart and now on the ful screen button click.

-(void)fullviewpressed:(id)sender
{


UIViewController* popoverContent = [[UIViewController alloc]
                                    init];
UIView* popoverView = [[UIView alloc]
                       initWithFrame:CGRectMake(0, 212, 1024, 480)];

if(!UIInterfaceOrientationIsLandscape(self.interfaceOrientation))
    popoverView.frame = CGRectMake(0, 212, 768, 700);


popoverView.backgroundColor = [UIColor blackColor];
popoverContent.view = popoverView;


//resize the popover view shown
//in the current view to the view's size
popoverContent.contentSizeForViewInPopover = CGSizeMake(980, 460);

if(!UIInterfaceOrientationIsLandscape(self.interfaceOrientation))

    popoverContent.contentSizeForViewInPopover = CGSizeMake(768-40, 660);

//create a popover controller
UIPopoverController * popoverController21 = [[UIPopoverController alloc]initWithContentViewController:popoverContent];

self.popoverController = popoverController21;
[popoverController21 release];
self.popoverController.delegate = self;

CGRect btnRct = fullViewBtn.frame;
btnRct.origin.y+=20;

//present the popover view non-modal with a
//refrence to the button pressed within the current view

[self.popoverController presentPopoverFromRect:btnRct
                                        inView:self.view
                      permittedArrowDirections: UIPopoverArrowDirectionUp
                                      animated:YES];
if(UIInterfaceOrientationIsLandscape(self.interfaceOrientation))
    scatterPlotView.frame = CGRectMake(5, 10, 980, 460);
else
    scatterPlotView.frame  = CGRectMake(5, 10, 768-40, 660);
[popoverView addSubview:scatterPlotView];
    [touchView removeFromSuperview];
    touchView.frame =scatterPlotView.frame;
    [popoverView addSubview:touchView];
//release the popover content
   [popoverView release];
   [popoverContent release];
  }

 }

Here touchView is the object of UIView used to add annotation when user taps on the chart.

In short I am just changing the frame of my CPGraphHostingView.
but why it does not resize sometimes.

  • 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-01T15:14:07+00:00Added an answer on June 1, 2026 at 3:14 pm

    What version of Core Plot are you using? Based on the “CP” class prefix in your code, I suspect it’s pretty old. An update to a newer version might solve this problem for you.

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

Sidebar

Related Questions

Actually, in my app, I have created a graph using achartEngine . In these
I have a cyclic graph I created using dosync and ref-set . When I
I am using core plot to make a line graph for my iPhone app.
I have a cocoa interface that uses core plot. When I press a button
We have created an invite function at our site in JavaScript using the Graph
I have created a graph using ggplot2. Now I want to have the legend
I have created a horizontal bar graph using gRaphael charting library. I want to
I have trouble with using the Core-Plot library in MonoTouch. I use this as
hi i have a graph created from a .csv file using the jquery $.get().
So if you have a graph created in excel using vba, how do you

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.