diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-28 00:16:39 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-28 00:16:39 -0400 |
commit | 3c21b956700416556a483d083048dfae4bc339d8 (patch) | |
tree | 8e1c0ea82a7b8c4552210873dfc9c35b30ad33ba /src/fractal.jl | |
parent | e28f3e6a7eb292479f4d893e7f649faace90e357 (diff) | |
download | julia-fractals-3c21b956700416556a483d083048dfae4bc339d8.tar.gz julia-fractals-3c21b956700416556a483d083048dfae4bc339d8.zip |
fix some more swapped array dimensions
it is really hard to keep this straight
Diffstat (limited to 'src/fractal.jl')
-rw-r--r-- | src/fractal.jl | 10 |
1 files changed, 5 insertions, 5 deletions
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) |