Skip to content

plot_format

rfsoc_rfdc.plotter.plot_format

Classes

PlotFormat(scaleX=1, scaleY=1)

Source code in rfsoc_rfdc/plotter/plot_format.py
def __init__(self, scaleX=1, scaleY=1):
    self.colorList = \
        ['tab:blue', 'tab:orange', 'tab:green', 'tab:red', 'tab:purple',
         'tab:brown', 'tab:pink', 'tab:grey', 'tab:olive', 'tab:cyan']
    self.colorGhost = 'black'

    self.figSizeX = 5 * scaleX
    self.figSizeY = 4 * scaleY
    self.axPosX = 0.95 / self.figSizeX
    self.axPosY = 0.80 / self.figSizeY
    self.axSizeX = 1 - 1.2 / self.figSizeX
    self.axSizeY = 1 - 1.2 / self.figSizeY

    self.lineWidth = 2
    self.lineStyleList = ['solid', 'dashed', 'dashdot', 'dotted']

    self.markerList = ['o', 'v', '*', 's', 'd', 'o', 'v', '*', 's', 'd']
    self.markerSizeList = [12, 12, 12, 12, 12, 12, 12, 12, 12, 12]

    self.fontLabel = 24
    self.fontTick = 20
    self.fontTitle = 24
    self.fontLegend = 20

    self.barWidth = 0.2
Attributes
colorList = ['tab:blue', 'tab:orange', 'tab:green', 'tab:red', 'tab:purple', 'tab:brown', 'tab:pink', 'tab:grey', 'tab:olive', 'tab:cyan'] instance-attribute
colorGhost = 'black' instance-attribute
figSizeX = 5 * scaleX instance-attribute
figSizeY = 4 * scaleY instance-attribute
axPosX = 0.95 / self.figSizeX instance-attribute
axPosY = 0.8 / self.figSizeY instance-attribute
axSizeX = 1 - 1.2 / self.figSizeX instance-attribute
axSizeY = 1 - 1.2 / self.figSizeY instance-attribute
lineWidth = 2 instance-attribute
lineStyleList = ['solid', 'dashed', 'dashdot', 'dotted'] instance-attribute
markerList = ['o', 'v', '*', 's', 'd', 'o', 'v', '*', 's', 'd'] instance-attribute
markerSizeList = [12, 12, 12, 12, 12, 12, 12, 12, 12, 12] instance-attribute
fontLabel = 24 instance-attribute
fontTick = 20 instance-attribute
fontTitle = 24 instance-attribute
fontLegend = 20 instance-attribute
barWidth = 0.2 instance-attribute
Functions