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/6053a865a992c4d09f8068c62578c660c35d9ad2539dd859d4ecf10a8de43131.png

Runtime information#

import Pkg
Pkg.status()
Status `/tmp/Project.toml`
  [91a5bcdd] Plots v1.40.17
  [274fc56d] PythonPlot v1.0.6
import InteractiveUtils
InteractiveUtils.versioninfo()
Julia Version 1.11.6
Commit 9615af0f269 (2025-07-09 12:58 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: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
  JULIA_CI = true
  JULIA_NUM_THREADS = auto
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_PATH = /usr/local/julia/

This notebook was generated using Literate.jl.