Hi there,

I've a question for stick plots plotted in multiple subplots. The thing is I have multiple subplots of stickplots, but I want all of them to share the same magnitude(not the same quiverkey, which is achievable). This cannot be achieved with sharex=True obviously and neither with sharey=True; as the stickplots takes direction and magnitude. How can I get through this . Any help is appreciated.

here is the defined function for the same: (this code is just a sample, to better under the question. The image attached is produced with a lengthier code)

________________________________________________________

def stick_plot(time, u, v, **kw): fig, ax = plt.subplots() q = ax.quiver(date2num(time), [[0] * len(time)], u, v, angles='uv', width=0.0008, **kw) return q

fig, ax = plt.subplots(nrows=2, ncols=1)

q1 = stick_plot(time_1, u_1, v_1, ax=ax[0])

q1_key = ax[0].quiverkey(q_1 ,x_pos, y_pos, 10,10)

q2 = stick_plot(time_2, u_2, v_2, ax=ax[1])

q2_key = ax[1].quiverkey(q_2, x_pos,y_pos, 10,10)

plt.show()

__________________________________________________

For the image, notice how the length of quiverkey is different for different subplots.

More Ranjan Kumar Sahu's questions See All
Similar questions and discussions