![]() The second call to set_serieslabel provides a label for this series in the legend. ![]() Our second dataset, the running average, can be configured similarly: call add_dataset(plot, x, mean_y)Ĭall set_seriestype(plot, 1, APLOT_STYLE_LINE)Ĭall set_serieslabel(plot, 1, "Running Mean") #Simply fortran 2 trial series# The final step is to call: call display_plot(plot) Our plot is now entirely ready to display. Which opens a window displaying the complete plot. The final coding step is to clean up our plot after the user closes it. While not necessarily important in a standalone program, a subroutine that generates plots should always perform final cleanup before exiting. The code here should compile in Simply Fortran 2.36 without issue, generating the following on GNU/Linux: The simple code is: call destroy_plot(plot)Īfter this call, all memory associated with the plot is released, and the program can continue normally.
0 Comments
Leave a Reply. |