Skip to content

Cannot use plot() on MacOS & Matlab R2016b #246

Description

@tsdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions