core-plot

How to draw Y-axis grid in core-plot?

妖精的绣舞 提交于 2020-01-02 17:21:06
问题 How to draw X-axis grid, ie draw horizontal line against y=axis value? please help me out? sri 回答1: You need to set the majorGridLineStyle and/or minorGridLineStyle properties on your axes. See CPTestApp in the examples folder for some sample code. 来源: https://stackoverflow.com/questions/3341505/how-to-draw-y-axis-grid-in-core-plot

How to draw Y-axis grid in core-plot?

北战南征 提交于 2020-01-02 17:19:47
问题 How to draw X-axis grid, ie draw horizontal line against y=axis value? please help me out? sri 回答1: You need to set the majorGridLineStyle and/or minorGridLineStyle properties on your axes. See CPTestApp in the examples folder for some sample code. 来源: https://stackoverflow.com/questions/3341505/how-to-draw-y-axis-grid-in-core-plot

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

…衆ロ難τιáo~ 提交于 2020-01-02 04:42:06
问题 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 regular data... I just wish the x-axis was placed at the minimum y-value for the plot (about 77), instead of at 0. Here is the function I use to create the graph. It's a whole bunch of code, and I'm not quite sure which piece might be off to

Hide alternate lines in scatter chart coreplot

血红的双手。 提交于 2019-12-31 04:50:25
问题 Can we join alternate coordinates using line in coreplot -> scatter graph in ios ? In above picture suppose I want to join alternate points , what i mean is {0,0} - {1,6} will be joined {1,6} - {2,5} wont be joined {2,5} - {3,6} joined and so on ... Is this possible in coreplot ? Any help would be appreciated ! 来源: https://stackoverflow.com/questions/33259802/hide-alternate-lines-in-scatter-chart-coreplot

iOS Core Plot CPTAxisLabel alignment to CPTPlot

て烟熏妆下的殇ゞ 提交于 2019-12-31 02:13:12
问题 Please look at this image below. I have attached file. My problem with CPTAxisLabel labels. They are placed under the tick, but they are not placed under the CPTPlot as I want. How can I add left offset to this labels? I need that my labels will be placed middle the CPTPlot object. (UPDATED:) -(void)configureGraph { NSInteger max = 0; for (NSNumber *number in self.values) { NSInteger num = [number integerValue]; if (num > max) { max = num; } } CPTGraph *graph = [[CPTXYGraph alloc]

Using Core Plot 2 in an Xcode 5 project

╄→гoц情女王★ 提交于 2019-12-29 04:48:04
问题 I'm using the instructions here to integrate Core Plot into my iOS Xcode 5 project and am having no end of issues. I tried using the Static Library Install but it seems this refers to 1.4 as there is no directory called CorePlotHeaders though if I try to use 1.4 I run into runtime issues. I've then tried to drag the CorePlot-CocoaTouch.xcodeproj as described in the Dependent Project Install but this only copies it as if its a file and not the whole project. Is there more current instructions

Installing Core-Plot in Xcode 4.2 for iOS project

陌路散爱 提交于 2019-12-28 05:29:09
问题 I am trying to install Core Plot into my iOS app. I have followed the instructions on the Core Plot website but they are very brief and have no screenshots. I have pasted the instructions below and explained where I am stuck... First, drag the CorePlot-CocoaTouch.xcodeproj file into your iPhone application's Xcode project. Show the project navigator in the left-hand list and click on your project. Select your application target from under the "Targets" source list that appears. Click on the

swift failed with exit code 1 while compiling in Xcode - possibly related to Bridging-Headers

你。 提交于 2019-12-28 05:18:21
问题 I have an Obj-C Project I'm trying to migrate to Swift. I did succeed with various classes but recently ran into an issue I can't seem to make sense of. When I try to compile my current code base I get the following (SUPER UNHELPFUL ERROR MESSAGE) Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 My only assumption is its somehow related to my bridging-headers but Xcode isn't giving me enough information to figure out

swift failed with exit code 1 while compiling in Xcode - possibly related to Bridging-Headers

南笙酒味 提交于 2019-12-28 05:17:07
问题 I have an Obj-C Project I'm trying to migrate to Swift. I did succeed with various classes but recently ran into an issue I can't seem to make sense of. When I try to compile my current code base I get the following (SUPER UNHELPFUL ERROR MESSAGE) Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 My only assumption is its somehow related to my bridging-headers but Xcode isn't giving me enough information to figure out

iOS Scatter core plot with a gap

天大地大妈咪最大 提交于 2019-12-28 04:33:13
问题 How does one draw a scatter plot with a gap using core plot? I was using the core plot library. Everything is working fine but now I want to do a scatter plot with a gap at the beginning or in the middle of the dataline? Someone help me please? 回答1: Have the datasource return nil or [NSNull null] . For example, if the plot has five data points and you return nil for the x or y field at index 2, the plot will draw the points at indices 0 and 1 connected by a line and indices 3 and 4 connected