Giter VIP home page Giter VIP logo

Comments (2)

JohnGriffiths avatar JohnGriffiths commented on May 22, 2024

...btw, in case it wasn't clear: I want to create, save to file, and close the figures in the matlab call, and then render them in the notebook in a separate cell using ipython.display, matplotlib, markdown, or what have you. The latter is easy enough.

from python-matlab-bridge.

arokem avatar arokem commented on May 22, 2024

Hi John - thanks for writing in to ask about this. I think that this error
gets raised, because per-default the instance of Matlab that gets launched
is opened with the -nodisplay flag. When that input is not set, these
arguments are added to the call to Matlab from the command line:

https://github.com/arokem/python-matlab-bridge/blob/master/pymatbridge/pymatbridge.py#L112

So - you can experiment with passing a different set of startup options to
matlab.

Another route is to hack the part of the code that saves figures to files:

https://github.com/arokem/python-matlab-bridge/blob/master/pymatbridge/matlab/functions/make_figs.m

Or to try some of what's described in the SO post:

http://stackoverflow.com/questions/9337662/all-text-is-lost-when-using-opengl-renderer-in-batch-mode

Though I am not so sure how Xvfb would fit in here.

Please do let me know if any of this is helpful for your issue.

On Thu, Oct 3, 2013 at 6:26 AM, John Griffiths [email protected]:

...btw, in case it wasn't clear: I want to create, save to file, and close
the figures in the matlab call, save to file, and then render them in the
notebook in a separate cell using ipython.display, matplotlib, markdown, or
what have you. The latter is easy enough.


Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-25619961
.

from python-matlab-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.