, , , , , PDF , ( ) . , , , !
, , . .
STEP_PART. STEP_PART, ( , ). , STEP_PART 5, 1 /5 = 200 , 200 .
STEP_PART = 5
height = 6.42
width = 4.37
vHeight = range(0, int(STEP_PART*height), 1)
vWidth = range(0, int(STEP_PART*width), 1)
(0, 1, 2... , 0, 0.2, 0.4... ), km "". km STEP_PART, .
for j in range(len(vHeight)):
if (j % STEP_PART != 0):
vHeight[j] = ""
else:
vHeight[j] = int(vHeight[j]/STEP_PART)
for i in range(len(vWidth)):
if (i % STEP_PART != 0):
vWidth[i] = ""
else:
vWidth[i] = int(vWidth[i]/STEP_PART)
, , ( x ). x - , shape() ( , ... , , ).
xt = np.linspace(0,x-1,len(vWidth)+1)
locs, labels = mpl.xticks(xt, vWidth, fontsize=9)
Repeat for y axis. The result is a graph in which marks are marked for every 200 m, but the data marks are in integer km values. In any case, the accuracy of these axes is 200 m, this is not accurate, but that was enough for me. The script will be even better if I learn how to grow the size of whole ticks ...