Create a ray between two points, from that a line plot, and add it to the current collection.
This function will generate a yt.lagos.AMRRayBase 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 : | start_point : array_like
end_point : array_like
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.1, 0.2, 0.3) to (0.9, 0.7, 0.4) and plot it.
>>> pf = load("RD0005-mine/RedshiftOutput0005")
>>> pc = PlotCollection(pf, [0.5, 0.5, 0.5])
>>> p = pc.add_ray((0.1, 0.2, 0.3), (0.9, 0.7, 0.4), "Density")