Datatip maximized window linux

조회 수: 1 (최근 30일)
Mark
Mark 2017년 2월 22일
답변: Mark 2017년 2월 22일
When a plot is maximized, the datacursor doesn't follow the mouse in Linux (Fedora/Ubuntu).
Basically all versions in recent memory suffer from this including R2016b.

답변 (1개)

Mark
Mark 2017년 2월 22일
You need to install wmname
dnf install wmname
apt-get install wmname
Now you should change the window manager name to LG3D. Before executing matlab, run
wmname LG3D
matlab
This bugreport helped me solve the issue.
Permanently setting wmname
For some reason, you can’t just add wmname LG3D to .bashrc. Maybe the window manager needs to be enabled first. Instead, I created a shadow matlab script that sets the command everytime.
I assume you are running all commands as root. You can change to root with the sudo -i command.
To do this, move the old Matlab launcher
cd /usr/local/MATLAB/R2016b/bin
mv matlab matlab_actual
Now create a new file called matlab with the following content
#!/bin/sh
wmname LG3D
/usr/local/MATLAB/R2016a/bin/matlab_actual "$@"
Make sure you use "$@" and not just $@ as explained here.
Now make sure the new file is executable
chmod +x matlab

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by