# External Python Libraries

**URL:** <https://forum.inductiveautomation.com/t/external-python-libraries/73889>\
**Category:** Ignition\
**Created:** [May 18, 2023, 12:08pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889 "2023-05-18T12:08:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRASHANTH\_KAKKIRALA](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@PRASHANTH\_KAKKIRALA](https://forum.inductiveautomation.com/u/PRASHANTH_KAKKIRALA)\
**Post date:** [May 18, 2023, 12:08pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/1 "2023-05-18T12:08:56Z")

</div>

Can Someone tell me if I can use matplotlib.pyplot in Ignition? I saw some posts where it says these modules are built on C and cannot be supported with Ignition. Is this correct?

If it's compatible, please share an example code. I've copied the necessary Jython library files to Ignition site\_packages folder.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 18, 2023, 12:17pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/2 "2023-05-18T12:17:22Z")

</div>

I don't see a jython version of matplot lib from a cursory google search and in general jython implementations of cython libraries are not usually a top priority for anyone, so there's not too many out there outside of the standard lib (and you should try to avoid that too outside of the basic things tbh).

Even if you did get matplotlib imported though, I assume you are trying to show a graph? If that is the case and you are just trying to show a graph of data, you are probably better off using Ignition's API to make the datasets manually with your own logic and `system.dataset.toDataSet()` and then feeding it to a Chart component.

What is the end goal you are trying to accomplish? Good chance someone here's already tried to do it.

---

<div class="post-metadata">

**Author:** ![PRASHANTH\_KAKKIRALA](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@PRASHANTH\_KAKKIRALA](https://forum.inductiveautomation.com/u/PRASHANTH_KAKKIRALA)\
**Post date:** [May 18, 2023, 12:23pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/3 "2023-05-18T12:23:24Z")

</div>

Yeah. I can use the Ignition XY chart to show the graph, but it doesn't have features like Zoom In/Out or adding Pens or calculating std deviations..etc

Can I use the Power Chart in Perspective with X axis mapped to something other than time

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [May 18, 2023, 12:51pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/4 "2023-05-18T12:51:17Z")

</div>

> [@PRASHANTH\_KAKKIRALA](#):
>
> Zoom In/Out or adding Pens or calculating std deviations..etc

Zoom In/Out is tricky, I believe it can be approximated with the Chart Range Selector, as for the other things, they can absolutely be accomplished with just base perspective components and Ignition's API.

> [@PRASHANTH\_KAKKIRALA](#):
>
> Can I use the Power Chart in Perspective with X axis mapped to something other than time

No, the Power Chart is intended to be used with historical data.

---

<div class="post-metadata">

**Author:** ![PRASHANTH\_KAKKIRALA](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@PRASHANTH\_KAKKIRALA](https://forum.inductiveautomation.com/u/PRASHANTH_KAKKIRALA)\
**Post date:** [May 18, 2023, 2:06pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/5 "2023-05-18T14:06:11Z")

</div>

How about using Seaborn and NumPy libraries in Ignition? are they supported?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 18, 2023, 2:06pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/6 "2023-05-18T14:06:31Z")

</div>

No.

---

<div class="post-metadata">

**Author:** ![PRASHANTH\_KAKKIRALA](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@PRASHANTH\_KAKKIRALA](https://forum.inductiveautomation.com/u/PRASHANTH_KAKKIRALA)\
**Post date:** [May 18, 2023, 2:13pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/7 "2023-05-18T14:13:54Z")

</div>

The reason being is they are associated with C Programming? Can you suggest a python library which can be used to plot the graphs with features like Power chart ?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 18, 2023, 2:16pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/8 "2023-05-18T14:16:48Z")

</div>

Is this for tag values? If so can you use historian? Power chart is made to work with tag historian plug and play.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 18, 2023, 2:16pm UTC](https://forum.inductiveautomation.com/t/external-python-libraries/73889/9 "2023-05-18T14:16:51Z")

</div>

No, because the Power Chart isn't just chart generation, but a web-driven user interface. And it is all javascript, not python or jython. Output from any python library would need to be massaged into a web-compatible format for Perspective, and you'd have no user interface.
