JuliaPy / JuliaPy/PyPlot.jl

wrong legend symbols when using handles and labels from get_legend_handles_labels

Đang mở
#401 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Julia
Star
488
Fork
90
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello, when I try to use `get_legend_handles_labels` and use these handles and labels in the legend, I get wrong results for `errobar` plots with actual errors.

this works fine:

```julia
errorbar([1],[2],label = "no error")
errorbar([2],[2],[3],label = "with error")
legend()
```
![image](https://user-images.githubusercontent.com/998651/47157553-e66e4780-d2e9-11e8-8278-16f7ea85a1b9.png)

while this one produces a wrong result:

```julia
errorbar([1],[2],label = "no error")
errorbar([2],[2],[3],label = "with error")
h, l = gca()[:get_legend_handles_labels]()
legend(h,l)
```
![image](https://user-images.githubusercontent.com/998651/47157517-cb9bd300-d2e9-11e8-8e0b-59fe51721b14.png)

I cannot tell you where the problem lies but I hope this can be fixed or there is a workaround... Thanks.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.