You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on MacOS and using the MacOSX backend. When a plot is displayed and I want to save it, I cannot change the name or go right/left in the text entry, the keyboard is not working. It was working properly before with matplotlib 1.5.1, now I upgraded to 2.0.2 (with anaconda). For now I am using the PyQt5 backend, which is OK, but if I move my plot to my second monitor (higher resolution), the window size stays the same but not the plots which is over-zoomed :-/ Any ideas to make the MacOSX backend works or solved the "dpi" issue for PyQt5?
We are working on a fix for the mixed resolution monitor problem (or it
might have just been merged recently).
Are any keyboard bindings working, or is the problem just for the text
entry widgets?
On Wed, Aug 2, 2017 at 4:39 PM, agallenne ***@***.***> wrote:
Hi,
I am on MacOS and using the MacOSX backend. When a plot is displayed and I
want to save it, I cannot change the name or go right/left in the text
entry, the keyboard is not working. It was working properly before with
matplotlib 1.5.1, now I upgraded to 2.0.2 (with anaconda). For now I am
using the PyQt5 backend, which is OK, but if I move my plot to my second
monitor (higher resolution), the window size stays the same but not the
plots which is over-zoomed :-/ Any ideas to make the MacOSX backend works
or solved the "dpi" issue for PyQt5?
- Operating System: Mac OSX 10.12.6
- Matplotlib Version: 2.0.2
- Python Version: 2.7.13
- Jupyter Version (if applicable):
- Other Libraries:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8982>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-GcNbZ278bcln5HxBYXJNpmaR_Gwks5sUN5ogaJpZM4OroF1>
.
Well, if I copy and past the corresponding corrected file (backend_qt5.py), I have the following error when starting ipython: "ImportError: cannot import name _Backend".
Am I doing something wrong!
That file also depends on other files that have changed since 2.0.2 has been released, so just copying that file will not work. I'll let the OSX devs comment on the best way to install off master.
Zoom is indeed working for the macosx backend (note that I used a terminal to run python with: ipython --pylab). It worked before with previous version of matplotlib and ipython. What about PyQt5 and the changes from #8931, how can I make them work on my computer?
On Thu, Aug 3, 2017 at 9:41 AM, agallenne ***@***.***> wrote:
Zoom is indeed working for the macosx backend (note that I used a terminal
to run python with: ipython --pylab). It worked before with previous
version of matplotlib and ipython. What about PyQt5 and the changes from
#8931 <#8931>, how can I
make them work on my computer?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8982 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-EZoOxu_hbFNojhHvHiroE32NPLwks5sUc4JgaJpZM4OroF1>
.
Ok, so I removed all matplotlib versions I had in my .../site-packages/ directory, and installed the fresh one. The PyQt5 mixed resolution display (#8931) issue is fixed for me now. Thanks.
If I run a plot from the command line using pythonw, I can't reproduce any problems with the keyboard. The default keybindings work and saving a figure is fine.
@jklymak, in a conda environment, this works for me with matplotlib 2.1.0.post222+gad730d131 (which is just what I happen to have in that environment at the moment):
(test) efiring@manini2:~/currents/temp/merger_qt2$ pythonw `which ipython`
Python 3.5.2 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:52:12)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: %matplotlib osx
In [2]: import matplotlib.pyplot as plt
In [3]: plt.plot([1,2,3,2,1])
[<matplotlib.lines.Line2D at 0x115e157b8>]
Both the forward/back/home buttons and the keyboard events are working fine for me with the current v2.1.x branch in IPython (using %matplotlib osx). I'm going to close this out, but feel free to re-open if you find this is a problem with 2.1.1 when that is released.
Activity
WeatherGod commentedon Aug 2, 2017
agallenne commentedon Aug 2, 2017
Keyboard bindings are not working either. Other things like zooming seem to work correctly.
dstansby commentedon Aug 2, 2017
#8931 fixed the mixed resolution issue on Qt5. I'm not seeing the same issues as you on the OSX backend, so maybe it's a python 2 only issue.
agallenne commentedon Aug 2, 2017
Ok thank you very much. Do I have to make the changes from #8931 in the .py files myself or I can download them somewhere?
agallenne commentedon Aug 2, 2017
Well, if I copy and past the corresponding corrected file (backend_qt5.py), I have the following error when starting ipython: "ImportError: cannot import name _Backend".
Am I doing something wrong!
anntzer commentedon Aug 2, 2017
That file also depends on other files that have changed since 2.0.2 has been released, so just copying that file will not work. I'll let the OSX devs comment on the best way to install off master.
tacaswell commentedon Aug 3, 2017
How exactly
The problem with mac may be related related to IPython's switch from readline -> prompt toolkit (but if zoom is working, that may not be the issue).
Have you tried doing
%matplotlibto make sure the event loop integration is set up correctly?There are also issue with osx + 'framework' builds see http://matplotlib.org/faq/osx_framework.html#osxframework-faq
agallenne commentedon Aug 3, 2017
Zoom is indeed working for the macosx backend (note that I used a terminal to run python with: ipython --pylab). It worked before with previous version of matplotlib and ipython. What about PyQt5 and the changes from #8931, how can I make them work on my computer?
WeatherGod commentedon Aug 3, 2017
agallenne commentedon Aug 3, 2017
I did it yesterday and it did not change anything unfortunately.
agallenne commentedon Aug 4, 2017
Ok, so I removed all matplotlib versions I had in my .../site-packages/ directory, and installed the fresh one. The PyQt5 mixed resolution display (#8931) issue is fixed for me now. Thanks.
tacaswell commentedon Aug 5, 2017
@mdehoon Any guidance on what is wrong with the native backend?
5 remaining items
dopplershift commentedon Oct 23, 2017
I can't get IPython to run with the osx backend.
If I run a plot from the command line using
pythonw, I can't reproduce any problems with the keyboard. The default keybindings work and saving a figure is fine.tacaswell commentedon Oct 23, 2017
The issue in IPython is likely missing integration with prompt toolkit (attn @Carreau )
jklymak commentedon Nov 6, 2017
@dopplershift I can't get ipython to rin the macos backend either. It gives me the "Framework required" error...
tacaswell commentedon Nov 7, 2017
I observed this issue on a number of systems today, but did not get details of IPython / OSX versions, but mostly with mpl 2.1 (I think?).
efiring commentedon Nov 8, 2017
@jklymak, in a conda environment, this works for me with matplotlib 2.1.0.post222+gad730d131 (which is just what I happen to have in that environment at the moment):
jklymak commentedon Nov 8, 2017
Ah OK, didn't think to try a magic! Thanks!
jklymak commentedon Nov 8, 2017
Oh, and the
which pythontrick. OK that works. But...efiring commentedon Nov 8, 2017
...but the buttons don't work quite right. Very strange. Zoom and pan seem to work, but home, backwards, and forwards are erratic.
dopplershift commentedon Nov 13, 2017
Both the forward/back/home buttons and the keyboard events are working fine for me with the current v2.1.x branch in IPython (using
%matplotlib osx). I'm going to close this out, but feel free to re-open if you find this is a problem with 2.1.1 when that is released.