|
1 |
| -using PyCall |
| 1 | +using PythonCall |
2 | 2 | using SparseArrays
|
3 | 3 | using Images
|
4 | 4 | using Colors
|
@@ -75,7 +75,7 @@ export drawspecies
|
75 | 75 |
|
76 | 76 | """
|
77 | 77 | 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 |
79 | 79 | """
|
80 | 80 | function getfluxdiagram(bsol,t;centralspecieslist=Array{String,1}(),superimpose=false,
|
81 | 81 | maximumnodecount=50, maximumedgecount=50, concentrationtol=1e-6, speciesratetolerance=1e-6,
|
@@ -134,7 +134,7 @@ export getfluxdiagram
|
134 | 134 | """
|
135 | 135 | generates a series of flux diagrams at the time points indicated
|
136 | 136 | 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 |
138 | 138 | """
|
139 | 139 | function makefluxdiagrams(bsol,ts;centralspecieslist=Array{String,1}(),superimpose=false,
|
140 | 140 | maximumnodecount=50, maximumedgecount=50, concentrationtol=1e-6, speciesratetolerance=1e-6,
|
@@ -494,10 +494,10 @@ end
|
494 | 494 | function getcolor(speciesrate,maxspeciesrate,minspeciesrate,colorscheme="viridis")
|
495 | 495 | """
|
496 | 496 | gives the color corresponding to the scaled log species rate
|
497 |
| - for a given PyPlot color scheme |
| 497 | + for a given PythonPlot color scheme |
498 | 498 | """
|
499 | 499 | scale = log(maxspeciesrate)-log(minspeciesrate)
|
500 | 500 | 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] |
502 | 502 | return "#"*hex(RGB(out...))
|
503 | 503 | end
|
0 commit comments