Skip to content
Snippets Groups Projects
Commit 4195b9f0 authored by AlQuemist's avatar AlQuemist
Browse files

rawEx: import matplotlib.pyplot when needed

parent d99c8535
No related branches found
No related tags found
1 merge request!2663Clean up the Examples provided to the user (Major change)
Showing
with 20 additions and 0 deletions
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.BarLorentz(20*nm, 6.3*nm, 4.7*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Bipyramid4(8*nm, 4.3*nm, 0.5, 70*deg)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Box(12*nm, 4.1*nm, 6*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.CantellatedCube(8*nm, 2.5*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Cone(4.25*nm, 12*nm, 75*deg)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.CosineRippleBox(20*nm, 6.3*nm, 4.7*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Cylinder(3.6*nm, 7.2*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Dodecahedron(3.38*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.EllipsoidalCylinder(7.8*nm, 3*nm, 4*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.HemiEllipsoid(4.4*nm, 8*nm, 4*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.HorizontalCylinder(4*nm, 9*nm, -2*nm, 2.3*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Icosahedron(5.13*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.PlatonicOctahedron(8.55*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.PlatonicTetrahedron(13.6*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Prism3(9.2*nm, 8*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Prism6(3.77*nm, 8*nm)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Pyramid2(6.4*nm, 13*nm, 7*nm, 70*deg)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Pyramid3(14*nm, 6.8*nm, 70*deg)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Pyramid4(10*nm, 4*nm, 70*deg)
......
#!/usr/bin/env python3
import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
import matplotlib.pyplot as plt
material_particle = ba.RefractiveMaterial("Particle", 1e-6, 0)
ff = ba.Pyramid6(5.43*nm, 6.8*nm, 70*deg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment