hexagon logo

Python / Matplotlib in Adams

Recently I have been using python to generate helpful post-processing graphics. Therefore I used the modul matplotlib. Yet the scripts can't be run directly from adams, always needed to compile these py-scripts into an .exe. Does anybody know how to tell adams to use the installed matplotlib library, or will it be a standard package in a next version?
Parents
  • Hi Stefan,
     
    Matplotlib is nice, isn't it? I will put a request into our feedback system, asking that we include Matplotlib in a future release. If you have another installation of Python on the same machine that is the *same* as the Adams version then you might be able to do this in your script:
    sys.path.append('/location/of/matplotlib')
    that works for simple modules, but I'm not sure it's enough for an entire package.
     
    Regardless, that's how you would add to the search path for Python. I've used that in the past and have been happy with the results, hopefully that is an option for your project..
     
    Thanks,
    Kent
Reply
  • Hi Stefan,
     
    Matplotlib is nice, isn't it? I will put a request into our feedback system, asking that we include Matplotlib in a future release. If you have another installation of Python on the same machine that is the *same* as the Adams version then you might be able to do this in your script:
    sys.path.append('/location/of/matplotlib')
    that works for simple modules, but I'm not sure it's enough for an entire package.
     
    Regardless, that's how you would add to the search path for Python. I've used that in the past and have been happy with the results, hopefully that is an option for your project..
     
    Thanks,
    Kent
Children
No Data