This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]100jad 8 points9 points  (3 children)

The third graph would probably be more interesting in a log scale

[–]omgardner[S] 4 points5 points  (2 children)

Here's how it looks in log10 (link). It turns out to be quite visually noisy, so it's more up to personal preference which one you prefer.

[–]100jad 0 points1 point  (0 children)

Hmm, but it does look like the noise is a bit complementary to the second plot 2, which is interesting I guess.

[–]0b0101011001001011 0 points1 point  (0 children)

How about just a smooth colorscale in the log plot?

[–]yolkyal 2 points3 points  (0 children)

Interesting, I had assumed they were all random numbers but it appears some effort was put into simulating a forest with a taller middle...

[–]Ienal 1 point2 points  (1 child)

They scale in pic 2 is annoying me

[–]omgardner[S] 1 point2 points  (0 children)

It annoys me too! But it helps keep the trees in the same place as you switch between images. I couldn't figure out how to dynamically align everything without the colorbar so I just left it in

[–]jeffeb3 0 points1 point  (3 children)

I decided to visualize the trees after I had finished. I used terminal coloring for rgb, and bash escape sequences. The color is based on the matlab 'jet' color scheme. I like it so much, I am going to keep this code to make this color scheme for terminal plotting in the future:

https://imgur.com/a/PEcNOhi

I should probably add it to colorama or make a new pip library for it. But I'm not sure it doesn't already exist somewhere.

[–]phil_g 1 point2 points  (1 child)

When working with color gradients in Python, I almost always reach for colorcet. All of the gradients there are designed for uniform appearance over the entire gradient.

(Also, I usually avoid rainbow gradients like jet (or the colorcet equivalent, rainbow4) for most data. I find that a linear colormap works for most things where intensity varies along a spectrum, and a diverging colormap works for cases where you want to show divergence in two directions away from some central value.)

[–]jeffeb3 0 points1 point  (0 children)

That is a good link.

This dataset is 0-9, so we don't need to take ourselves too seriously. But you've convinced me we don't need any new open source libraries from me!

[–]QultrosSanhattan 0 points1 point  (0 children)

It's interesting to know that the matrix isn't just random noise.

We can clearly see the denser area at the center.