JuliaPy / JuliaPy/PyPlot.jl

wrong legend symbols when using handles and labels from get_legend_handles_labels

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

説明

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.

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

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

評価

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

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

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