小编Luf*_*ufu的帖子

如何使用 Plots.jl 缩放字体大小

有没有办法一次重新调整所有字体大小(图例、刻度标签、轴标签……)?

Filippo VicentiniSlack上的原始问题。

plot julia plots.jl

4
推荐指数
1
解决办法
1544
查看次数

如何在 julia 中编辑文件的一行?

我可以读取文件并根据这样的谓词找到特殊行

open(file, read=true, write=true, append=true) do io
    for line in eachline(io)
        if predicate(line)
            new_line = modifier(line)
            # how to replace the line with new_line in the file now?
        end
    end
end
Run Code Online (Sandbox Code Playgroud)

但现在如何更改文件中的内容呢?

io file julia

3
推荐指数
1
解决办法
1583
查看次数

标签 统计

julia ×2

file ×1

io ×1

plot ×1

plots.jl ×1