小编Ped*_*ira的帖子

Supressing some labels in legend or putting sampled markers

I am using Julia 1.1.0 and want to do some plotting in it. I am using Plots and pyplot backend for that.

I have two data that I want to plot with the same line style and color, differing them by markers.

Here is an example:

using Plots
pyplot()
nf = 150;
freq = exp10.(range(2, stop=6.4, length=nf)); #logspace
foo1 = (freq*2 .- 3);
foo2 = (freq .- 10);
plot(freq, foo1, label="foo 1", line=(1, :black, :solid), xaxis=:log, yaxis=:log)
plot!(freq, foo2, label="foo …
Run Code Online (Sandbox Code Playgroud)

julia plots.jl

5
推荐指数
1
解决办法
2751
查看次数

标签 统计

julia ×1

plots.jl ×1