Given a data source, make a scatter plot from that data source.
This is a very simple plot: you give it an instance of AMRData, two field names, and it will plot them on an axis
Parameters : | data_source : yt.lagos.AMRData
fields : tuple of strings
id : int, optional
figure : matplotlib.figure.Figure, optional
axes : matplotlib.axes.Axes, optional
plot_options : dict
|
---|---|
Returns : | plot : yt.raven.ScatterPlot
|
Notes
This is a simpler way of making a phase plot, but note that because pixels are deposited in order, the color may be a biased sample.
Examples
>>> reg = pf.h.region([0.1, 0.2, 0.3], [0.0, 0.1, 0.2],
[0.2, 0.3, 0.4])
>>> pc.add_scatter_plot(reg, ["Density", "Temperature"],
>>> plot_options = {'color':'b'})