View a planform

DataCube

>>> golfcube = dm.sample_data.golf()
>>> final = dm.plan.Planform(golfcube, idx=-1)

You can visualize the data yourself, or use the built-in show() method of a Planform.

>>> fig, ax = plt.subplots(1, 2, figsize=(7, 3))
>>> ax[0].imshow(final['velocity'])   # display directly
>>> final.show('velocity', ax=ax[1])  # use the built-in show()
>>> plt.show()

(png, hires.png)

../../../_images/show_plan-2.png

StratigraphyCube

>>> golfstrat = dm.cube.StratigraphyCube.from_DataCube(
...     golfcube, dz=0.1)
>>> minus1 = dm.plan.Planform(golfstrat, z=-1)

You can visualize the data yourself, or use the built-in show() method of a Planform.

>>> fig, ax = plt.subplots(1, 2, figsize=(7, 3))
>>> ax[0].imshow(minus1['velocity'])   # display directly
>>> minus1.show('velocity', ax=ax[1])  # use the built-in show()
>>> plt.show()

(png, hires.png)

../../../_images/show_plan-4.png

See also

Introduction to Planform objects

Subject guide on Planform operations and classes

Visualization Guide

Subject guide on visualization in DeltaMetrics