Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. from jvPlot_class import *
  2. import solarLib as sl
  3.  
  4. def main():
  5. # first x/y pair
  6. x0 = [1,2,3,4,5]
  7. y0 = [1,1,1,1,1]
  8.  
  9. x1 = [60,70,80,90,100]
  10. y1 = [50,50,50,50,50]
  11.  
  12. # make the plotting happen
  13. p = jvPlot()
  14. p.set_altAxes(True,True)
  15. p.set_yticks(0,2,0.2)
  16. p.set_yticks(0,120,20,alt=True)
  17.  
  18.  
  19. p.add_axvline(4,linecolor='green')
  20. p.add_axvline(70,linecolor='red',alt=True)
  21.  
  22. p.add_axhline(0.5,linecolor='blue')
  23. p.add_axhline(100,linecolor='aqua',alt=True)
  24.  
  25.  
  26. p.add_text('3,1.75',3,1.75)
  27. p.add_text('85,35',85,35,alt=True)
  28.  
  29. p.add_rectangle(1.5,1.5,3.0,0.3)
  30. p.add_rectangle(85,100,90,60,h='/',alt=True,alpha=0.2)
  31.  
  32. p.add_plotdata(x0,y0,lc='green')
  33. p.add_plotdata(x1,y1,lc='red',alt=True)
  34. p.set_ylabel('left','l',alt=False)
  35. p.set_ylabel('right','r',alt=True)
  36. p.set_xlabel('bottom','b',alt=False)
  37. p.set_xlabel('top','t',alt=True)
  38. p.makePlot()
  39. p.showMe()
  40. return
  41.  
  42. main()
Add Comment
Please, Sign In to add comment