Plotting with PythonPlot.jl

Plotting with PythonPlot.jl#

Using Literate.jl

import PythonPlot as plt
using Random
Random.seed!(2022)
Random.TaskLocalRNG()
plt.figure()
plt.plot(1:5, rand(1:6, 5))
plt.gcf()
_images/eec9454a7b3dc7650cdb5a603d3cfa6342ab7146a1bb77eb7010dfcc46b6816d.png

Runtime information#

import Pkg
Pkg.status()
Status `~/work/template-juliabook/template-juliabook/Project.toml`
  [274fc56d] PythonPlot v1.0.5
import InteractiveUtils
InteractiveUtils.versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × AMD EPYC 7763 64-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 2 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
  JULIA_CI = true
  LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.12.7/x64/lib
  JULIA_PROJECT = /home/runner/work/template-juliabook/template-juliabook/Project.toml
  JULIA_DEPOT_PATH = /home/runner/.julia:/opt/hostedtoolcache/julia/1.11.1/x64/local/share/julia:/opt/hostedtoolcache/julia/1.11.1/x64/share/julia
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_NUM_THREADS = 2
  JULIA_LOAD_PATH = @:@v#.#:@stdlib
  JULIA_PYTHONCALL_EXE = /opt/hostedtoolcache/Python/3.12.7/x64/bin/python

This notebook was generated using Literate.jl.