PySide6.QtGraphs.QLogValueAxis

class QLogValueAxis

The QLogValueAxis class adds logarithmic values to a graph’s axes.

Details

A logarithmic value axis can be set up to show an axis line with tick marks, grid lines, and shades. The values on the axis are drawn at the positions of tick marks.

Inheritance diagram of PySide6.QtGraphs.QLogValueAxis

Added in version 6.12.

Synopsis

Properties

  • baseᅟ

  • labelFormatᅟ - Label format of the axis

  • labelPostFormatᅟ - Label post format of the axis

  • labelPrecisionᅟ - Maximum number of significant digits used for showing the labels. The default value is 6. Any negative precision is ignored in favor of the default, 6

  • maxᅟ - Maximum value on the axis

  • minᅟ - Minimum value on the axis

  • panᅟ - Value of the axis

  • subTickCountᅟ - Number of subticks on the axis. This indicates how many subticks are drawn between major lines on the graph. Labels are not drawn for subticks. Set the value to -1 and the number of subticks will be set equal to the closest integer value of the logarithm base. The default value is -1

  • tickCountᅟ

  • visualMaxᅟ - Visual maximum value of the axis

  • visualMinᅟ - Visual minimum value of the axis

  • zoomᅟ - Value of the axis

Methods

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property baseᅟ: float

This base of the logarithm.

The value has to be greater than 0 and cannot equal 1. The default value is 10.0

Access functions:
property labelFormatᅟ: str

This property holds The label format of the axis..

The format string supports the following conversion specifiers, length modifiers, and flags provided by printf() in the standard C++ library: d, i, o, x, X, f, F, e, E, g, G, c. Then the formatted string goes through labelPostFormat() .

The default value is empty, in which case ‘f’ format is used.

See also

asprintf()

Access functions:
property labelPostFormatᅟ: str

This property holds The label post format of the axis..

The label first goes through labelFormat() to format the value, then goes through this.

The default value is “%1”.

See also

arg()

Access functions:
property labelPrecisionᅟ: int

This property holds The maximum number of significant digits used for showing the labels. The default value is 6. Any negative precision is ignored in favor of the default, 6..

Access functions:
property maxᅟ: float

This property holds The maximum value on the axis..

When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid. The default value is 10.0

Access functions:
property minᅟ: float

This property holds The minimum value on the axis..

When setting this property, the maximum value is adjusted if necessary, to ensure that the range remains valid. The default value is 0.0

Access functions:
property panᅟ: float

This property holds The pan value of the axis..

The pan value moves the center of the axis without affecting intervals of grid and labels. The default value is 0.

Access functions:
property subTickCountᅟ: int

This property holds The number of subticks on the axis. This indicates how many subticks are drawn between major lines on the graph. Labels are not drawn for subticks. Set the value to -1 and the number of subticks will be set equal to the closest integer value of the logarithm base. The default value is -1..

Access functions:
property tickCountᅟ: int

This property holds the number of tick marks on the axis. This value is read-only.

Access functions:
property visualMaxᅟ: float

This property holds The visual maximum value of the axis..

This property holds a a visual maximum axis value when axis has been panned or zoomed. The default value is max()

Access functions:
property visualMinᅟ: float

This property holds The visual minimum value of the axis..

This property holds a a visual minimum axis value when axis has been panned or zoomed. The default value is min()

Access functions:
property zoomᅟ: float

This property holds The zoom value of the axis..

The zoom value enlarges or shrinks the axis and thus the graph without affecting intervals of grid and labels. The default value is 1.

Access functions:
__init__([parent=None])
Parameters:

parent – QObject

Constructs an axis object that is a child of parent.

base()
Return type:

float

See also

setBase()

Getter of property baseᅟ .

baseChanged(base)
Parameters:

base – float

Notification signal of property baseᅟ .

labelFormat()
Return type:

str

See also

setLabelFormat()

Getter of property labelFormatᅟ .

labelFormatChanged(format)
Parameters:

format – str

Notification signal of property labelFormatᅟ .

labelPostFormat()
Return type:

str

Getter of property labelPostFormatᅟ .

labelPostFormatChanged(format)
Parameters:

format – str

Notification signal of property labelPostFormatᅟ .

labelPrecision()
Return type:

int

Getter of property labelPrecisionᅟ .

labelPrecisionChanged(precision)
Parameters:

precision – int

Notification signal of property labelPrecisionᅟ .

max()
Return type:

float

See also

setMax()

Getter of property maxᅟ .

maxChanged(max)
Parameters:

max – float

Notification signal of property maxᅟ .

min()
Return type:

float

See also

setMin()

Getter of property minᅟ .

minChanged(min)
Parameters:

min – float

Notification signal of property minᅟ .

pan()
Return type:

float

See also

setPan()

Getter of property panᅟ .

panChanged(pan)
Parameters:

pan – float

Notification signal of property panᅟ .

rangeChanged(min, max)
Parameters:
  • min – float

  • max – float

setBase(base)
Parameters:

base – float

See also

base()

Setter of property baseᅟ .

setLabelFormat(format)
Parameters:

format – str

See also

labelFormat()

Setter of property labelFormatᅟ .

setLabelPostFormat(format)
Parameters:

format – str

Setter of property labelPostFormatᅟ .

setLabelPrecision(decimals)
Parameters:

decimals – int

See also

labelPrecision()

Setter of property labelPrecisionᅟ .

setMax(max)
Parameters:

max – float

See also

max()

Setter of property maxᅟ .

setMin(min)
Parameters:

min – float

See also

min()

Setter of property minᅟ .

setPan(pan)
Parameters:

pan – float

See also

pan()

Setter of property panᅟ .

setRange(min, max)
Parameters:
  • min – float

  • max – float

Sets the range from min to max on the axis. If min is greater than max, this function returns without making any changes.

setSubTickCount(count)
Parameters:

count – int

See also

subTickCount()

Setter of property subTickCountᅟ .

setZoom(zoom)
Parameters:

zoom – float

See also

zoom()

Setter of property zoomᅟ .

subTickCount()
Return type:

int

Getter of property subTickCountᅟ .

subTickCountChanged(subTickCount)
Parameters:

subTickCount – int

Notification signal of property subTickCountᅟ .

tickCount()
Return type:

int

tickCountChanged(tickCount)
Parameters:

tickCount – int

Notification signal of property tickCountᅟ .

visualMax()
Return type:

float

Getter of property visualMaxᅟ .

visualMaxChanged(visualMax)
Parameters:

visualMax – float

Notification signal of property visualMaxᅟ .

visualMin()
Return type:

float

Getter of property visualMinᅟ .

visualMinChanged(visualMin)
Parameters:

visualMin – float

Notification signal of property visualMinᅟ .

zoom()
Return type:

float

See also

setZoom()

Getter of property zoomᅟ .

zoomChanged(zoom)
Parameters:

zoom – float

Notification signal of property zoomᅟ .