Skip to content

Commit

Permalink
most simple mpl plot
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Sep 3, 2024
1 parent a51c4b5 commit 4df32aa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/simple_plot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#! /usr/bin/env python
#
# a simple matplotlib plot - testing for pipelines
#
_version = "3-sep-2023"

import os
import sys

import numpy as np
import matplotlib.pyplot as plt


if __name__ == "__main__":
x = np.arange(0,2,0.1)
y = np.sqrt(x)

plt.figure()
plt.plot(x,y, label="test");
plt.legend()
plt.show()
fn = 'simple_plot.png'
plt.savefig(fn)

0 comments on commit 4df32aa

Please sign in to comment.