core-plot

How to get repository for core-plot

I am not able to get the repository for core-plot. What I am doing is that I am typing this in the terminal: hg clone https://core-plot.googlecode.com/hg/ core-plot and this is what I get: Traceback (most recent call last): File "/usr/local/bin/hg", line 25, in mercurial.util.set_binary(fp) File "/Library/Python/2.5/site-packages...

How can I refresh core plot without returning from a method?

Hi. I have a cocoa interface that uses core plot. When I press a button in the interface, a plot is drawn. I wanted to create a sequence of graphs by calling the plotting method multiple times along with calls to sleep() in between. But it seems that even though the call to reload data is made that nothing happens until the function ex...

abort: error: nodename nor servname provided, or not known error

can anyone help ?? i am getting this error while connecting.. abort: error: nodename nor servname provided, or not known please help me out. Actually I want to get the source of coreplot from a repository I am executing this command in the terminal "hg clone core-plot.googlecode.com/hg core-plot " and i get the error ... "abort...

Errors in linking during build with Core Plot

I have just added a Core Plot view to my application based on a tutorial (http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application). I have put the Core Plot drawing code in the windowDidLoad method of the window controller for the window where I have included the CPLayerHostingView. The code for the plot is: CP...

Has anyone worked out how to manually add labels into a Core-Plot (iPhone) graph?

I have a simply bar graph created for my iPhone application however I want to manually add the x-axis labels. Has anyone worked out a way to do this? I found the CPXYAxisSet.xAxis.axisLabels property however when I create an NSSet and assign it using: axisSet.xAxis.axisLabelingPolicy = CPAxisLabelingPolicyNone; NSSet *labels = [[NSSet...

error: request for member 'bounds' in something not a structure or union

Hi all, I'm getting the above error when compiling an iPhone app using the core-plot framework. I have this view controller's view linked to a CPLayerHostingView in IB. Here's the sample code from the viewDidLoad() function. - (void)viewDidLoad { [super viewDidLoad]; graph = [[CPXYGraph alloc] initWithFrame: self.view.bound...

iPhone Core-Plot Tick Marks Not Showing

I went through the tutorial here: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application, and I can get a graph to show, but I don't see any tick marks or labels on my axis set. Is there something simple I'm overlooking? Below is my code to create the graph, and I also implemented the delegate functions. I am s...

[ CORE PLOT] label not showing

Hi, I download library coreplot and i try example and i try this tutorial http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application. I have two problem: 1) When I compiled example i don't have error and warning but label of example not showing. 2) inside the tutorial the command "axisSet.xAxis.axisLabelOffset = 3....

how to invert transform a UIView?

Hi all, I am using core-plot library to draw a bar-chart on my iPhone application and the problem arises when I try to add a label or some other views to the graph, Actually the view I added is drawn vertically invert like this ........ The code is like UILabel *lbl= [[UILabel alloc] initWithFrame:CGRectMake(250, 90, 70, 25)]; [...

CorePlot problems

Hi, I started with core-plot now and came to some problems. I followed the tutorial from this page: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application and completed with the instructions from this page: http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications (such as -all_load). But I still h...

Allow horizontal scrolling only in the core-plot barchart?

Hi all, I am using core-plot lib to draw bar charts in my app like this My problem is that i want the enabling of grapgh movement only in horizontal direction so that I can see the records for a long period of time, But the problem is that i just wnt to keep the y axis fixed to its place, How can i do this? Waiting for help.... ...

Keeping the y-axis fixed at place?

Hi all, this is the code in the continuation of this question....http://stackoverflow.com/questions/1892544/allow-horizontal-scrolling-only-in-the-core-plot-barchart -(BOOL)pointingDeviceDraggedAtPoint:(CGPoint)interactionPoint { if ( !self.allowsUserInteraction || !self.graph.plotArea ) { return NO; } CGPoint pointI...

How do I add labels to CPBarPlot barplots?

Hello! I'm completely new to Core Plot and have a working bar graph, but the visual is kind of useless for me unless I know which object is represented in each bar. I have seen that there is a method called 'fieldIdentifiers' but do not know how to implement it, nor can I find any documentation (if this even the correct method). Can yo...

How can I have tick marks in Core Plot with custom labels?

For my app's graph (line plots) it does not make sense to format the axis labels to tenths. It did not look like there was a way to change this without providing custom labels. I was able to add custom axis labels based on the sample code in this answer, but the labels do not have tick marks. Is this an issue (I didn't see anything...

Why won't my x-axis show with core-plot on the iPhone?

EDIT: I think my question is better phrased as: How can I have a Y-axis that doesn't start at zero? It seems like the x-axis always gets placed at the y=0, but I would like the x-axis to be at some positive number on the y-axis. Here's a graph with more reular data... I just wish the x-axis was placed at the minimum y-value for the plot...

Core-Plot iPhone Animation Examples

Hi, I've been looking into core-plot for the iPhone and I'm having trouble finding any examples of animation actually being used. What I need to see is an example of how to use core-plots animation to add an extra plot to a graph when someone clicks a button. If anyone can produce and example, or show me a link to one, that would be g...

How can I implement a stock volume chart using core plot on iPhone?

Hi, I'm writing a stock charting application on iPhone using core-plot. What kind of chart should I use to plot the volume chart? Since I will also need to overlay the price charts onto the volume chart, how should I go about doing this? Here's an image for reference (By no means am I trying to reimplement stockcharts functionality, jus...

Need core plot with coloured vertical line at each data x coordinate, with height data y coordinate

Hello, I would like to use core plot to chart my data as follows: for each data point (x,y), draw a vertical line starting at (x,0) and running to (x,y). The data are medication doses, mapped against time of dose. Any help would be greatly appreciated! ...

How do remove the border around a core-plot graph

I am trying to remove the border around a core plot graph on the iPhone - but seem to be struggling on what should be simple in my mind. Pointers please! ...

Core Plot causing crash on device but not simulator.

I'm using core plot to create a small plot in one of my view controllers. I have been pulling my hair out trying to track down this error. I install on the simulator and it works fine but as soon as I put it on my device I get the following error: 2010-02-04 22:15:37.394 Achieve[127:207] *** -[NSCFString drawAtPoint:withTextStyle:inCon...