JuliaPy / JuliaPy/PyPlot.jl

Accept both row and column vectors in plot()

オープン
#101 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Julia
スター
488
フォーク
90
PR マージ指標
30日以内にマージされた PR はありません

説明

It would be nice if the `plot()` command could accept row vectors as well as column vectors. As it is now, this code doesn't work:

```
julia> x = [1 2 3 4];
julia> y = [2 3 5 8];
julia> plot(x,y)
```

The reason is that Matplotlib is finicky about accepting row vectors vs column vectors. This is a needless limitation in Matplotlib that prevents some simple examples from working correctly. To get around this limitation, PyPlot could/should transpose the vectors as needed before giving them to Matplotlib. It is an easy fix that would make the PyPlot more useful.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。