-
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
Python stalls and throws a Java exception whenever plotting functions are called. #244
Comments
same here unfortunately! Any ideas on other similar options that don't throw these errors are appreciated as well. I'd need the plots, but I have the feeling that this is my best bet with the new matlab version. I have seen this issue being mentioned as related to the matlab version 2016a. Maybe downgrading matlab is a possibility for now. Things other than plotting work well for me. Anaconda , Ubuntu 14.04 , Matlab 2016a. |
Yes - I now have Matlab2016 and I am seeing the same issues with plotting. The MatlabInterpreterError that gets thrown says: "Images must contain fewer than 2^32 - 1 bytes of data." It looks like images are getting generated at some unreasonably high http://stackoverflow.com/questions/34113784/saving-a- I am not sure why that's happening, though. On Wed, Aug 17, 2016 at 5:36 AM, trummelbummel [email protected]
|
@arokem How are you viewing that MatlabInterpreterError? |
It gets raised by cell 3 in this notebook: https://github.com/arokem/python-matlab-bridge/blob/master/pymatbridge/examples/matlab_magic.ipynb On Wed, Aug 17, 2016 at 12:12 PM, Cosmo [email protected] wrote:
|
@arokem All I see is this: |
I see that first, but then after a short wait: On Wed, Aug 17, 2016 at 12:44 PM, Cosmo [email protected] wrote:
|
@arokem Ahh, I see. I guess I should have let the code run a bit longer. What are your thoughts on how to fix it? I've only just started diving into your program so I don't yet have any grand ideas of my own. |
One possible place that might be causing this is the setting of plot https://github.com/arokem/python-matlab-bridge/blob/master/pymatbridge/pymatbridge.py#L332-L341 If the API of this changed in Matlab 2016, something in there might cause On Wed, Aug 17, 2016 at 4:38 PM, Cosmo [email protected] wrote:
|
I am not quite sure why the size of the image would be relevant if I'd save my images within the matlab script and do not pass them back to python? Whereas I would like to pass back the computed values to python. |
I think that something in this setup is causing Matlab to create images On Wed, Aug 17, 2016 at 11:48 PM, trummelbummel [email protected]
|
Ah thank you! I didn't see that. |
As the title states, plotting doesn't seem to work on my system whatsoever. I am running Ubuntu 16.04 with MATLAB R2016a and Python 3.5 installed via Anaconda. I've updated IPython to version 5.1 as well, and zeromq is version 4.1.4.
The error can be replicated by attempting to run either example notebook (matlab_magic.ipynb or pymatbridge.ipynb) or by simply trying to run matlab.plot(x), matlab.bar(x), or any other plotting command after starting a MATLAB server.
Here's the exception:
The text was updated successfully, but these errors were encountered: