牛顿盆地在C++中的实现(PYBID11)
nb-cpp的Python项目详细描述
Newton Basins C++实现(PybDun11)< Pyth/Cb++ > Python/C++(pybDun11)程序包生成牛顿盆地图像。< BR/> BR/>安装< BR/>< B/> > Pyp
‘BR/> PIP安装NBCPP
‘BR/>< BR/> >源代码< BR/>< BR/> ` < BR/> PIP安装git+git+https://github.com/gmagno/nb-cpp.git
````
```
````
>````
git clone git@github.com:gmagno/nb-cpp.git
cd nb cpp/
make install
````
`````
ᙽ;示例用法
/>只要运行:
>
````````` python
<#不要忘记先“pip install matplotlib”
将matplotlib.pyplot导入为plt
导入nb-cpp
hsv=nb-cpp.计算(
imw=32,imh=32,有关详细信息,运行:help(nb_py.compute)
rgb=mpl.colors.hsv_to_rgb(hsv)
plt.figure()
plt.imshow(rgb)
plt.show()
````
‘BR/> PIP安装NBCPP
‘BR/>< BR/> >源代码< BR/>< BR/> ` < BR/> PIP安装git+git+https://github.com/gmagno/nb-cpp.git
````
```
````
>````
git clone git@github.com:gmagno/nb-cpp.git
cd nb cpp/
make install
````
`````
ᙽ;示例用法
/>只要运行:
>
````````` python
<#不要忘记先“pip install matplotlib”
将matplotlib.pyplot导入为plt
导入nb-cpp
hsv=nb-cpp.计算(
imw=32,imh=32,有关详细信息,运行:help(nb_py.compute)
rgb=mpl.colors.hsv_to_rgb(hsv)
plt.figure()
plt.imshow(rgb)
plt.show()
````