Plotting Folder

Base plotting

This package contains the interface to different simulation packages.

Module plot_gui

class pyfmi.common.plotting.plot_gui.DialogAxisLabels(parent, plotPage)[source]

Bases: wx._windows.Dialog

GetValues()[source]
class pyfmi.common.plotting.plot_gui.DialogLinesLegends(parent, plotPage)[source]

Bases: wx._windows.Dialog

ApplyChanges()[source]
ChangeLine(var)[source]
GetValues()[source]
OnApply(event)[source]
OnLineChange(event)[source]
class pyfmi.common.plotting.plot_gui.FilterPanel(main, parent, tree, **kwargs)[source]

Bases: wx._windows.Panel

GetFilter()[source]
OnParametersConstants(event)[source]
OnSearch(event)[source]
OnTimeVarying(event)[source]
class pyfmi.common.plotting.plot_gui.Lines_Settings(name=None)[source]
class pyfmi.common.plotting.plot_gui.MainGUI(parent, ID, filename=None)[source]

Bases: wx._windows.Frame

CreateMenu()[source]
OnCloseTab(event)[source]
OnKeyPress(event)[source]
OnMenuAbout(event)[source]
OnMenuAdd(event)[source]
OnMenuAxisLabels(event)[source]
OnMenuClear(event)[source]
OnMenuExit(event)[source]
OnMenuGrid(event)[source]
OnMenuLicense(event)[source]
OnMenuLinesLegends(event)[source]
OnMenuMove(event)[source]
OnMenuOpen(event)[source]
OnMenuResize(event)[source]
OnMenuSaveFig(event)[source]
OnMenuZoom(event)[source]
OnTabChanged(event)[source]
OnTabChanging(event)[source]
OnTreeItemChecked(event)[source]
UpdateCheckedItemTree(check=True)[source]
sizeHeightDefault = 900
sizeHeightMin = 100
sizeLengthDefault = 675
sizeLengthMin = 130
sizeTreeDefault = 240
sizeTreeMin = 200
class pyfmi.common.plotting.plot_gui.PlotPanel(parent, grid=False, move=True, zoom=False, **kwargs)[source]

Bases: wx._windows.Panel

AddPlotVariable(ID, item, data)[source]
DeleteAllPlotVariables()[source]
DeletePlotVariable(local_id=None, global_id=None)[source]
Draw()[source]
DrawMove()[source]
DrawRectZoom(drawNew=True)[source]
DrawSettings()[source]

Draws the current settings onto the Plot.

DrawZoom()[source]
GetLegendLocation()[source]
GetLines()[source]
GetPlotVariables()[source]
GetSettings()[source]

Returns the settigns of the current plot.

OnEnterWindow(event)[source]
OnIdle(event)[source]
OnLeaveWindow(event)[source]
OnLeftDown(event)[source]
OnLeftUp(event)[source]
OnMotion(event)[source]
OnPass(event)[source]
OnRightDown(event)[source]

On right click, resize the plot.

OnSize(event)[source]
ReSize()[source]
Save(filename)[source]

Saves the current figure.

Parameters:

filename - The name of the to be saved plot.
SetDefaultSettings()[source]
UpdateCursor()[source]
UpdatePlotVariableReference(ID, item, data)[source]
UpdateSettings(grid=None, title=None, xlabel=None, ylabel=None, axes=None, move=None, zoom=None, xscale=None, yscale=None, legendposition=None)[source]

Updates the settings dict.

class pyfmi.common.plotting.plot_gui.VariableTree(noteBook, *args, **kwargs)[source]

Bases: wx.lib.agw.customtreectrl.CustomTreeCtrl

AddHiddenItems(showTimeVarying=None, showParametersConstants=None, filter=None)[source]
AddHiddenNodes(data)[source]
AddTreeNode(resultObject, name, timeVarying=None, parametersConstants=None, filter=None)[source]
DeleteParent(item)[source]

Delete the oldest parent of item, except root.

FindFirstSiblingUp(child, itemParent)[source]

Search for the first sibling of “child” going up in tree.

FindIndexParent(item)[source]

Find the index of the oldest parent of item from one level down from root.

FindLoneChildDown(child)[source]

Search for the youngest child down the tree from “child”.

Parameters:

child - The item from where the search should start.

Returns:

child - The youngest child from the starting point.
FindTopSiblings()[source]

Finds all the siblings one level down from root.

HideItem(item, show)[source]
HideNodeItem(item)[source]

Deletes the parents that does not have any children

HideNodes(showTimeVarying=None, showParametersConstants=None, filter=None)[source]

Hide nodes depending on the input.

Parameters:

showTimeVarying - Hides or Shows the time varying variables.

showParametersConstants - Hides or Show the parameters.
RefreshSelectedUnder(item)[source]

Refreshes the selected items under the given item.

Parameters:item – an instance of L{GenericTreeItem}.
SortChildren(item)[source]
pyfmi.common.plotting.plot_gui.convert_filter(expression)[source]

Convert a filter based on unix filename pattern matching to a list of regular expressions.

pyfmi.common.plotting.plot_gui.match(name, filter_list)[source]
pyfmi.common.plotting.plot_gui.startGUI(filename=None)[source]

Starts GUI. If a filename is provided, that file is loaded into the GUI on startup.