About 22,600 results
Open links in new tab
  1. matplotlib.pyplot.xticksMatplotlib 3.10.3 documentation

    matplotlib.pyplot. xticks (ticks = None, labels = None, *, minor = False, ** kwargs) [source] # Get or set the current tick locations and labels of the x-axis. Pass no arguments to return the …

  2. Matplotlib.pyplot.xticks() in Python - GeeksforGeeks

    Apr 1, 2025 · matplotlib.pyplot.xticks() function is used to get or set the x-axis ticks in a plot. This function allows you to modify the labels and positions of the ticks along the x-axis, providing …

  3. Matplotlib xticks() in Python With Examples

    Dec 9, 2020 · In this article, we discussed various ways of implementing Matplotlib xticks() in Python programs. We learned how to set xticks labels frequency and spacing between them. …

  4. xticks - Set or query x-axis tick values - MATLAB - MathWorks

    xticks(ticks) sets the x-axis tick values, which are the locations along the x-axis where the tick marks appear. Specify ticks as a vector of increasing values; for example, [0 2 4 6]. This …

  5. python - How to set xticks in subplots - Stack Overflow

    Since matplotlib 3.5.0, you can set ticks and its labels on one function call using Axes.set_xticks (similar to plt.xticks). Since axes[i,j] is an Axes object, calling set_xticks on it and pass tick …

  6. How to Master Matplotlib Xticks: A Comprehensive Guide for Data ...

    Aug 4, 2024 · Matplotlib xticks refer to the tick marks and labels along the x-axis of a plot. These elements play a crucial role in conveying information about the data points’ positions and …

  7. How xticks and xticklabels Really Work: a Walkthrough

    Aug 17, 2021 · Use ax.set(xticks=[a, b, c]) or ax.set_xticks([a, b, c]) to choose specific places to add ticks at indices. If you don’t specify labels, the first tick will take the value of the first index …

  8. Changing the Ticks on the x or y Axis in Matplotlib

    Feb 15, 2025 · To set major and minor ticks on the x-axis, we can use the set_xticks() method of the Axes object in the object-oriented API or matplotlib.pyplot.xticks() in the state-based API of …

  9. Change the x or y ticks of a Matplotlib figure - GeeksforGeeks

    Oct 29, 2021 · Some of the easiest of them are discussed here. The xticks () and yticks () function takes a list object as an argument. The elements in the list denote the positions of the …

  10. Axis ticks — Matplotlib 3.10.3 documentation

    The simplest method to customize the tick locations and formats is to use set_xticks and set_yticks. These can be used on either the major or the minor ticks. Note that the length of …

Refresh