core-plot

Error: “-[UIView setHostedGraph:]: unrecognized selector” while executing the core plot in iPhone app

拟墨画扇 提交于 2019-12-02 05:49:59
I get the below error when I try to compile the below code: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setHostedGraph:]: unrecognized selector sent to instance 0x6768c10' Code: UIView *ChartView; ChartView = [[UIView alloc] init]; graph = [[CPXYGraph alloc] initWithFrame: ChartView.bounds]; CPGraphHostingView *hostingView = (CPGraphHostingView *)ChartView; hostingView.hostedGraph = graph; What could be wrong? You're casting a UIView instance (which does not respond to -setHostedGraph: ) to a CPGraphHostingView . - This will not work. You'll need

Background ImageView is upside down(flipped) when I use CPTPGraphHostingView [Core plot]

送分小仙女□ 提交于 2019-12-02 05:31:26
问题 I am using core plot 1.0 in my iphone app. All works fine, graphs are drawing perfectly, But I am facing a weird problem that All the controls on graph page(CPTPGraphHostingView) are mirrored. Ie: On that xib file, I set the class in class Identity of top UIView to CPTPGraphHostingView, then problem arises. Please help me how to solve this. The controls appear correctly in interface builder, but when I run the project all gets messed up. Even I have tried to add background Image

Getting Error : “ CorePlot-CocoaTouch.h: No such file or directory” while implementing Core-Plot in iPhone SDK

淺唱寂寞╮ 提交于 2019-12-02 04:28:27
I am getting the following error when I try to implement Core-Plot in my iPhone app. CorePlot-CocoaTouch.h: No such file or directory I downloaded installed the Core-plot package from the below link http://code.google.com/p/core-plot/w/list Still it does not seem to work and gives error as mentioned above. What could be wrong? Ishu Use this link , and add -all_load and -Objc in other linker Flags (get info -> build (in linking section you find other linker flags)). And give complete path in header search paths (in search path section) for your core-plot framework. Looks like .../core-plot

CorePlot MonoMac bindings crashing

≯℡__Kan透↙ 提交于 2019-12-02 04:22:59
I am trying to use the CorePlot 0.9 binding for monomac, but that seems to be a hard task. The monotouch sample builds and runs without any problems, but I don't need that one. Since only a CorePlotiOS.dll was present in the binding, I had to build one for osx myself, but first of af all, no bmake.exe was present, so I had to download the monomac source and build it myself first. Then I tried to build the CorePlotOSX.dll but that caused some compilation problems. Looking at the build-script for mono touch I tried with this line instead: MONO_PATH=$(MONOMAC)/src mono $(MONOMAC)/src/bmac.exe -e

CorePlot iPhone error : CorePlot-CocoaTouch.h: no such file or directory

限于喜欢 提交于 2019-12-02 04:19:22
I'm trying to walk someone through adding CorePlot to their iPhone app. I have it working on my computer, but he keeps getting the CorePlot-CocoaTouch.h: no such file or directory error. I get the same error if I mess up the "header search paths" in the build settings. Otherwise, I can build it just fine. The only difference in our setup is that I'm using XCode 3.2.3 and he is using a previous version. Would that cause an issue like this? The only thing I can think of is that his header search path is not getting read correctly, because we've verified that the header search path is correct on

Hide alternate lines in scatter chart coreplot

本秂侑毒 提交于 2019-12-02 03:57:58
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

core-plot iOS reversed Y axis

筅森魡賤 提交于 2019-12-02 02:59:34
问题 I would like to use core-plot to display a water depth graph (updated in real time) but I can't figure out how to reverse the Y axis, so that the X axis (representing the time domain) is on the top of my UIView and the Y axis grows towards the bottom with positive values. EDIT It would be even better if I could draw axes like this: - X axis is time - Y axis is from 0 to X (X > 0) and on the top there is 0, on the bottom there is X - X axis is on the bottom ASCII version: 0 | 1 | . . . x | ---

How to set arrows at the end of Core Plot axis?

二次信任 提交于 2019-12-02 02:20:53
I found Core Plot as very nice plotting library. But there is small issue: I can not find any way to set directional arrows at the end of axis for plots. Am I missing something here maybe? This isn't supported by Core Plot yet. You can add an enhancement request at the Core Plot issue tracker . No guarantees on when something like this will be implemented, but an open issue will keep it on the radar. In the meantime, you could fake it using a plot space annotation to position your own arrow at the proper spot. The annotation content could be CPTLayer with a background image of the arrow or a

Core Plot skipped values Graph

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 02:09:26
问题 i'm trying to draw a Graph with a user-friendly timeline having every day/week (to be decided by time range) as a label at x-axis. However, the datasource values are given on another basis - there might be 10 entries one day and the eleventh comes in a month. See the photoshop image: With the latest Core Plot drop I cannot find a way to do it, need your help. Regards, user792677. 回答1: The scatter plot asks the datasource for x-y pairs of data. There is no requirement that either value follow

core-plot iOS reversed Y axis

谁说我不能喝 提交于 2019-12-02 02:00:48
I would like to use core-plot to display a water depth graph (updated in real time) but I can't figure out how to reverse the Y axis, so that the X axis (representing the time domain) is on the top of my UIView and the Y axis grows towards the bottom with positive values. EDIT It would be even better if I could draw axes like this: - X axis is time - Y axis is from 0 to X (X > 0) and on the top there is 0, on the bottom there is X - X axis is on the bottom ASCII version: 0 | 1 | . . . x | -------------------------- 0 1 2 3 4 5 6 7 ... You can use a negative length for the plot range to reverse