JuliaPy / JuliaPy/PyPlot.jl

surf output image smaller than standard (or specified) figure size in IJulia and doesn't subplot properly

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

描述

The output of surf seems very undersized in IJulia, and cannot be increased by using `figure(figsize=(20,20))`

Also, surf doesn't map to subplots correctly (see 2nd example below)

screen shot 2018-10-18 at 1 22 23 pm

```
using PyPlot

u = range(0.0,stop=2pi,length=300);
v = range(0.0,stop=pi,length=300);

lu = length(u);
lv = length(v);

x = zeros(lu,lv);
y = zeros(lu,lv);
z = zeros(lu,lv);

for uu=1:lu
for vv=1:lv
x[uu,vv]= cos(u[uu])*sin(v[vv]);
y[uu,vv]= sin(u[uu])*sin(v[vv]);
z[uu,vv]= cos(v[vv]);
end
end

colors = rand(lu,lv,3)

figure(figsize=(20,20))
surf(x,y,z,facecolors=colors);
```

screen shot 2018-10-18 at 1 10 38 pm

```
using PyPlot
x = -5:0.25:5
y = (-5:0.5:5)'
x2 = repeat(x,1,length(y))
y2 = repeat(y,length(x),1)
z = sin.(sqrt.(x2.^2 .+ y2.^2))

subplot(2,1,1)
surf(x2,y2,z)

subplot(2,1,2)
surf(x2,y2,z)
```

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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