-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
JuliaPy/PyCall.jl
#591Description
Since the last update from PyPlot, PyCall and Conda, everytime I use this function :
function PlotData(BalanceTime,Balance,AbsorbanceTime,Absorbance,Wavelength)
Balfig = figure("Mass") ;
Absfig = figure("Absorbance") ;
if length(Balance) > 1
plot(BalanceTime,Balance,figure=Balfig)
title("Mass vs time")
xlabel("time (s)")
ylabel("Mass (g)")
else
close(Balfig)
end
Absize = size(Absorbance) ;
leg = Array{String}(length(Wavelength)) ;
if Absize[1] > 1
for i = 1:length(Wavelength)
plot(AbsorbanceTime,Absorbance[:,i],figure=Absfig,dash_capstyle="round")
leg[i] = string(Wavelength[i]," ","nm") ;
end
legend(leg)
title("Absorbance vs time")
xlabel("time (s)")
ylabel("AU")
else
close(Absfig)
end
return nothing
end # plotdata function
The second figure, besides opening with a different logo than the first, doesn't respond and eventually crashes julia.
Although I can simply create Absfig after evaluating the Balance values and solving the problem, before the last updates I never had this problem...
Did this happen to anyone?
Thanks
MaxandreJ
Metadata
Metadata
Assignees
Labels
No labels