JuliaPy / JuliaPy/PyPlot.jl

twinx() and fgcolor issue

Đang mở
#554 2 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ả

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:
```julia
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()```

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.