{"id":18000795,"url":"https://github.com/josecelano/mandelbrot-orbit","last_synced_at":"2025-04-04T08:11:23.413Z","repository":{"id":57439433,"uuid":"272276786","full_name":"josecelano/mandelbrot-orbit","owner":"josecelano","description":"Small python script to plot the orbit of a Mandelbrot Set point","archived":false,"fork":false,"pushed_at":"2020-06-26T20:27:32.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T21:54:37.734Z","etag":null,"topics":["fractal","mandelbrot","orbit","period","period-checking","plot","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josecelano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-14T20:18:41.000Z","updated_at":"2020-06-26T20:27:34.000Z","dependencies_parsed_at":"2022-09-26T17:20:26.484Z","dependency_job_id":null,"html_url":"https://github.com/josecelano/mandelbrot-orbit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fmandelbrot-orbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fmandelbrot-orbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fmandelbrot-orbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fmandelbrot-orbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josecelano","download_url":"https://codeload.github.com/josecelano/mandelbrot-orbit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142077,"owners_count":20890653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fractal","mandelbrot","orbit","period","period-checking","plot","python"],"created_at":"2024-10-29T23:14:09.948Z","updated_at":"2025-04-04T08:11:23.393Z","avatar_url":"https://github.com/josecelano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/josecelano/mandelbrot-orbit.svg?branch=master)](https://travis-ci.com/josecelano/mandelbrot-orbit)\n\n## Mandelbrot Orbit\n\nThis program generates the orbit for a given Mandelbrot point. Something like:\n\n![Orbit of a mandelbrot point](mandelbrot-orbit-sample.png)\n\nThat's the orbit of point (-1.3,0) which has period 4.\n\n### Math\n\nThis is the Mnadelbrot Set basic formula:\n\n```\nf(z) = z² + c\n```\n\nwhere `z` and `c` are complex number. \n\nThe Mandelbrot set is the set of complex numbers `c` for which the function does not diverge when iterated from z=0.\nThan means, given a `c` complex number, if you apply the formula to that number `n` times using the previous result as the new `z` number, that `c` belongs to Mandelbrot Set if the sequence does not diverge.\n\nThis python script plots the series for a given complex point.\n\n### Prerequisites\n\n```\nPython 3.6.9\npytest-5.3.5\n```\n\n### Usage\n\nInstall:\n```\n./bin/install\n```\n\nRun:\n```\nmandelbrot-orbit '{ZX}' '{ZY}' {NUM_ITERATIONS} {OUPUTFILE}\nmandelbrot-orbit -0.1 0.7 100 ./mandelbrot_orbit.png\n```\n\nThe script generates an image: `mandelbrot-orbit.png`\n\n### Development\n\nSetup:\n```bash\n./bin/dev-setup\n```\n\nRunning the tests:\n```bash\n./bin/test\n```\n\nRun:\n```bash\n./bin/run '-0.1' '0.7' 100 ./output/mandelbrot_orbit.png\n```\n\n### Troubleshooting\n\nYou could see this error:\n```\n/home/josecelano/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3.py:195: Warning: Source ID 8 was not found when attempting to remove it\n  GLib.source_remove(self._idle_draw_id)\n```\nIt seems to be a known issue pending to release:\n\nhttps://stackoverflow.com/questions/29540845/how-can-i-deactivate-warning-source-id-510-was-not-found-when-attempting-to-re\n\n### TODO\n\n* Although calculations are done with an arbitrary precision library, we use `matplotlib` to generate the graph and that package uses a float type for data source so we cannot plot a point with greater precision than the language float precision.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecelano%2Fmandelbrot-orbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosecelano%2Fmandelbrot-orbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecelano%2Fmandelbrot-orbit/lists"}