prettymaps icon indicating copy to clipboard operation
prettymaps copied to clipboard

Portrait orientation of Barcelona example

Open generativearts opened this issue 3 years ago • 6 comments

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

generativearts avatar Feb 05 '22 13:02 generativearts

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

marceloprates avatar Feb 07 '22 14:02 marceloprates

Thank you

generativearts avatar Feb 07 '22 14:02 generativearts

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

danielwiegand avatar Aug 01 '22 14:08 danielwiegand

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

till-m avatar Sep 29 '22 10:09 till-m

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

danielwiegand avatar Sep 29 '22 17:09 danielwiegand

any updates on this?

ga58xes avatar Dec 21 '22 13:12 ga58xes