Matplotlib.pyplot in Ignition

Hi. I want to use a Python module in Ignition called matplotlib.pyplot, I would like to know how I can do to integrate these modules in my gateway?

regards

Check out this article: http://www.perfectabstractions.com/blog/new-scripting-features-in-ignition-77-part-1#external-python-modules

Hello Nick, this is a module composed of many files.py, copy the folder that contained all the files in the address that says in the guide but still I skip the error.

In fact I already acted and I get this.

matplotlib appears to require Python 2.7 at a minimum.

The version of Jython in Ignition is compatible with 2.5.

This library will not be usable.

And the Numpy Library?
Is there any way to use matplotlib even with an Ignition module?

3rd-party libraries that you integrate using a custom Ignition module need to be written in Java, not Python.

Conceivably, you could use JavaGnuplotHybrid or DataMelt. This would require some effort, and your code would not be compatible with matplotlib. You could also execute external Python code to generate images which you could then serve up to Ignition for display. This would also be quite a bit of work. There is no equivalent of numpy.

Is there any guide to using JavaGnuplotHybrid or DataMelt?

http://jwork.org/dmelt/index.php?id=about

1 Like

[quote=“Juank_Chavarria, post:11, topic:14537”]
How to use this program?

I’m just looking at it for the first time myself. Thought I’d share what I’ve stumbled upon, since we are both trying to access some scientific/engineering calc libraries.

See also: https://github.com/lebigot/uncertainties/

It supports Python 2.3 with unit tests run in Python 2.6. You can include these libraries as the Ignition docs direct the use of 3rd party Python libraries.