Axis in python plots -
i need plot multiple plots in same figures, this:
the code this:
from __future__ import division matplotlib import pyplot plt import numpy np fig, ax = plt.subplots(nrows=3, ncols=4, sharex=true, sharey=true, figsize=(16, 12)) fig.text(0.5, 0.04, '$\mathrm{v_{gas}^{hi}}$ [km/s]', ha='center') fig.text(0.04, 0.5, '$\mathrm{w_{50}^{median}}$', va='center', rotation='vertical') in range (1,13): ax = plt.subplot(3,4,i) n, bins, patches = plt.hist(data, 50, color='red',histtype='step', weights=weight) plt.plot((a,b), (maxim, maxim),"b-") plt.plot((a-c/2,a), (maxim, maxim),"b--") plt.plot((b,b+c/2), (maxim, maxim),"b--")
so plot histogram , lines on it. question why first plot doesn't have label on x-axis?
Comments
Post a Comment