class_docstr: GraphicsItem showing a single plot axis with ticks, values, and label.
  Can be configured to fit on any side of a plot, 
  Can automatically synchronize its displayed scale with ViewBox items.
  Ticks can be extended to draw a grid.
  If maxTickLength is negative, ticks point into the plot.
docstr: The default behavior is to show at least two major ticks for axes of up to 300 pixels in length, 
  then add additional major ticks, spacing them out further as the available room increases.
  (Internally, the targeted number of major ticks grows with the square root of the axes length.)
  
  Setting a tick density different from the default value of `density = 1.0` scales the number of
  major ticks that is targeted for display. This only affects the automatic generation of ticks.
docstr_tok: ["The","default","behavior","is","to","show","at","least","two","major","ticks","for","axes","of","up","to","300","pixels","in","length",",","then","add","additional","major","ticks",",","spacing","them","out","further","as","the","available","room","increases",".","(","Internally",",","the","targeted","number","of","major","ticks","grows","with","the","square","root","of","the","axes","length",".",")","Setting","a","tick","density","different","from","the","default","value","of","`","density","=","1.0","`","scales","the","number","of","major","ticks","that","is","targeted","for","display",".","This","only","affects","the","automatic","generation","of","ticks","."]
code: def setTickDensity(self, density=1.0):
      """
      The default behavior is to show at least two major ticks for axes of up to 300 pixels in length,
      then add additional major ticks, spacing them out further as the available room increases.
      (Internally, the targeted number of major ticks grows with the square root of the axes length.)
  
      Setting a tick density different from the default value of `density = 1.0` scales the number of
      major ticks that is targeted for display. This only affects the automatic generation of ticks.
      """
      self._tickDensity = density
      self.picture = None
      self.update()
  
imports: import weakref
  from math import ceil, floor, isfinite, log10, sqrt, frexp, floor
  import numpy
  from ..None import debug
  from ..None import functions
  from ..None import getConfigOption
  from ..Point import Point
  from ..Qt import QtCore, QtGui, QtWidgets
  from .GraphicsWidget import GraphicsWidget
label_desc: Use image node_id 35 for calling the AxisItem obj's underlying member method code with example usage: obj.setTickDensity(density) without return types