Julia中的DL

Published

March 22, 2023

using Plots
using StatsPlots, RDatasets
gr()
iris = dataset("datasets", "iris")
@df iris scatter(
    :SepalLength,
    :SepalWidth,
    group=:Species,
    m=(0.5, [:+ :h :star7], 12),
    bg=RGB(0.2, 0.2, 0.2)
)
┌ Info: Precompiling StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd]
└ @ Base loading.jl:1664
┌ Warning: Module Plots with build ID 1540680604487042 is missing from the cache.
│ This may mean Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1325
┌ Info: Skipping precompilation since __precompile__(false). Importing StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd].
└ @ Base loading.jl:1341

RGB(0.2,0.3,0.2)

using Plots
tmin = 0
tmax = 4π
tvec = range(tmin, tmax, length=100)

plot(sin.(tvec), cos.(tvec))

plot(sin, cos, tvec)

using Plots, Images
img = load("/Users/a182501/quarto/program-chunk/cat.jpeg")
plot(img)