Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
VoronoiFVM = "82b139dc-5afc-11e9-35da-9b9bdfd336f3"

[weakdeps]
PythonPlot = "274fc56d-3b97-40fa-a1cd-1b4a50311bf9"

[extensions]
ChargeTransportPythonPlotExt = "PythonPlot"

[compat]
Aqua = "0.8.14"
Compat = "4.18.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/Ex101_PIN.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end

# supported Plotters are GLMakie and PythonPlot
# you can set verbose also to true to display some solver information
function main(; n = 3, Plotter = nothing, verbose = false, test = false, unknown_storage = :sparse)
function main(; n = 3, Plotter = default_plotter(), verbose = false, test = false, unknown_storage = :sparse)

# unit factors and constants
@local_unitfactors μm cm s ns V K
Expand Down
12 changes: 12 additions & 0 deletions examples/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[deps]
ChargeTransport = "25c3eafe-d88c-11e9-3031-f396758f002a"
ExtendableGrids = "cfc395e8-590f-11e8-1f13-43a2532b2fa8"
GridVisualize = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
PythonPlot = "274fc56d-3b97-40fa-a1cd-1b4a50311bf9"

[sources]
ChargeTransport = {path = ".."}

[compat]
julia = "1.11"
8 changes: 8 additions & 0 deletions ext/ChargeTransportPythonPlotExt.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module ChargeTransportPythonPlotExt
using PythonPlot
using ChargeTransport
using GridVisualize
function __init__()
GridVisualize.default_plotter!(getproperty( ChargeTransportPythonPlotExt, :PythonPlot))
end
end
Loading