0

I'm trying to zoom into my mandelbrot and I read this question: How to perform Simple Zoom into Mandelbrot Set but I have difficult to understand it and it doesn't work. When I calculate the new real and complex number like so:

double Re_factor = (MaxRe-MinRe)/(ImageWidth-1);
double Im_factor = (MaxIm-MinIm)/(ImageHeight-1);

double newMinRe = MinRe + (Re_factor* x1);
double newMaxRe = MinRe + (Re_factor* x2);
double newMinIm = MinIm + (Im_factor* y1);
double newMaxIm = MinIm + (Im_factor* y2);

the new mandelbrot is a bit distorted in both axis? What is wrong? Here is an example: http://www.phpdevpad.de/index.php?id=190.

Community
  • 1
  • 1
Micromega
  • 12,486
  • 7
  • 35
  • 72
  • That interface just breaks when I try to interact with it. Could you please post a page with just the Mandelbrot Set? – Asad Saeeduddin Nov 24 '12 at 17:51
  • When you hit immediately submit does it work? The change the bounding box and click "zoom in". It works for me with Opera? – Micromega Nov 24 '12 at 18:02
  • Is it possible that it appears distorted because of the viewable region you are displaying it in? I would think the y axis would be taller. – ethrbunny Nov 24 '12 at 18:23
  • I don't have any idea. I use exactly the given formula?! Can you explain what you mean? – Micromega Nov 24 '12 at 18:36
  • @ethrbunny: You are right. It's because aspect ratio is 16:10. Make an answer i accept you. – Micromega Nov 30 '12 at 00:43

1 Answers1

0

The display area is distorted (y axis is not large enough). Your equations are fine.

ethrbunny
  • 10,379
  • 9
  • 69
  • 131