# Matplotlib.pyplot in Ignition

**URL:** <https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537>\
**Category:** 3rd Party Modules\
**Created:** [June 15, 2017, 8:58pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537 "2017-06-15T20:58:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [June 15, 2017, 8:58pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/1 "2017-06-15T20:58:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [June 16, 2017, 8:14am UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/2 "2017-06-16T08:14:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [June 16, 2017, 4:51pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/3 "2017-06-16T16:51:52Z")

</div>

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.

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9a1b31b76bda337d5a2c29d38ad0f7ff56eacaf5.png)

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [June 16, 2017, 4:54pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/4 "2017-06-16T16:54:43Z")

</div>

In fact I already acted and I get this.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/64af4637b8390fb10f0606efec1c526b15ca8cb8.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 16, 2017, 5:11pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/5 "2017-06-16T17:11:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [June 16, 2017, 5:18pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/6 "2017-06-16T17:18:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 16, 2017, 5:22pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/7 "2017-06-16T17:22:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ingraham](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@ingraham](https://forum.inductiveautomation.com/u/ingraham)\
**Post date:** [June 20, 2017, 1:51pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/8 "2017-06-20T13:51:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [June 20, 2017, 2:47pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/9 "2017-06-20T14:47:22Z")

</div>

Is there any guide to using JavaGnuplotHybrid or DataMelt?

---

<div class="post-metadata">

**Author:** ![dmdrendall](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dmdrendall](https://forum.inductiveautomation.com/u/dmdrendall)\
**Post date:** [November 10, 2017, 8:33pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/10 "2017-11-10T20:33:58Z")

</div>

[http://jwork.org/dmelt/index.php?id=about](http://jwork.org/dmelt/index.php?id=about)

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [November 17, 2017, 9:52pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/12 "2017-11-17T21:52:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dmdrendall](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dmdrendall](https://forum.inductiveautomation.com/u/dmdrendall)\
**Post date:** [November 20, 2017, 10:00pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/13 "2017-11-20T22:00:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dmdrendall](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dmdrendall](https://forum.inductiveautomation.com/u/dmdrendall)\
**Post date:** [November 21, 2017, 3:42pm UTC](https://forum.inductiveautomation.com/t/matplotlib-pyplot-in-ignition/14537/14 "2017-11-21T15:42:29Z")

</div>

See also: [https://github.com/lebigot/uncertainties/](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.
