問題タブ [datashader]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
94 参照

python - matplotlib サブプロットにデータシェーダーを追加する - 位置引数エラー

データシェーダーの出力を plt サブプロットへの入力として使用したいと考えています。

この質問への回答で提案されているコードを実行しようとしています: Add datashader image to matplotlib subplots

以下にコードを示します。

エラーが発生します:

DSArtist のソース コードはこちら ( https://github.com/holoviz/datashader/pull/200/files ) で調べてみましたが、よくわかりません。

エラーを解決するには?

ありがとう!

0 投票する
1 に答える
299 参照

python - Holoviews "Points" working with Datashader but "Curve" is throwing an error

I'm working with large data (~25million points) in Python in Jupyter Notebook and want to have an interactive graph that also doesn't take forever to load. Using Bokeh gives me the interactivity and Holoviews and Datashader allows the data to be graphed relatively quickly.

Python: 3.7.6
Bokeh: 1.4.0
Holoviews: 1.14.3
Numpy: 1.19.5
Pandas: 1.0.1
Numba: 0.48.0

I have no problem running this example code:

Which gives a nice graph: enter image description here

But when I switch the Holoviews options from "Points" to "Curve" (which was the original code) like so:

I am given this long error:

If I remove the "datashade" line and just graph the Holoviews curve graph, then it works fine. But if it was a 25 million point graph, it would take forever, hence why I need Datashader:

Output graph: enter image description here

Any ideas as to what could be causing this error? I can provide any additional information if needed.