Reply To: Line charts Logarithmic Scale

Welcome to Taipy Forums Taipy GUI Line charts Logarithmic Scale Reply To: Line charts Logarithmic Scale

Florian JactaFlorian Jacta


It is possible to plot a chart with a logarithm scale. Here is a quick demo of how the x and y axes can be of the log scale. Layout parameters are being used to change the default behavior of the x and y-axis.

from taipy.gui import Gui

data = {"x": [0, 1, 2, 3, 4, 5, 6, 7, 8],
        "y": [8, 7, 6, 5, 4, 3, 2, 1, 0]}

layout = {
  "xaxis": {
    "type": 'log',
    "autorange": True
  "yaxis": {
    "type": 'log',
    "autorange": True


Other options of the same type can be found here:

I hope this helps. Don’t hesitate to come back to me with more questions!

Best regards,
Florian Jacta