About 137,000 results
Open links in new tab
  1. Changing the tick frequency on the x or y axis - Stack Overflow

    Notice the x-axis has integer values all evenly spaced by 5, whereas the y-axis has a different interval (the matplotlib default behavior, because the ticks weren't specified).

  2. adding extra axis ticks using matplotlib - Stack Overflow

    plt.xticks(list(plt.xticks()[0]) + extraticks) The function to use is xticks(). When called without arguments, it returns the current ticks. Calling it with arguments, you can set the tick positions …

  3. python - How to remove xticks from a plot - Stack Overflow

    A simple solution to this problem is to set the color of the xticks to White or to whatever the background color is. This will hide the text of the xticks but not the xticks itself.

  4. python - Modify tick label text - Stack Overflow

    As of today (matplotlib 2.2.2) and after some reading and trials, I think the best/proper way is the following: Matplotlib has a module named ticker that "contains classes to support completely …

  5. python - Matplotlib Xticks Values in Bar Chart - Stack Overflow

    Matplotlib Xticks Values in Bar Chart Asked 7 years, 10 months ago Modified 7 years, 10 months ago Viewed 64k times

  6. 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 …

  7. python - Diagonal tick labels - Stack Overflow

    Instead of using set_xticks or set_xticklabels, which are both officially discouraged, you can just use the rotation parameter to xticks: plt.xticks(rotation=45, ha="right") This way you can …

  8. python - Rotate axis tick labels - Stack Overflow

    ax.tick_params(axis='x', labelrotation=90) Matplotlib documentation reference here. This is useful when you have an array of axes as returned by plt.subplots, and it is more convenient than …

  9. python - How to change tick label font size - Stack Overflow

    Jun 17, 2011 · In a matplotlib figure, how can I make the font size for the tick labels using ax1.set_xticklabels() smaller? Further, how can one rotate it from horizontal to vertical?

  10. Matplotlib: how to give xticks values from a list - Stack Overflow

    Matplotlib: how to give xticks values from a list Asked 6 years, 9 months ago Modified 6 years, 9 months ago Viewed 10k times