multiple-axes

Adjust space between two axes while keeping it constant on other axes

Adjust space between two axes while keeping it constant on other axes Question: For some reason I couldn’t find information on this (I’m pretty sure it exists somewhere), but in the following generic example, I would like to reduce the hspace between ax1 and ax2 while keeping the same hspace between ax2-ax3 and ax3-ax4. I’d …

Total answers: 1

move third y-axis to right

move third y-axis to right Question: import matplotlib.pyplot as plt fig, ax = plt.subplots() fig.subplots_adjust(right=0.75) twin1 = ax.twinx() twin2 = ax.twinx() #twin2.spines.right.set_position(("axes", 1.2)) p1, = ax.plot([0, 1, 2], [0, 1, 2], "b-", label="Density") p2, = twin1.plot([0, 1, 2], [0, 3, 2], "r-", label="Temperature") p3, = twin2.plot([0, 1, 2], [50, 30, 15], "g-", label="Velocity") ax.set_xlim(0, 2) …

Total answers: 1