1 from analysisSharedFunctions
import loadYaml, loadFile
2 from plotSetUp
import setSvgLatexMatplotlibSettings, \
3 colors_diverging_short
as colors_short, \
5 createTimeStepValues, \
6 createSliderVelocityStepValues, \
7 choseColourFromDirection
9 from matplotlib
import pyplot
as plt
13 if(
"--artistic" in sys.argv):
14 plt.style.use(
"dark_background")
20 x_label="\$\\dot{x}\$",
26 plt.plot(position_data, velocity_data,
27 color=colors_short[color_index],
28 linestyle=linestyles[line_style_index],
48 plt.plot(time_steps, pad_data,
49 color=colors_short[color_index],
50 linestyle=linestyles[0],
55 plt.ylim(y_lim[0], y_lim[1])
67 pad_position =
loadFile(run_name, yaml_file, file_name=
"pad_position")
68 pad_velocity =
loadFile(run_name, yaml_file, file_name=
"pad_velocity")
88 if(len(sys.argv) == 2
or (len(sys.argv) == 3
and "--artistic" in sys.argv)):
97 if __name__ ==
"__main__":
def prettyPlotPad(time_steps, pad_data, yaml_file, y_label="\\, x_label="\t\", label="", alpha=1.0, y_lim=[-1.1)
def prettyPlotPhase(position_data, velocity_data, y_label="\\, x_label="\\dot{x}\", alpha=1.0, color_index=0, line_style_index=0, label="")
def createTimeStepValues(block_data, yaml_file)
def loadFile(run_name, shared_names, selected='pad_position.csv')
def plot_single_pad(run_name)
def choseColourFromDirection(yaml_file)
def setSvgLatexMatplotlibSettings(pyplot)
def plot_pad(run_name, alpha=1.0, label="Pad")