From 3c21b956700416556a483d083048dfae4bc339d8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 28 Oct 2014 00:16:39 -0400 Subject: fix some more swapped array dimensions it is really hard to keep this straight --- src/fractal.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/fractal.jl') diff --git a/src/fractal.jl b/src/fractal.jl index 58b76d6..67c8205 100644 --- a/src/fractal.jl +++ b/src/fractal.jl @@ -8,14 +8,14 @@ type Fractal{T <: FloatingPoint} make_c::Function, step::Function ) - (size_y, size_x) = imgsize + (size_x, size_y) = imgsize aspect_ratio = size_y / size_x if size_x < size_y - range_x = (-2.0 * aspect_ratio, 2.0 * aspect_ratio) - range_y = (-2.0, 2.0) - else range_x = (-2.0, 2.0) - range_y = (-2.0 / aspect_ratio, 2.0 / aspect_ratio) + range_y = (-2.0 * aspect_ratio, 2.0 * aspect_ratio) + else + range_x = (-2.0 / aspect_ratio, 2.0 / aspect_ratio) + range_y = (-2.0, 2.0) end line_x = linspace(range_x[1], range_x[2], size_x) line_y = linspace(range_y[1], range_y[2], size_y) -- cgit v1.2.3-54-g00ecf