Skip to content

Simple Plot Example

Dan Steingart edited this page Sep 11, 2016 · 3 revisions

Paste this into your pithy page to generate a graph

from pithy import *

a = linspace(0,1,100)
b = sqrt(a)
c = a**2

plot(a,b,'k')
plot(a,c,'k')
showme()
clf()

plot(a,b,'k')
plot(a,c,'k')
xlabel("x")
ylabel("y")
title("Now With Labels")
showme() 

Clone this wiki locally