About 309,000 results
Open links in new tab
  1. Plots with different scales — Matplotlib 3.10.8 documentation

    Plots with different scales # Two plots on the same Axes with different left and right scales. The trick is to use two different Axes that share the same x axis. You can use separate matplotlib.ticker …

  2. Secondary Axis — Matplotlib 3.10.8 documentation

    Secondary Axis # Sometimes we want a secondary axis on a plot, for instance to convert radians to degrees on the same plot. We can do this by making a child axes with only one axis visible via …

  3. How to prevent x-axis labels from overlapping - Stack Overflow

    I'm generating a bar-chart with matplotlib. It all works well but I can't figure out how to prevent the labels of the x-axis from overlapping each other. Here an example: Here is some sample SQL for a …

  4. Tight Layout guideMatplotlib 3.5.1 documentation

    In order to perform this adjustment each time the figure is redrawn, you can call fig.set_tight_layout(True), or, equivalently, set rcParams["figure.autolayout"] (default: False) to True. …

  5. How to avoid matplot subplot from overlapping? - Stack Overflow

    Jan 11, 2025 · How to avoid matplot subplot from overlapping? Asked 1 year, 2 months ago Modified 1 year, 2 months ago Viewed 585 times

  6. Secondary axis with twinx (): how to add to legend - Stack Overflow

    I have a plot with two y-axes, using twinx(). I also give labels to the lines, and want to show them with legend(), but I only succeed to get the labels of one axis in the legend: import numpy as np

  7. How to prevent xticks overlapping in matplotlib - kanoki

    Feb 18, 2023 · In this article, we will explore how to prevent overlapping x-axis tick labels. When plotting data in a graph, the labels of the x and y axes may sometimes overlap. When the data is large to …

  8. python - subplots are overlapping axis labels - Stack Overflow

    Nov 5, 2012 · I have created a figure in python which contains multiple subplots. I have also added various axis labels to some of the axes on the figures. For examples: plt.xlabel('Phase …

  9. Arranging multiple Axes in a Figure - Matplotlib

    Arranging multiple Axes in a Figure # Often more than one Axes is wanted on a figure at a time, usually organized into a regular grid. Matplotlib has a variety of tools for working with grids of Axes that have …

  10. One legend, two axes? - matplotlib-users - Matplotlib

    Dec 14, 2010 · The first crop of data are all in an overlapping range so are plotted using the left-hand y axis. The standard deviation range falls way outside the ranges of the other data streams, so I plot it …