You can move the ylabel using ax.yaxis.set_label_coords
, which does accept negative numbers. For your example, I removed the line with set_label_position
, and added:
axPres.yaxis.set_label_coords(-0.1,1.02)
More Related Contents:
- Secondary axis with twinx(): how to add to legend?
- How to remove relative shift in matplotlib axis
- How to share x axes of two subplots after they have been created
- Python, Matplotlib, subplot: How to set the axis range?
- matplotlib (equal unit length): with ‘equal’ aspect ratio z-axis is not equal to x- and y-
- Axes class – set explicitly size (width/height) of axes in given units
- How to set the subplot axis range
- How to set the ‘equal’ aspect ratio for all axes (x, y, z)
- Aligning y-ticks to the left
- X-axis tick labels are too dense when drawing plots
- Rotate axis tick labels
- Changing the color of an axis
- Restrict axis to integer tick locations
- Annotate bars with values on Pandas bar plots
- multiple axis in matplotlib with different scales [duplicate]
- PyPlot move alternative y axis to background
- How to use custom png image marker with plot?
- Modify the legend of pandas bar plot
- Changing the tick frequency on the x or y axis
- How to make several plots on a single page using matplotlib?
- Labeling boxplot in seaborn with median value
- Histogram in matplotlib, time on x-Axis
- How can I change the x axis so there is no white space?
- Rotate axis text in matplotlib
- Is it possible to plot implicit equations?
- How can I make a scatter plot colored by density?
- Make tick labels font size smaller
- How to maximize a plt.show() window
- How to display a 3D plot of a 3D array isosurface with mplot3D or similar
- ValueError: x and y must be the same size