Advertisement
Guest User

Julia multiple plot output

a guest
Dec 8th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 2.71 KB | None | 0 0
  1. Code
  2.  
  3. ```
  4. using Plots
  5. pyplot()
  6. p1 = plot(rand(5))
  7. p2 = plot(rand(50), reuse=false)
  8. ```
  9.  
  10. Output:
  11.  
  12. ```
  13. ┌ Warning: No working GUI backend found for matplotlib
  14. └ @ PyPlot ~/.julia/packages/PyPlot/NsAWt/src/init.jl:153
  15. ┌ Warning: Error requiring `PyPlot` from `Plots`
  16. │   exception =
  17. │    ArgumentError: not a path: `/home/archisman/.julia/packages/Plots/UTR4H/src/backends/pyplot.jl`
  18. │    Stacktrace:
  19. │      [1] RelocatableFolders.Path(mod::Module, dir::String, path::String, ignore::Nothing)
  20. │        @ RelocatableFolders ~/.julia/packages/RelocatableFolders/xuLyx/src/RelocatableFolders.jl:55
  21. │      [2] _path(sym::Function)
  22. │        @ Plots ~/.julia/packages/Plots/UTR4H/src/backends.jl:59
  23. │      [3] top-level scope
  24. │        @ ~/.julia/packages/Plots/UTR4H/src/backends.jl:95
  25. │      [4] eval
  26. │        @ ./boot.jl:368 [inlined]
  27. │      [5] eval
  28. │        @ ~/.julia/packages/Plots/UTR4H/src/Plots.jl:1 [inlined]
  29. │      [6] (::Plots.var"#638#641")()
  30. │        @ Plots ~/.julia/packages/Requires/Z8rfN/src/require.jl:101
  31. │      [7] macro expansion
  32. │        @ timing.jl:382 [inlined]
  33. │      [8] err(f::Any, listener::Module, modname::String, file::String, line::Any)
  34. │        @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:47
  35. │      [9] (::Plots.var"#637#640")()
  36. │        @ Plots ~/.julia/packages/Requires/Z8rfN/src/require.jl:100
  37. │     [10] withpath(f::Any, path::String)
  38. │        @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:37
  39. │     [11] (::Plots.var"#636#639")()
  40. │        @ Plots ~/.julia/packages/Requires/Z8rfN/src/require.jl:99
  41. │     [12] #invokelatest#2
  42. │        @ ./essentials.jl:729 [inlined]
  43. │     [13] invokelatest
  44. │        @ ./essentials.jl:726 [inlined]
  45. │     [14] foreach(f::typeof(Base.invokelatest), itr::Vector{Function})
  46. │        @ Base ./abstractarray.jl:2774
  47. │     [15] loadpkg(pkg::Base.PkgId)
  48. │        @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:27
  49. │     [16] top-level scope
  50. │        @ ~/.julia/packages/Plots/UTR4H/src/backends.jl:810
  51. │     [17] eval
  52. │        @ ./boot.jl:368 [inlined]
  53. │     [18] _initialize_backend(pkg::Plots.PyPlotBackend)
  54. │        @ Plots ~/.julia/packages/Plots/UTR4H/src/backends.jl:809
  55. │     [19] backend(pkg::Plots.PyPlotBackend)
  56. │        @ Plots ~/.julia/packages/Plots/UTR4H/src/backends.jl:260
  57. │     [20] #pyplot#315
  58. │        @ ~/.julia/packages/Plots/UTR4H/src/backends.jl:81 [inlined]
  59. │     [21] pyplot()
  60. │        @ Plots ~/.julia/packages/Plots/UTR4H/src/backends.jl:81
  61. │     [22] top-level scope
  62. │        @ ~/Documents/GitHub/skyrmion-graphene/new.jl:4
  63. └ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:51
  64. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement