Skip to content

Cannot open multiple figures #316

@tpdsantos

Description

@tpdsantos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions