QLogValueAxis

The QLogValueAxis class adds a logarithmic scale to a chart’s axis. More

Inheritance diagram of PySide6.QtCharts.QLogValueAxis

Synopsis

Functions

Signals

Detailed Description

A logarithmic scale is a nonlinear scale that is based on orders of magnitude, so that each tick mark on the axis is the previous tick mark multiplied by a value.

Note

If QLogValueAxis is attached to a series with one or more points with negative or zero values on the associated dimension, the series will not be plotted at all. This is particularly relevant when XYModelMappers are used, since empty cells in models typically contain zero values.

class PySide6.QtCharts.QLogValueAxis([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs an axis object that is a child of parent.

PySide6.QtCharts.QLogValueAxis.base()
Return type

float

This property holds The base of the logarithm..

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

PySide6.QtCharts.QLogValueAxis.baseChanged(base)
Parameters

base – float

PySide6.QtCharts.QLogValueAxis.labelFormat()
Return type

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.

If localizeNumbers is true, the supported specifiers are limited to: d, e, E, f, g, G, and i. Also, only the precision modifier is supported. The rest of the formatting comes from the default QLocale of the application.

See also

asprintf()

PySide6.QtCharts.QLogValueAxis.labelFormatChanged(format)
Parameters

format – str

PySide6.QtCharts.QLogValueAxis.max()
Return type

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 value has to be greater than 0.

PySide6.QtCharts.QLogValueAxis.maxChanged(max)
Parameters

max – float

PySide6.QtCharts.QLogValueAxis.min()
Return type

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 value has to be greater than 0.

PySide6.QtCharts.QLogValueAxis.minChanged(min)
Parameters

min – float

PySide6.QtCharts.QLogValueAxis.minorTickCount()
Return type

int

This property holds The number of minor tick marks on the axis. This indicates how many grid lines are drawn between major ticks on the chart. Labels are not drawn for minor ticks. The default value is 0. Set the value to -1 and the number of grid lines between major ticks will be calculated automatically..

PySide6.QtCharts.QLogValueAxis.minorTickCountChanged(minorTickCount)
Parameters

minorTickCount – int

PySide6.QtCharts.QLogValueAxis.rangeChanged(min, max)
Parameters
  • min – float

  • max – float

PySide6.QtCharts.QLogValueAxis.setBase(base)
Parameters

base – float

This property holds The base of the logarithm..

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

PySide6.QtCharts.QLogValueAxis.setLabelFormat(format)
Parameters

format – 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.

If localizeNumbers is true, the supported specifiers are limited to: d, e, E, f, g, G, and i. Also, only the precision modifier is supported. The rest of the formatting comes from the default QLocale of the application.

See also

asprintf()

PySide6.QtCharts.QLogValueAxis.setMax(max)
Parameters

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 value has to be greater than 0.

PySide6.QtCharts.QLogValueAxis.setMin(min)
Parameters

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 value has to be greater than 0.

PySide6.QtCharts.QLogValueAxis.setMinorTickCount(minorTickCount)
Parameters

minorTickCount – int

This property holds The number of minor tick marks on the axis. This indicates how many grid lines are drawn between major ticks on the chart. Labels are not drawn for minor ticks. The default value is 0. Set the value to -1 and the number of grid lines between major ticks will be calculated automatically..

PySide6.QtCharts.QLogValueAxis.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.

PySide6.QtCharts.QLogValueAxis.tickCount()
Return type

int

This property holds The number of tick marks on the axis. This indicates how many grid lines are drawn on the chart. This value is read-only..

PySide6.QtCharts.QLogValueAxis.tickCountChanged(tickCount)
Parameters

tickCount – int