JuliaPy / JuliaPy/PyPlot.jl

Accept both row and column vectors in plot()

未关闭
#101 3 条评论 0 个 reaction 已指派 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 摘要。