About 4,220 results
Open links in new tab
  1. Log scaleMatplotlib 3.10.8 documentation

    By default, the log scale is to the base 10. One can change this via the base parameter. Non-positive values cannot be displayed on a log scale. The scale has two options to handle these. Either mask …

  2. How to Plot Logarithmic Axes in Matplotlib - GeeksforGeeks

    Jul 23, 2025 · In Matplotlib, you can easily set logarithmic scales for the x-axis, y-axis, or both using simple methods. Let’s explore straightforward ways to apply logarithmic scales in Matplotlib.

  3. python - Plot logarithmic axes - Stack Overflow

    If you want log scales on both axes, try loglog() or on x-axis only try semilogx()

  4. Work with Loglog Log Scale and Adjusting Ticks in Matplotlib

    Oct 1, 2025 · Learn how to use log-log scale and adjust ticks in Matplotlib with Python. Step-by-step methods, code examples, and tips for better data visualization.

  5. Axis scalesMatplotlib 3.10.8 documentation

    By default Matplotlib displays data on the axis using a linear scale. Matplotlib also supports logarithmic scales, and other less common scales as well. Usually this can be done directly by using the …

  6. How to Create Matplotlib Plots with Log Scales - Statology

    Sep 4, 2020 · Fortunately Matplotlib offers the following three functions for doing so: Matplotlib.pyplot.semilogx () – Make a plot with log scaling on the x-axis. Matplotlib.pyplot.semilogy () …

  7. How to Plot Logarithmic Axes With Matplotlib in Python

    Feb 12, 2022 · Now let’s see in action how we can plot figures on logarithmic scale using the matplotlib package in Python.

  8. How to Plot Logarithmic Axes in Matplotlib - Delft Stack

    Feb 2, 2024 · To draw semilog graphs in Matplotlib, we use set_xscale() or set_yscale() and semilogx() or semilogy() functions. If we have to set both axes in the logarithmic scale we use loglog() function.

  9. Set a Logarithmic Scale on the Y-Axis in Matplotlib - Python Guides

    Jan 14, 2026 · Learn how to set the Matplotlib y-axis to a log scale. I’ll show you various methods using real-world US data to handle large value ranges in your plots.