Home > 1 > PyDev + Matplotlib + bring to front

PyDev + Matplotlib + bring to front

Обычно окно с графиком pyplot при работе в Eclipse+Pydev оказывается под средой разработки, а это не очень удобно. 

Чтобы это окно оказалось поверх Eclipse, необходимо в самое начало файла с исходным кодом добавить следующие две строчки:

import matplotlib

matplotlib.use("TkAgg")

When you are using Matplotlib with PyDev window with plot is shown under the PyDev window. If you would like to bring in to front, you should ass two line to the very beginning of your python code:
import matplotlib

matplotlib.use("TkAgg")

After that Pyplot window will be shown above your eclipse window.

Advertisements
Categories: 1 Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: