我正在尝试将代码从NCL翻译成PyNGL/PyNio。正如我在《转换指南》中所读到的,打印例程的资源文件的处理方式应该与NCL中的工作方式相同。但是,在我的脚本中,python没有 包括资源文件中的任何资源,即使我遵循《转换指南》中的基本示例。这可能是因为我在康达环境中工作吗?还是平格尔有虫子?你知道吗
我正在Conda环境中使用python3.7。我用我自己的代码以及下面包含的一个非常简单的示例代码进行了尝试。你知道吗
#THIS IS THE CODE IN THE MAIN FILE:
import Ngl
wks = Ngl.open_wks("png","title_app")
plot = Ngl.text_ndc(wks,"Hello, World",0.5,0.5)
Ngl.frame(wks)
Ngl.end()
#THIS IS TE CODE IN THE FILE IN THE SAME FOLDER NAMED title_app.res
*txFontColor : red
*txFont : helvetica-bold
*txFontHeightF : 0.06
```python
The text appearing in the file title_app.png does neither appear red nor bold.
目前没有回答
相关问题 更多 >
编程相关推荐