Here is some code:

using PyPlot

function chartplay()
    one = figure(1)
    plot(1:4)
    two = figure(2)
    scatter(randn(25),randn(25))
    figure(1)
    title("Title")
    plt[:show]()
    wm = get_current_fig_manager() 
    dump(wm)
    #= python code to get a plot figure window to be topmost.
        I could not figure out how to do these calls
        wm = plt.get_current_fig_manager() 
        wm.window.attributes('-topmost', 1)
        wm.window.attributes('-topmost', 0)
    =#

    #= attempt to use via julia PyPlot -- didn't work
        plt[:window](wm, "-topmost", 1)
        plt[:window](wm, "-topmost", 0)
        # figure 1 should be either the top window of all or at least 
"above" figure 2
    =#
end


Reply via email to