Python Forum
Grayscale - plot - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Grayscale - plot (/thread-4349.html)



Grayscale - plot - python - Aug-10-2017

Hello fellow programmers,

I have a problem and would appreciate any help.

My problem:

I have an array of values from 0 und to max(array). array=(200,200) --> 40k values.

I want to make an countourplot of specific grayscalevalues.

R G B
118, 118, 118
119, 119, 119
.
.
.
148, 148, 148

So 31 specific grayscalevalues.

So i want the first grayscalevalue to be assigned to the values from 0 to max(array)/31
--> the second grayscalevalue from max(array)/31 to max(array)/31*2
and so on.

Can anyone help me please?


RE: Grayscale - plot - sparkz_alot - Aug-10-2017

Please show us what you've tried so far (posted between the code tags).