SyntaxHighlightingSandbox: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 December 2023

  • curprev 02:5502:55, 29 December 2023Jwl talk contribs 716 bytes +716 Created page with "Python highlighting examples: <syntaxhighlight lang="python"> def ex_analysis(plot=True): """Create a plot with THEMIS data.""" # Delete any existing pytplot variables del_data() # Download THEMIS state data for 2015-12-31 time_range = ['2015-12-31 00:00:00', '2015-12-31 23:59:59'] state(probe='a', trange=time_range) # Use some analysis functions on tplot variables subtract_average('tha_pos') subtract_median('tha_pos') # Plot..."