# Scatter Chart

**URL:** <https://forum.inductiveautomation.com/t/scatter-chart/5312>\
**Category:** Ignition\
**Created:** [October 23, 2012, 2:32pm UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312 "2012-10-23T14:32:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [October 23, 2012, 2:32pm UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/1 "2012-10-23T14:32:49Z")

</div>

I was wondering if anyone out there has tried using matplotlib within ignition. I need to do some charting that simply isn’t available in ignition natively at this time. I need to produce a scatter chart like the one attached for starters.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6819efbc03ab11f6288cc3f8407feb46300253e3.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:** [October 23, 2012, 2:53pm UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/2 "2012-10-23T14:53:06Z")

</div>

Matplotlib and some of the other numeric/sci libraries that people always want to use (NumPy/SciPy) won’t work in Ignition because they rely on native C/C++ code.

---

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [October 23, 2012, 2:57pm UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/3 "2012-10-23T14:57:12Z")

</div>

Kevin  
Thanks Could you point me in a direction that would enable me to create this chart on a screen in ignition? I am sure someone hs done scatter chart like this before in ignition.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 23, 2012, 6:10pm UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/4 "2012-10-23T18:10:56Z")

</div>

This is not a “scatter chart”: it is a polar bubble chart. Ignition doesn’t have anything like this built-in. I’ve never seen anyone ask for this before.

Perhaps this would be a good opportunity to show off the awesome power of our paintable canvas component…stay tuned.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 23, 2012, 6:47pm UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/5 "2012-10-23T18:47:52Z")

</div>

Ok, so in 118 lines of Python, I created one of these from scratch. I made it as a template which you can download here. If you drill into the template you’ll see the Paintable Canvas component that makes it work. (Note that paintable canvases only paint in preview/runtime, not design time) You’ll see there are a bunch of parameters to alter the scales of the distance and magnitude. You may wish to map these as template parameters.  
[PolarBubbleChart\_Template.proj](https://s3.amazonaws.com/files.inductiveautomation.com/legacy_forum_attachments/polarchart.proj) (20 KB)  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/df00208cdfbae6521cddd5d71c2734ae6779af22.PNG)

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [October 24, 2012, 10:20am UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/6 "2012-10-24T10:20:32Z")

</div>

Now that’s impressive!

---

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [October 24, 2012, 10:59am UTC](https://forum.inductiveautomation.com/t/scatter-chart/5312/7 "2012-10-24T10:59:54Z")

</div>

Carl  
Thanks man that is just what i needed. We have several projects where i will use this a lot. We have mobile equipment that has a swing angle and several different distance items that are in direct correlation to that angle.  
This is also good for me to see how this control can be used I have yet to look into it pretty nice.

Thanks Again
