class_docstr: **Bases:** :class:`AxisItem <pyqtgraph.AxisItem>`
  
  An AxisItem that displays dates from unix timestamps.
  
  The display format is adjusted automatically depending on the current time
  density (seconds/point) on the axis. For more details on changing this
  behaviour, see :func:`setZoomLevelForDensity() <pyqtgraph.DateAxisItem.setZoomLevelForDensity>`.
  
  Can be added to an existing plot e.g. via 
  :func:`setAxisItems({'bottom':axis}) <pyqtgraph.PlotItem.setAxisItems>`.
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","AxisItem","<","pyqtgraph.AxisItem",">","`","An","AxisItem","that","displays","dates","from","unix","timestamps",".","The","display","format","is","adjusted","automatically","depending","on","the","current","time","density","(","seconds\/point",")","on","the","axis",".","For","more","details","on","changing","this","behaviour",",","see",":","func",":","`","setZoomLevelForDensity","(",")","<","pyqtgraph.DateAxisItem.setZoomLevelForDensity",">","`",".","Can","be","added","to","an","existing","plot","e.g",".","via",":","func",":","`","setAxisItems","(","{","'bottom","'",":","axis","}",")","<","pyqtgraph.PlotItem.setAxisItems",">","`","."]
code: def generateDrawSpecs(self, p):
      # Get font metrics from QPainter
      # Not happening in "paint", as the QPainter p there is a different one from the one here,
      # so changing that font could cause unwanted side effects
      if self.style["tickFont"] is not None:
          p.setFont(self.style["tickFont"])
  
      self.fontMetrics = p.fontMetrics()
  
      # Get font scale factor by current window resolution
  
      return super(DateAxisItem, self).generateDrawSpecs(p)
  
imports: import sys
  import time
  from collections import OrderedDict
  from datetime import datetime, timedelta, timezone
  import numpy
  from .AxisItem import AxisItem
label_desc: Use image node_id 6 for calling the DateAxisItem obj's underlying member method code with example usage: obj.generateDrawSpecs(p) and returns: super