gui.utils¶
- gui.utils.load_file(dir_init, file_init='', multiple_files=None, filetypes=None)¶
if loading multiple files, pass in a callback function to handle the list of filenames
- gui.utils.save_file(dir_init, file_init='', filetypes=None)¶
- gui.utils.spawn_plot_window(width=500, height=500, title='', global_dict=None)¶
- gui.utils.resize_plot(event, canvas=None, window=None)¶
- gui.utils.set_plot_features(event, fig=None, global_dict=None)¶
- gui.utils.plot(*y, x=None, xlim=None, ylim=None, xscale=1, yscale=1, xlabel=None, ylabel=None, xerr=None, yerr=None, formats=None, colors=None, linestyles=None, labels=None, title='', boxplot=False, global_dict=None, fix_transpose=True)¶
Create a line graph with as many different lines as you want using the matplotlib Tkinter backend.
- Parameters
*y – variable amount of list params representing the y data for each line to be graphed
x – list of x values. If not provided, will be generated using the length of the corresponding y entry. If only list value is provided, it will be used for all lines
formats – a list of format strings for each y provided.
colors – a list of colors for each y provided
linestyles – a list of linestyles for each y provided.
labels – a list of labels for each y provided
xlim – limits for the axes
ylim – limits for the axes
xscale – scales that are multiplied with the data before graphing
yscale – scales that are multiplied with the data before graphing
xerr – if not none, use an errorbar plot instead and use this information
yerr – if not none, use an errorbar plot instead and use this information
title – title of the graph
boxplot – draws a boxplot instead TODO: give boxplot formattin support
global – dict????
- Returns
nothing