Skip to content

Note

Click here to download the full example code

Isohedral Tiling Presets

Plot isohedral tiling presets.

Load data and create the symbol cartogram.

import matplotlib.pyplot as plt

import carto_flow.symbol_cartogram as smb

Plot the presets

fig, axes = plt.subplots(3, 5, sharex=True, sharey=True)

for key, ax in zip(smb.IsohedralTiling.list_presets().keys(), axes.ravel(), strict=False):
    t = smb.IsohedralTiling.from_preset(key)
    t.plot_tile(ax=ax, show_vertices=False)
    ax.axis("square")
    ax.set(xlim=(-1, 1), ylim=(-1, 1))
    ax.set_title(key, fontsize=7)

regular_hexagon, square, equilateral_triangle, rhombus, cairo, wide_parallelogram, scalloped_hexagon, wavy_square, puzzle_piece, arrow_quad, wavy_triangle, interlocking_hexagon, flowers, scalloped_quad, tree

Total running time of the script: ( 0 minutes 0.573 seconds)

Download Python source code: plot_symbol_tiling_presets.py

Download Jupyter notebook: plot_symbol_tiling_presets.ipynb

Gallery generated by mkdocs-gallery