python Programming Glossary: spine
How do I plot multiple X or Y axes in matplotlib? http://stackoverflow.com/questions/3918028/how-do-i-plot-multiple-x-or-y-axes-in-matplotlib It's definitely possible with matplotlib 1.0.0. The new spines functionality allows it It requires a fair bit of voodoo though..... bottom 0.2 ax.plot x y 'k^' # Drop the bottom spine by 40 pts ax.spines 'bottom' .set_position 'outward' 40 # Make.. 0.2 ax.plot x y 'k^' # Drop the bottom spine by 40 pts ax.spines 'bottom' .set_position 'outward' 40 # Make a second bottom..
Python/Matplotlib - Is there a way to make a discontinuous axis? http://stackoverflow.com/questions/5656798/python-matplotlib-is-there-a-way-to-make-a-discontinuous-axis of the data ax2.set_xlim 9 10 # outliers only # hide the spines between ax and ax2 ax.spines 'right' .set_visible False ax2.spines.. 10 # outliers only # hide the spines between ax and ax2 ax.spines 'right' .set_visible False ax2.spines 'left' .set_visible False.. ax and ax2 ax.spines 'right' .set_visible False ax2.spines 'left' .set_visible False ax.yaxis.tick_left ax.tick_params..
matplotlib: adding second axes() with transparent background? http://stackoverflow.com/questions/7761778/matplotlib-adding-second-axes-with-transparent-background 'bottom' newax.xaxis.set_label_position 'bottom' newax.spines 'bottom' .set_position 'outward' 40 ax.plot range 10 'r ' newax.plot.. False newax.yaxis.set_visible False for spinename spine in newax.spines.iteritems if spinename 'bottom' spine.set_visible.. False newax.yaxis.set_visible False for spinename spine in newax.spines.iteritems if spinename 'bottom' spine.set_visible..
|