In [1]:
    
################################   NOTES   ##############################ex
# Lines of code that are to be excluded from the documentation are      #ex
# marked with `#ex` at the end of the line.                             #ex
#                                                                       #ex
# To ensure that figures are displayed correctly together with widgets  #ex
# in the sphinx documentation we will include screenshots of some of    #ex
# the produced figures.                                                 #ex
# Do not run cells with the `display(Image('path_to_image'))` code to   #ex
# avoid duplication of results in the notebook.                         #ex
#                                                                       #ex
# Some reStructuredText 2 (ReST) syntax is included to aid in           #ex
# conversion to ReST for the sphinx documentation.                      #ex
#########################################################################ex
notebook_dir = %pwd                                                     #ex
%matplotlib inline                               
import pysces                                                           #ex
import psctb                                                            #ex
import numpy                                                            #ex
from os import path                                                     #ex
from IPython.display import display, Image                              #ex
    
    
    
In [28]:
    
mod = pysces.model('lin5_hill')
    
    
In [46]:
    
mg = psctb.ModelGraph(mod)
    
In [47]:
    
mg.width = 800
    
In [48]:
    
mg.height = 300
    
In [49]:
    
mg.show()
    
In [50]:
    
mg.save('/home/carl/Documents/Code/Projects/PyscesToolbox/documentation/source/included_files_files/lin5_hill.svg')
    
In [ ]: