From 906a9656a99755ac4e16249a429535f773ef9438 Mon Sep 17 00:00:00 2001 From: Benjamin Glatzel Date: Thu, 11 May 2017 06:12:14 +0200 Subject: [PATCH] Updated plot --- docs/pyplots/volumetrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pyplots/volumetrics.py b/docs/pyplots/volumetrics.py index 592474d4..cc6af9a3 100644 --- a/docs/pyplots/volumetrics.py +++ b/docs/pyplots/volumetrics.py @@ -6,10 +6,10 @@ far = 10000.0 volumeDepth = 128.0 -def volumeZToDepth(depth): - return np.power(depth, exp) * far + near +def volumeZToDepth(z): + return np.power(z / volumeDepth, exp) * far + near -t1 = np.arange(0.0, 1.0, 0.1) +t1 = np.arange(0.0, volumeDepth, 1.0) plt.plot(t1, volumeZToDepth(t1), 'bo', t1, volumeZToDepth(t1), 'k') plt.ylabel('Depth')