Core Plot SDK的用法

CorePlot安装与配置指南
本文档详细介绍了如何使用CorePlot标准Mac安装包为iOS项目添加CorePlot SDK,并概述了安装过程中的一些关键步骤及注意事项,包括正确的编译器版本选择和避免常见的导入错误。

接前一篇博文《开源框架Core Plot的使用》。

如果使用了Core Plot标准Mac安装包进行安装,使用起来有一些变化。其实,如果你注意到安装器的最后一个界面,这里已经有一个如何使用的介绍了:

To add the Core Plot SDKs to an iOS Project:

1. Add to your project's .PCH file:

#import <coreplot></coreplot>

3. Open Project -> Edit Project Settings and for All Configurations :

3a. Add to Additional SDKS :

(System)

/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk

(User)

${HOME}/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk

3b. Add to Other Linker Flags :

-ObjC -all_load -lCorePlot

4. Add the QuartzCore framework to the project.

5. Add a CPGraph to your application.

但即使你step by step,也未必能编译通过一个Core Plot应用项目。

这是因为项目Build Info中,C/C++ Compiler Version必须使用LLVM GCC 4.2,而不能使用GCC 4.2。

另外,如果你在源文件中 #import "CorePlot-CocoaTouch.h" ,将导致一个错误。

因为SDK的头文件是CorePlot.h,而不是CorePlot-CocoaTouch.h。但我们已经在.PCH文件中import过CorePlot.h了,并不需要在源文件中显示地import。


Traceback (most recent call last): File "E:\WORK\数据分析\其他工作内容\02 老乡鸡咨询服务\调研数据\合肥小庙仓数据\时间序列分析\Python_Work\year_month 1.2.PY", line 32, in <module> plot_acf(df, ax=plt.gca(), title='Autocorrelation (ACF) of Differenced Series') File "E:\Python\lib\site-packages\pandas\util\_decorators.py", line 213, in wrapper return func(*args, **kwargs) File "E:\Python\lib\site-packages\statsmodels\graphics\tsaplots.py", line 217, in plot_acf acf_x = acf( File "E:\Python\lib\site-packages\statsmodels\tsa\stattools.py", line 695, in acf x = array_like(x, "x") File "E:\Python\lib\site-packages\statsmodels\tools\validation\validation.py", line 143, in array_like arr = np.require(obj, dtype=dtype, requirements=reqs) File "E:\Python\lib\site-packages\numpy\core\_asarray.py", line 126, in require arr = array(a, dtype=dtype, order=order, copy=False, subok=subok) File "E:\Python\lib\site-packages\pandas\core\generic.py", line 2150, in __array__ arr = np.asarray(values, dtype=dtype) ValueError: could not convert string to float: '小炒肉(肉品),半成品,10份/包,8包/筐' [Finished in 2.7s with exit code 1] [cmd: ['py', '-u', 'E:\\WORK\\数据分析\\其他工作内容\\02 老乡鸡咨询服务\\调研数据\\合肥小庙仓数据\\时间序列分析\\Python_Work\\year_month 1.2.PY']] [dir: E:\WORK\数据分析\其他工作内容\02 老乡鸡咨询服务\调研数据\合肥小庙仓数据\时间序列分析\Python_Work] [path: E:\Python\Scripts\;E:\Python\;E:\上班时间到\鄂州项目开展\Learning!\Python\Scripts\;E:\上班时间到\鄂州项目开展\Learning!\Python\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Users\sl\AppData\Local\Microsoft\WindowsApps;C:\Users\sl\.dotnet\tools;E:\Python;]
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值