twinx() and fgcolor issue
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- julia, matplotlib
調査の方向性
まず、issue に示されている、pyplot() バックエンドと twinx() 呼び出しを使った最小の Julia 例を実行します。twinx() 周辺のバックエンド処理と、報告された fgcolor エラーを追跡します。完了の条件は、2 つの y 軸と背景色を維持したまま、例が UndefVarError なしで実行できることです。
索引モデルが issue の本文から書いたものです。
説明
I'm having an error when using pyplot backend, and twinx().
If I modify the backgroud color and try to use twinx() to have 2 y axes, I get the following error:
ERROR: UndefVarError: fgcolor not defined.
I'm using Arch linux and I installed Julia from the AUR package julia-bin.
Below is a minimum example to reproduce the error:
using Plots
using LaTeXStrings
pyplot()
plot_font = "CMU Typewriter Text"
default(fontfamily=plot_font,
linewidth=2, framestyle=:box,
label=nothing, grid=true, minorgrid=true,
minorgridls=:dot, gridls=:dash,
gridlw=1, minorgridlw=0.75,
background_color=RGB(7/255,54/255,66/255),
# fgcolor=RGB(255/255,255/255,255/255),
right_margin=15Plots.mm,
bottom_margin=5Plots.mm
)
a = 1:10
b = rand(10)
plot(a,b, label = L"randData", ylabel = "Rand data",color = :red, legend = :topleft)
p = twinx()
plot!(p,a,log.(a), label = L"log(x)", legend = :topright, ylabel = "The right Y label",
xlabel = "numbers")
#savefig("test")
gui()```
- 主要言語
- Julia
- スター
- 489
- フォーク
- 90
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaPy/PyPlot.jl のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
julia PyPlot support missing data対応中かも @deszoeke が 668 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
JuliaPy/PyPlot.jl の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ohno/Antique.jl#165 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
SciML/DiffEqNoiseProcess.jl#342 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信