Defines the SaveTool class.

class, **traits)

Bases: enable.base_tool.BaseTool

This tool allows the user to press Ctrl+S to save a snapshot image of the plot component.

draw_mode = "none"

This tool does not have a visual representation (overrides BaseTool).

filename = Str("saved_plot.png")

The file that the image is saved in. The format will be deduced from the extension.


Handles a key-press when the tool is in the ‘normal’ state.

Saves an image of the plot if the keys pressed are Control and S.

visible = False

This tool is not visible (overrides BaseTool).