core-plot

Core Plot : how to render a color between two lines

情到浓时终转凉″ 提交于 2019-12-25 18:49:06
问题 This is my target. And the problem is I'v no idea to render color between the line. I will appreciate for any suggestion.Thanks. 回答1: This isn't easy right now. You might be able to make it work by creating a closed shape with the plot. Give it data points from left to right along the top of the curve and more points that define the bottom of the curve from right to left. 来源: https://stackoverflow.com/questions/24901383/core-plot-how-to-render-a-color-between-two-lines

Creating CPTImages from images in xcassets file

↘锁芯ラ 提交于 2019-12-25 11:04:13
问题 So according to this, you have to use imageNamed for loading images now in iOS. Unfortunately, CPTImage's constructors requires paths for loading images So something like this: [CPTImage imageForPNGFile:[[NSBundle mainBundle] pathForResource:@"plotsymbol" ofType:@"png"]] These -pathForResource calls now fail because of asset catalogs. So.. has anyone been able to do this? Did I miss something? 回答1: The CPTImage class will include an imageNamed method in a future release. It is available now

How to add animation to scatter graph using core plot?

☆樱花仙子☆ 提交于 2019-12-25 04:46:13
问题 I am using core plot library to display scatter chart in my app i display the scatter chart in my app from tutorial http://www.raywenderlich.com/13271/how-to-draw-graphs-with-core-plot-part-2 now i want that the user can see the animation of chart i-e frist the is drawn from 1st point to 2nd point after a small period of time than draw from 2nd to 3rd and so on and the user can see the animation. 回答1: There is currently no built-in support for this. You could use a timer to control the

How to draw a plot symbol shadow behind the symbol fill in coreplot?

可紊 提交于 2019-12-25 02:19:37
问题 Is it possible to draw a symbol shadow behind the symbol fill? As explained here, CorePlot Issue 478 the fill is drawn after the plot fill which results in something that looks like this, , where the red is the shadow and blue is the fill. 回答1: Core Plot issue #478 is fixed. Pull the latest code to fix the symbol drawing. If you don't want to do that, the fix involves adding a transparency layer to the symbol drawing. See the diff for the change to see how to fix your copy. The previous

how to fix scatter graph size fixed in core plot

Deadly 提交于 2019-12-25 01:46:39
问题 I'm using core plot scatter graph,but i'm not able to maintain size of the. For some values the graph works fine ,but for some values the size of the graph changes. Can i fix it using xRange ,if yes, how? please refer these images 1. 2 Why this is happening ? 回答1: plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromFloat([[mXaxisArray valueForKeyPath:@"@max.floatValue"]floatValue])]; Added xRange to fix this issue 来源: https://stackoverflow.com

Core plot: axis alternatingBandFills with custom axis labels

爷,独闯天下 提交于 2019-12-25 00:46:11
问题 I am using the Core Plot library for drawing graphs on the iOS. I want to add colors between the grid lines of the yAxis. I have managed to do it with setting the alternatingBandFills property of the axis. However, I have to use custom labels on the yAxis as well, and when I am providing the custom labels, the alternatingBandFills property does not work for some reason. Any help how to add colors to the spaces between the grid lines on the yAxis as well as using custom labels will be much

Coreplot for implementing barchart

佐手、 提交于 2019-12-25 00:18:42
问题 Am implementing barchart using coreplot...am getting the errors bellow which am unable to debug. Can anybody please help me out with the solution for this..Tried all ways but still couldn find the solution. Ld /Users/MacMini/Library/Developer/Xcode/DerivedData/DashBoard-cmeoxsnbrnrzrkcwmgmfxqlfuzvo/Build/Products/Debug-iphonesimulator/DashBoard.app/DashBoard normal i386 cd /Users/MacMini/Desktop/DashBoard setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator

Changing the layer shape for CPTPlotSpaceAnnotation?

帅比萌擦擦* 提交于 2019-12-24 17:17:54
问题 I want to add a widget to my graph that a user can click and drag. I've managed to do this using CPTPlotSpaceAnnonation (because I also want it to also scroll with the data) and CPTBorderedLayer. The basic functionality works and now I want to improve the look of the widget. So far it's just a green circle. The follow code generates the circle below, notice how the shadow is clipped to the rect of the layer and the border follows the layer and not the circle, How can I stroke the circle and

iPhone -Core Plot problem

ぐ巨炮叔叔 提交于 2019-12-24 10:26:15
问题 In iPhone App I want to implement core plot (vertical bar chart) In Original code Prject I am getting graph as but when same code I am implementing in my App I am getting plot as so what things could be wrong? Please Help and Suggest Thanks. 回答1: By changing the bar width i could fix my problem. 来源: https://stackoverflow.com/questions/5484019/iphone-core-plot-problem

core data line labels

China☆狼群 提交于 2019-12-24 09:37:02
问题 I have created a CPScatterPlot using Core Plot and have several lines on the graph: for(int i=0; i<nLines; ++i){ CPScatterPlot *xSquaredPlot = [[[CPScatterPlot alloc] initWithFrame:graph.frame] autorelease]; xSquaredPlot.identifier = [NSString stringWithFormat:@"%d",i]; xSquaredPlot.dataLineStyle.lineWidth = 1.0f; xSquaredPlot.name = @"dd"; if(i==0) xSquaredPlot.dataLineStyle.lineColor = [CPColor redColor]; else if (i ==1) xSquaredPlot.dataLineStyle.lineColor = [CPColor blueColor]; else