-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use plot() on MacOS & Matlab R2016b #246
Comments
I have seen similar things and have not been able to debug this. I think this has to do with changes introduced in MatlabR2016a, but I am not sure how to get around this. |
I could fix it, if I run Matlab with the -desktop option. However I found that plotting seems to be seriously lagging possibly due to the ZMQ code that keeps Matlab busy. Is this normal behaviour, since I have no experience with the ZMQ library? Is there a way to change the polling interval of ZMQ to give Matlab more time to refresh the figure? |
Had the same issue, on Ubuntu 18.04 with Matlab R2019b. Running |
I am using python 3.6.0 and the latest version of pymatbrige with Matlab R2016b on MacOS 10.12.3. I can communicate with Matlab fine and execute commands, but when I call a plotting script I get the following output:
{'content': {'stdout': 'Unable to create output using specified size and resolution. Specify a smaller value for the PaperPosition property of the figure or specify a smaller resolution value.', 'datadir': '/private/tmp/MatlabData/'}, 'result': [], 'stack': [{'file': '/Applications/MATLAB_R2016b.app/toolbox/matlab/graphics/print.m', 'name': 'print', 'line': 102}, {'file': '/Applications/MATLAB_R2016b.app/toolbox/matlab/general/saveas.m', 'name': 'saveas', 'line': 168}, {'file': '/usr/local/lib/python3.6/site-packages/pymatbridge-0.6.dev0-py3.6.egg/pymatbridge/matlab/util/make_figs.m', 'name': 'make_figs', 'line': 14}], 'success': False}
Matlab is running with -nodesktop option. I tried to run it with the desktop by using:
from pymatbridge import Matlab
mlab = Matlab(startup_options=' -nosplash')
still the Matlab desktop didn't appear.
The text was updated successfully, but these errors were encountered: