JuliaPy / JuliaPy/PyPlot.jl

clearer error message for default MacOS matplotlib

未关闭
#103 17 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Julia
星标
488
派生
90
PR 合并指标
30 天内没有已合并 PR

描述

I've imported the PyPlot module like so:
`using PyCall`
`pygui(:tk)`
`using PyPlot`

I then try to use the plot function:
`x=1:10; y=sin(x);`
`plot(x,y)`

But I get this error:
`pltm not defined`
`while loading In[14], in expression starting on line 1`

`in abstract_eval_global at ./inference.jl:1027`
`in abstract_eval_symbol at ./inference.jl:1066`
`in abstract_eval at ./inference.jl:919`
`in abstract_eval_arg at ./inference.jl:866`
`in abstract_eval_call at ./inference.jl:878`
`in abstract_eval at ./inference.jl:935`
`in abstract_eval_arg at ./inference.jl:866`
`in abstract_eval_call at ./inference.jl:878`
`in abstract_eval at ./inference.jl:935`
`in abstract_interpret at ./inference.jl:1107`
`in typeinf at ./inference.jl:1409`
`in typeinf at /Users/tre11/git/julia/usr/lib/julia/sys.dylib`
`in typeinf_ext at ./inference.jl:1216`

This is in the latest stable version of Julia 0.3.4-pre+8, and latest stable versions of python, ipython, matpplotlib, etc.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reproducing the reported Julia 0.3.4 sequence with PyCall, pygui(:tk), PyPlot, and plot(x,y) on macOS. Trace where the `pltm not defined` error is produced; done means the default macOS matplotlib setup reports a clear, actionable error.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia, macos, python
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。