Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portrait orientation of Barcelona example #81

Open
generativearts opened this issue Feb 5, 2022 · 6 comments · May be fixed by #126
Open

Portrait orientation of Barcelona example #81

generativearts opened this issue Feb 5, 2022 · 6 comments · May be fixed by #126

Comments

@generativearts
Copy link

Hello!
Is it possible to make Barcelona example in portrait orientation? Draw map 2/3 proportion rectangle not square.

@marceloprates
Copy link
Owner

marceloprates commented Feb 7, 2022

Currently you can do that by updating the perimeter's shape in the "postprocessing" function, but I'm planning to add aspect ratio as a parameter for the prettymaps.plot function

@generativearts
Copy link
Author

Thank you

@danielwiegand
Copy link

danielwiegand commented Aug 1, 2022

Could you maybe provide a short example how to do this with postprocessing?
I tried modifying layers["perimeter"].bounds, but I guess it might be a problem that shapely geometry objects have become immutable as of v2.0: https://shapely.readthedocs.io/en/stable/migration.html#geometry-objects-will-become-immutable

@till-m
Copy link

till-m commented Sep 29, 2022

Hey @generativearts & @danielwiegand did you ever figure out how to do this?

@danielwiegand
Copy link

@till-m No. I ended up generating a quadratic image and changing the aspect ratio by means of Gimp.

@ga58xes
Copy link

ga58xes commented Dec 21, 2022

any updates on this?

@alexrashed alexrashed linked a pull request May 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants