Thanks!
On Thursday, October 29, 2015 at 8:22:32 PM UTC-7, Steven G. Johnson wrote:
>
> A direct translation of the Python code works fine for me (with the
> default TkAgg backend on MacOS):
>
> one = figure(1)
> plot(1:4)
> two = figure(2)
> scatter(randn(25),randn(25))
> figure(1)
> title("Titl
A direct translation of the Python code works fine for me (with the default
TkAgg backend on MacOS):
one = figure(1)
plot(1:4)
two = figure(2)
scatter(randn(25),randn(25))
figure(1)
title("Title")
wm = get_current_fig_manager()
wm[:window][:attributes]("-topmost", 1)
wm[:window][:attributes]("-t
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 topmo
Here are some of the solutions proposed for matplotlib:
with qt4agg backend:
fig = gcf()
fig.canvas.manager.window.raise_()
Here is one that works with tk backend:
import matplotlib.pyplot as plt
wm = plt.get_current_fig_manager()
wm.window.attributes('-topmost', 1)
wm.window.attributes('-top