gpt4 book ai didi

Python 相当于 Mathematica 中的 ArrayPlot?

转载 作者:太空宇宙 更新时间:2023-11-03 17:17:55 25 4
gpt4 key购买 nike

经过多次谷歌搜索后,我决定应该问这个问题。

我想要以下功能,但我根本不知道如何做到这一点。

https://reference.wolfram.com/language/ref/ArrayPlot.html

基本上,我想生成一个网格图,其中每个像素的颜色由我指定。

谢谢!

最佳答案

matplotlib包中,有一个函数imshow .

关于Python 相当于 Mathematica 中的 ArrayPlot?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33464973/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com