About 384,000 results
Open links in new tab
  1. How to Hide Axis Text Ticks or Tick Labels in Matplotlib?

    Apr 18, 2025 · The xticks() and yticks() functions in Matplotlib are used to define the positions of the ticks on x and y axes respectively. These functions take a list of values that represent tick locations. …

  2. TicksMatplotlib 3.10.8 documentation

    Set default y-axis tick labels on the right Setting tick labels from a list of values

  3. Matplotlib Remove Tick Labels - Python Guides

    Jul 12, 2025 · Learn how to remove tick labels in Matplotlib with simple, methods. Enhance your Python plots by creating clean, professional, and distraction-free charts.

  4. matplotlib.axes.Axes.set_xticksMatplotlib 3.10.8 documentation

    matplotlib.axes.Axes.set_xticks # Axes.set_xticks(ticks, labels=None, *, minor=False, **kwargs) [source] # Set the xaxis' tick locations and optionally tick labels. If necessary, the view limits of the Axis are …

  5. Matplotlib - Setting Ticks and Tick Labels - GeeksforGeeks

    Jul 23, 2025 · Matplotlib has the ability to customize ticks and tick labels on axes, which enhances the readability and interpretability of graphs. This article will explore setting ticks and tick labels, …

  6. Remove the x-axis ticks while keeping the grids (matplotlib)

    Dec 6, 2013 · I want to remove the ticks on the x-axis but keep the vertical girds. When I do the following I lose both x-axis ticks as well as the grid. import matplotlib.pyplot as plt fig = plt.figure() figr...

  7. Hide tick label values but keep axis labels - Stack Overflow

    If you use the matplotlib object-oriented approach, this is a simple task using ax.set_xticklabels() and ax.set_yticklabels(). Here we can just set them to an empty list to remove any labels:

  8. matplotlib remove the ticks (axis) from the colorbar

    May 11, 2019 · I want to remove the (ticks) axis with numbers to the right of the colorbar. I am using matplotlib with python as follows:

  9. Matplotlib 中如何隐藏坐标轴文本刻度或刻度标签?

    1/ 自定义坐标轴刻度 Matplotlib的目标是用python对象表现任意图形元素。 例如:figure对象,它的本质是一个盛放图形元素的包围盒。 在Matplolib中每个figure都会包含一个或多个axes对象,每个axes对 …

  10. How To Remove Axis Ticks In Matplotlib - blog.entomologist.net

    Feb 8, 2026 · To remove ticks in Matplotlib plots effectively, the plt. tick_params method is advantageous. This approach allows users to disable major and minor ticks and eliminate x-axis …