Skip to content
Snippets Groups Projects
Select Git revision
  • ab0bb40f8a9427ef3bb1e0893d60a60b6a621637
  • main default protected
  • gitkeep
  • dev
  • ipynb
  • 81-add-id-to-figure-file-metadata
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.3
  • test_tag
  • v0.2.2
  • v.0.2.1
  • v0.2.1
  • v0.1.2
  • v0.1.1
  • v0.1.0
17 results

plotoptions.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    plotoptions.py 795 B
    #!/usr/bin/env python3
    # -*- coding: utf-8 -*-
    """Contains the PlotOption class."""
    
    
    class PlotOptions:
        """
        Container objects which include all plot options provided by plotid.
    
        Methods
        -------
        __init__figs : figure object
            Figure that will be tagged.
        prefix : str
            Prefix that is placed before the ID.
        id_method : int
            Method that decides which method is used to generate the ID.
        rotation : int
            Rotation angle for the ID.
        position : tuple
            Relative position of the ID on the plot (x,y).
        """
    
        def __init__(self, figs, prefix, id_method, rotation, position):
    
            self.figs = figs
            self.prefix = prefix
            self.id_method = id_method
            self.rotation = rotation
            self.position = position