# 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:** 8\
**Page:** 2

<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)

---

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

</div>

To look at this picture and get anything useful out of it you have to be Cypher from The Matrix geez.

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [September 2, 2021, 4:33pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/23 "2021-09-02T16:33:20Z")

</div>

Awesome! I’ll give it a shot. Thank you. Just need see big displays I guess.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 2, 2021, 4:35pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/24 "2021-09-02T16:35:27Z")

</div>

I love that everyone in this thread agrees this is probably a bad idea, but can’t resist working the problem anyways 😄

> **[Nerd Sniping](https://xkcd.com/356/)**
>
> I first saw this problem on the Google Labs Aptitude Test. A professor and I filled a blackboard without getting anywhere. Have fun.

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [September 3, 2021, 1:41am UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/25 "2021-09-03T01:41:33Z")

</div>

I think the effort put into doing this warrants selling this image as an NFT. Any buyers?

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [September 3, 2021, 2:20pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/26 "2021-09-03T14:20:58Z")

</div>

I built a viewer for our semiconductor wafer maps (upwards of 250k per wafer). We take the input data from a raw results file (txt, int data) and build a SVG using ElementTree to make the xml, convert the resulting SVG to base64 and display it inline in Perspective. Works great (and just about the only way of not crashing the client/gateway). I did try the image route, but ultimately found SVG more flexible and better performance.

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

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://forum.inductiveautomation.com/u/peter)\
**Post date:** [September 3, 2021, 3:27pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/27 "2021-09-03T15:27:56Z")

</div>

> [@drojas](#):
>
> I think the effort put into doing this warrants selling this image as an NFT. Any buyers?

I bid $10,000,000 "Peter Dollars"™ (1)

* * *

(1) "Peter Dollars"™ are a brand new virtual currency that I designed solely for the purchase of NFTs. The main characteristic is that the exchange rate with fiat currencies is both arbitrary and capriciously in my favor at all times.

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [September 3, 2021, 10:52pm UTC](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/28 "2021-09-03T22:52:58Z")

</div>

Marked @JordanCClark as the solution, but thanks everyone for the help! Got it working today. Now for the team to decide how to display this in a way that is meaningful (as several of you pointed out as a flaw).

Other credit to:

@Kevin.Herron  
@paul-griffith  
@pturmel

[Previous page](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526.md?page=1)
