# Perspective - Best Way To Display Grid 10,000 x 384

**URL:** <https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 1, 2021, 4:47pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526 "2021-09-01T16:47:28Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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:** [September 2, 2021, 4:20pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/21 "2021-09-02T16:20:01Z")

</div>

The pypng library is a straight port. The attached script package has the pypng (png) library along with a couple of helper functions to process the DINTs to a list of lists suitable for pypng… File size stays about 480k  
[test\_graphics\_2021-09-02\_1214.zip](https://forum.inductiveautomation.com/uploads/short-url/3UhwxwjgFCEf8k7HkBUxsnTQcGe.zip) (24.0 KB)

```python
import random
# Randomized Sample Data
sampleData = [random.randrange(0, 2**32) for j in xrange(120000)]

# Process the DINTs to a list of lists suitable for pypng (single-bit depth)
data, width, height = graphics.dint.processData(sampleData, 12)
# Define the color pallete
palette=[(0,0,0), (0,255,0)]
# Spin up a png writer.
writer = graphics.png.Writer(width, height, palette=palette, bitdepth=1)
# Open a file
f = open('c:/test/test.png', 'wb')
# Write the png data to the file.
writer.write(f, data)
# Close the file afterward
f.close()

```

File output:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/0739840b6cf3fc4abce45be137297113f700e8c2.jpeg)

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526)._
