Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1017 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 1017 Bytes

deephaven-matplotlib-base

This repository integrates Deephaven with matplotlib, a plotting library for the Python programming language.

First, make sure you have all the needed dependencies to Launch Deephaven from pre-built images.

To clone this repo and get started, run:

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

This starts the Deephaven IDE with all the needed packages.

Navigate to http://localhost:10000/ide to enter your matplotlib query:

import matplotlib.pyplot as plt

plt.figure()
x = [0, 2, 4, 6]
y = [1, 3, 4, 8]
plt.plot(x, y)
plt.xlabel('x values')
plt.ylabel('y values')
plt.title('plotted x and y values')
plt.legend(['line 1'])

m_figure=plt.gcf()

Your new plot will appear in the IDE!