Create a ray parallel to some axis, from that a line plot, and add it to the current collection.
This function will generate a yt.lagos.AMROrthoRayBase from the given parameters. This ray then gets passed to a yt.raven.LineQueryPLot, and the resultant plot is added to the current collection. Various parameters allow control of the way the line plot is displayed, as well as how the ray is generated.
| Parameters : | axis : int
coords : tuple of floats
field : string
figure : matplotlib.figure.Figure, optional
axes : matplotlib.axes.Axes, optional
field_parameters : dict, optional
plot_options : dict
|
|---|---|
| Returns : | plot : yt.raven.LineQueryPlot
|
See also
Examples
This will cast a ray from (0.0, 0.5, 0.5) to (1.0, 0.5, 0.5) and plot it.
>>> pf = load("RD0005-mine/RedshiftOutput0005")
>>> pc = PlotCollection(pf, [0.5, 0.5, 0.5])
>>> p = pc.add_ortho_ray(0, (0.5, 0.5), "Density")