Skip to main content

Using Matplotlib and Seaborn with Deephaven

· 2 min read
DALL·E prompt: A levitating sphere of water that is a chart plot made of water, 3d render
Amanda Martin

There are many reasons the Python community is large and growing. Easy, comprehensive, and evolving data visualization is near the top of the list. Plots drive understanding, and Matplotlib and Seaborn are giants.

A bit of good news: you can now use these familiar and powerful Python tools in the Deephaven IDE. Woo woo!

Though real-time, ticking plots still require Deephaven's plotly-integrated library, it's exciting to have Matplotlib and Seaborn's suite of capabilities available in the Deephaven web UI for visualizing static or periodically-snapshotted data.

Deephaven's plugins make integrating these packages with deephaven-core a breeze.

Matplotlib

To use Matplotlib from the Deephaven IDE, simply clone the Matplotlib project from the deephaven-examples repo.

git clone https://github.com/deephaven-examples/deephaven-matplotlib-base.git
cd deephaven-matplotlib-base
docker compose pull
docker compose up --build -d

Then plot away! (Or Matplotlib away?) For inspiration, here are some 3D examples from Rashida Nasrin Sucky. (You can find the queries for these plots in our how-to guide.)

img

img

Seaborn

After you have Matplotlib set up, a simple pip install adds Seaborn. All your prior Seaborn programs can be directly applied to Deephaven:

img

Watch the how-to

Read the how-to