PlotWindow Plot Series |
Top Previous Next |
A PlotSeries object can be added to a PlotWindow. There are two types of PlotSeries available in FreeFlyer:
The user can add or remove data points from a PlotScatterSeries, or set the coefficients of a PlotPolynomialSeries, at any time during a Mission Plan. The PlotSeries object can also be added or removed from a PlotWindow at any time. You can also display a label at any point in a PlotScatterSeries, displaying either the point value or a custom point label.
Note: A PlotSeries object can only be added to single PlotWindow. If you want to add the same PlotSeries object to a second PlotWindow object, you should use the Assign operator to create a second copy of the series. Plot Scatter SeriesThe script example below shows how to plot X/Y data representing a sine wave.
This snippet shows an example of how to display custom data labels at each point in a scatter series. You can specify labels when you add points to the plot using the PlotScatterSeries.AddPoints() method, as shown here, or you can specify a label for individual points through the PlotScatterSeries.DataLabels array property.
Plot Polynomial SeriesThe script example below shows how to plot a polynomial series representing a cubic function.
Note: Since the polynomial series can have an infinite number of points, the "Marker" properties cannot be set. Add or Remove PointsThe example below creates a plot showing the contact between a Spacecraft Object and two GroundStation Objects. The script adds points to the first PlotScatterSeries, ContactGroundStation1, for the entire Propagation. After one day, data is also added to the second PlotScatterSeries, ContactGroundStation2.
Output: Contact between Spacecraft1 and two GroundStation Objects See Also•PlotWindow Object Properties and Methods •PlotScatterSeries Properties and Methods •PlotPolynomialSeries Properties and Methods
|