JuliaPy / JuliaPy/PyPlot.jl

Accept both row and column vectors in plot()

Open
#101 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
488
Forks
90
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.