omas.omas_plot¶
plotting ODS methods and utilities
Functions
|
|
|
anything wrapped here will be available as a ODS method with name 'plot_'+f.__name__ |
|
Overlays bolometer chords |
|
Utility function that works like matplotlib add_subplot but reuses axes if these were already used before |
|
Overlays Charge Exchange Recombination (CER) spectroscopy channel locations |
|
Plot currents in core_profiles_1d |
|
Plot pressures in ods['core_profiles']['profiles_1d'][time_index] |
|
Plot densities and temperature profiles for electrons and all ion species as per ods['core_profiles']['profiles_1d'][time_index] |
|
Plot sources for electrons and all ion species |
|
Plot densities and temperature profiles for all species, rotation profile, TGYRO fluxes and fluxes from power_balance per STEP state. |
|
Plot EC launchers in poloidal cross-section |
|
Plot EC launchers in toroidal cross-section |
|
Plot equilibrium cross-section as per ods['equilibrium']['time_slice'][time_index] |
|
Plot equilibrium toroidal cross-section as per ods['equilibrium']['time_slice'][time_index] |
|
Plot equilibrium convergence error and total Chi-squared as a function of time |
|
Plot equilibrium cross-section and P, q, P', FF' profiles as per ods['equilibrium']['time_slice'][time_index] |
|
Draws an arrow pointing in from the gas inlet |
|
Utility: processes the mask / which_gas selector for gas_injection_overlay |
|
Plots overlays of gas injectors |
|
Given a geometry type code |
|
Utility function for CX hardware overlays. |
|
Given either time_index or time returns both time_index and time consistent with one another NOTE: time takes precedence over time_index |
|
converts units to a nice latex format for plot labels |
|
Plots overlays of interferometer chords. |
|
Interprets label shift instructions |
|
Overlays Langmuir probe locations |
|
Plot LH antenna position in poloidal cross-section |
|
Plot LH antenna in toroidal cross-section |
|
plot bpol_probe time traces and equilibrium constraints |
|
plot diamagnetic_flux time trace and equilibrium constraint |
|
plot flux_loop time traces and equilibrium constraints |
|
plot ip time trace and equilibrium constraint |
|
Plot magnetics on a tokamak cross section plot |
|
Plot summary of NBI power time traces |
|
Utility function for generating time dependent plots |
|
Plots overlays of hardware/diagnostic locations on a tokamak cross section plot |
|
Forces values_in to be at least length n by appending copies of fill_value as needed :param values_in: scalar or 1D iterable |
|
Plot pellets trajectory in poloidal cross-section |
|
Plot pellet trajectory in toroidal cross-section |
|
plot pf_active time traces |
|
Plots overlays of active PF coils. |
|
|
|
Overlays position_control data |
|
Overlays relevant data from pulse_schedule, such as position control |
|
Provides convenient way to plot 1D quantities in ODS |
|
Plot summary time traces. |
|
Interprets text alignment instructions :param n: int Number of labels that need alignment instructions |
|
plot b_field_tor_vacuum_r time trace and equilibrium constraint |
|
Overlays Thomson channel locations |
|
Given arguments x,y where either or both have uncertainties, plot x,y using pyplt.plot of the nominal values and surround it with with a shaded error band using matplotlib's fill_between and/or fill_betweenx. |
|
Given arguments y or x,y where x and/or y have uncertainties, feed the appropriate terms to matplotlib's errorbar function. |
|
Same as add_subplot, but if the figure already has a subplot with key (args, kwargs) then it will simply make that subplot current and return it. |
|
Plot walls on a tokamak cross section plot |
|
Plot waves beams in poloidal cross-section |
|
Plot 1d profiles of waves beams given quantity |
|
Plot waves beam summary: CX, power_density, and current_parallel_density |
Classes
|
This class wraps the line and PollyCollection(s) associated with a banded errorbar plot for use in the uband function. |