rootpy.context: Context Managers

Functions

context.preserve_current_style(*args, **kwds) Context manager which ensures that the current style remains the current style when the context is left.
context.preserve_current_canvas(*args, **kwds) Context manager which ensures that the current canvas remains the current canvas when the context is left.
context.preserve_current_directory(*args, **kwds) Context manager which ensures that the current directory remains the current directory when the context is left.
context.preserve_batch_state(*args, **kwds) Context manager which ensures the batch state is the same on exit as it was on entry.
context.invisible_canvas(*args, **kwds) Context manager yielding a temporary canvas drawn in batch mode, invisible to the user.