Skip to content

Note

Click here to download the full example code

Visualize Tiling

Visualize a layout's tiling grid.

Plot the symbol cartogram

import matplotlib.pyplot as plt

import carto_flow.symbol_cartogram as smb

tiling = smb.IsohedralTiling.from_preset("wavy_triangle")
grid = tiling.generate()

fig, axes = plt.subplots(1, 2, figsize=(8, 4))

_ = tiling.plot_tile(ax=axes[0], show_vertices=False, face_color="orange", edge_color="black")

_ = grid.plot(
    ax=axes[1],
    color_by="aspect",
    colormap="hot",
)

_ = axes[0].axis("square")
_ = axes[1].axis("square")

plot symbol plot tiling 2

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

Download Python source code: plot_symbol_plot_tiling_2.py

Download Jupyter notebook: plot_symbol_plot_tiling_2.ipynb

Gallery generated by mkdocs-gallery