You can set the zorder
of an axes, ax.set_zorder()
. One would then need to remove the background of that axes, such that the axes below is still visible.
ax2 = ax1.twinx()
ax1.set_zorder(10)
ax1.patch.set_visible(False)
More Related Contents:
- Scatter plots in Pandas/Pyplot: How to plot by category [duplicate]
- stack bar plot in matplotlib and add label to each section
- How to change the figure size of a seaborn axes or figure level plot
- Horizontal stacked bar plot and add labels to each section
- How to use a (random) *.otf or *.ttf font in matplotlib?
- Reduce left and right margins in matplotlib plot
- Matplotlib yaxis range display using absolute values rather than offset values?
- How to change spacing between ticks in matplotlib?
- Wrapping long y labels in matplotlib tight layout using setp
- Change tick frequency on X (time, not number) frequency in matplotlib
- Plotting different colors in matplotlib [duplicate]
- How to fill matplotlib bars with a gradient?
- What is %pylab?
- Python basemap module impossible to import
- How to animate the colorbar in matplotlib
- Python equivalent to ‘hold on’ in Matlab
- Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2)
- How to overplot a line on a scatter plot in python?
- How is order of items in matplotlib legend determined?
- Format of datetime in pyplot axis
- setting spacing between grouped bar plots in matplotlib
- Add cylinder to plot
- Indicating the statistically significant difference in bar graph
- How can I show figures separately?
- countplot() with frequencies
- Changing position of vertical (z) axis of 3D plot
- Putting arrowheads on vectors in a 3d plot
- Using Sympy Equations for Plotting
- Horizontal stacked bar chart in Matplotlib
- get_xticklabels() contains empty text instances