Skip to content

Commit 9163eed

Browse files
committed
Switch to PythonPlot
1 parent db530a2 commit 9163eed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fluxdiagrams.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using PyCall
1+
using PythonCall
22
using SparseArrays
33
using Images
44
using Colors
@@ -75,7 +75,7 @@ export drawspecies
7575

7676
"""
7777
generates and returns the image of a single flux diagram at the given time point
78-
all PyPlot colorscheme names are valid inputs for colorscheme
78+
all PythonPlot colorscheme names are valid inputs for colorscheme
7979
"""
8080
function getfluxdiagram(bsol,t;centralspecieslist=Array{String,1}(),superimpose=false,
8181
maximumnodecount=50, maximumedgecount=50, concentrationtol=1e-6, speciesratetolerance=1e-6,
@@ -134,7 +134,7 @@ export getfluxdiagram
134134
"""
135135
generates a series of flux diagrams at the time points indicated
136136
each flux diagram will have the same nodes and edges as determined by the options
137-
all PyPlot colorscheme names are valid inputs for colorscheme
137+
all PythonPlot colorscheme names are valid inputs for colorscheme
138138
"""
139139
function makefluxdiagrams(bsol,ts;centralspecieslist=Array{String,1}(),superimpose=false,
140140
maximumnodecount=50, maximumedgecount=50, concentrationtol=1e-6, speciesratetolerance=1e-6,
@@ -494,10 +494,10 @@ end
494494
function getcolor(speciesrate,maxspeciesrate,minspeciesrate,colorscheme="viridis")
495495
"""
496496
gives the color corresponding to the scaled log species rate
497-
for a given PyPlot color scheme
497+
for a given PythonPlot color scheme
498498
"""
499499
scale = log(maxspeciesrate)-log(minspeciesrate)
500500
value = (log(abs(speciesrate))-log(minspeciesrate))/scale
501-
out = PyPlot.get_cmap(colorscheme)(value)[1:3]
501+
out = PythonPlot.get_cmap(colorscheme)(value)[1:3]
502502
return "#"*hex(RGB(out...))
503503
end

0 commit comments

Comments
 (0)