# Heatmap in Ignition

**URL:** <https://forum.inductiveautomation.com/t/heatmap-in-ignition/34632>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [May 11, 2020, 4:01pm UTC](https://forum.inductiveautomation.com/t/heatmap-in-ignition/34632 "2020-05-11T16:01:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![harigobu.gb](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@harigobu.gb](https://forum.inductiveautomation.com/u/harigobu.gb)\
**Post date:** [May 11, 2020, 4:01pm UTC](https://forum.inductiveautomation.com/t/heatmap-in-ignition/34632/1 "2020-05-11T16:01:16Z")

</div>

Hi,

We have received a requirement for realtime quality visual inspection using image processing.  
Already this requirement is deployed as a standalone python application running in a server.  
Since we have developed MES for that line in Ignition vision, Now the user wants to integrate this image processing requirement into Ignition.  
In existing application they do perform some image processing techniques like

1. stitching multiple images to form an actual image.
2. Background extraction and background correction from actual image.
3. Separating different patterns from the actual image.
4. Statistical calculation for each pattern.
5. Heatmaps.
6. Distinguish the high intensity areas.

So If I want to handle these steps in ignition, Importantly We need Heatmap

1. Is it possible/not in vision?.
2. If possible, What approach do i need to take?.

-Thank You.

---

<div class="post-metadata">

**Author:** ![harigobu.gb](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@harigobu.gb](https://forum.inductiveautomation.com/u/harigobu.gb)\
**Post date:** [April 12, 2021, 5:39pm UTC](https://forum.inductiveautomation.com/t/heatmap-in-ignition/34632/2 "2021-04-12T17:39:31Z")

</div>

Can someone give some more guidance how to generate heatmap using JFreechart [`XYBlockRenderer`](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/renderer/xy/XYBlockRenderer.html), I have seen some examples in stackoverflow. However its bit confusing how to create XYZdataset and add paintscale and render the plot using XYBlockRenderer.

---

<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:** [April 12, 2021, 6:13pm UTC](https://forum.inductiveautomation.com/t/heatmap-in-ignition/34632/3 "2021-04-12T18:13:29Z")

</div>

It seems like the documentation must be bought - [Object Refinery Limited - JFreeChart](http://www.object-refinery.com/jfreechart/guide.html)

I don’t know if this is still the only way to get it. Also, if I had to guess, this documentation will be in pure java, not jython, if that makes a difference (though I cannot say that with 100% certainty).

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [April 12, 2021, 6:47pm UTC](https://forum.inductiveautomation.com/t/heatmap-in-ignition/34632/4 "2021-04-12T18:47:26Z")

</div>

Sorry I can't speak on JFreechart but you mention in your original post you have the perspective module so I'm curious if you can use Perspective XY chart for generating your heat map.

Check out Example 1 for the Heat Map configurations.  
[https://docs.inductiveautomation.com/display/DOC81/Perspective+-+XY+Chart](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+XY+Chart)

Edit - updated link  
[https://docs.inductiveautomation.com/display/DOC81/XY+Chart+Example+-+Heat+Map](https://docs.inductiveautomation.com/display/DOC81/XY+Chart+Example+-+Heat+Map)
