rendered paste bodyfrom jvPlot_class import *
import solarLib as sl
def main():
# first x/y pair
x0 = [1,2,3,4,5]
y0 = [1,1,1,1,1]
x1 = [60,70,80,90,100]
y1 = [50,50,50,50,50]
# make the plotting happen
p = jvPlot()
p.set_altAxes(True,True)
p.set_yticks(0,2,0.2)
p.set_yticks(0,120,20,alt=True)
p.add_axvline(4,linecolor='green')
p.add_axvline(70,linecolor='red',alt=True)
p.add_axhline(0.5,linecolor='blue')
p.add_axhline(100,linecolor='aqua',alt=True)
p.add_text('3,1.75',3,1.75)
p.add_text('85,35',85,35,alt=True)
p.add_rectangle(1.5,1.5,3.0,0.3)
p.add_rectangle(85,100,90,60,h='/',alt=True,alpha=0.2)
p.add_plotdata(x0,y0,lc='green')
p.add_plotdata(x1,y1,lc='red',alt=True)
p.set_ylabel('left','l',alt=False)
p.set_ylabel('right','r',alt=True)
p.set_xlabel('bottom','b',alt=False)
p.set_xlabel('top','t',alt=True)
p.makePlot()
p.showMe()
return
main()