# Using 3rd party python SVG library

**URL:** <https://forum.inductiveautomation.com/t/using-3rd-party-python-svg-library/53462>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 25, 2021, 12:23pm UTC](https://forum.inductiveautomation.com/t/using-3rd-party-python-svg-library/53462 "2021-11-25T12:23:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 25, 2021, 8:48pm UTC](https://forum.inductiveautomation.com/t/using-3rd-party-python-svg-library/53462/4 "2021-11-25T20:48:35Z")

</div>

> [@Reading values from database and converting it using python](https://forum.inductiveautomation.com/t/reading-values-from-database-and-converting-it-using-python/44508/11):
>
> Easysvg is a nice little wrapper to make svg files. Unzip and put in the gateway’s user-lib/pylib/site-packages folder. [easysvg.zip](https://forum.inductiveautomation.com/uploads/short-url/wY51CE88Fu5FMMVecxJajTF2wx2.zip) (6.7 KB) View attached using the csv data posted. The SVG can be converted to base64 to display in an image component. [heatmap\_test.zip](https://forum.inductiveautomation.com/uploads/short-url/DNp1RjLC9yUNKbbFzdiZdg5LHc.zip) (76.0 KB) Script: import easysvg import base64 class heatPalette: ''' Calculate the RGB value of a point on a gradient. Usage: heatPalette(minval, maxval, [colors]) minval - minimun value to sca…

---

_[View the full topic](https://forum.inductiveautomation.com/t/using-3rd-party-python-svg-library/53462)._
