python - Setting axis properties on axis-sharing plots -


say have plot several axis-sharing subplots, such 1 below. how can control x_ticks go in x-axis shared subplots?

for example, want display ticks on following values of x: 0, 50 , 100. far understand, method ax.set_xticks need specify axis, share one, how handle?

f, axes = plt.subplots(3, sharex=true, sharey=true) ix in xrange(3):   ax = axes[ix]   t = np.arange(0.0, 100.0, 0.1)   s = np.sin(0.1*np.pi*t)*np.exp(-t*0.01)    ax.plot(t,s) 

update:

how can have ylabel subplots centered vertically?

enter image description here

using plt.setp:

plt.setp(axes[-1], xticks=[5,10,45]) 

shared x

fyi, more information here:
http://matplotlib.org/examples/pylab_examples/shared_axis_demo.html


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -