¡@

Home 

python Programming Glossary: ax.spines

how to handle an asymptote/discontinuity with Matplotlib

http://stackoverflow.com/questions/2540294/how-to-handle-an-asymptote-discontinuity-with-matplotlib

x fig plt.figure 1 ax fig.add_subplot 111 # set up axis ax.spines 'left' .set_position 'zero' ax.spines 'right' .set_color 'none'.. 111 # set up axis ax.spines 'left' .set_position 'zero' ax.spines 'right' .set_color 'none' ax.spines 'bottom' .set_position 'zero'.. .set_position 'zero' ax.spines 'right' .set_color 'none' ax.spines 'bottom' .set_position 'zero' ax.spines 'top' .set_color 'none'..

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

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 spine.. None ax plt.gca second_bottom mpl.spines.Spine ax 'bottom' ax.spines 'bottom' ._path second_bottom.set_position 'outward' offset.. ._path second_bottom.set_position 'outward' offset ax.spines 'second_bottom' second_bottom if label is not None # Make a..

Changing the color of the axis, ticks and labels for a plot in matplotlib

http://stackoverflow.com/questions/4761623/changing-the-color-of-the-axis-ticks-and-labels-for-a-plot-in-matplotlib

range 10 ax.set_xlabel 'X axis' ax.set_ylabel 'Y axis' ax.spines 'bottom' .set_color 'red' ax.spines 'top' .set_color 'red' ax.xaxis.label.set_color.. ax.set_ylabel 'Y axis' ax.spines 'bottom' .set_color 'red' ax.spines 'top' .set_color 'red' ax.xaxis.label.set_color 'red' ax.tick_params..

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

9 10 # outliers only # hide the spines between ax and ax2 ax.spines 'right' .set_visible False ax2.spines 'left' .set_visible False.. 9 10 # outliers only # hide the spines between ax and ax2 ax.spines 'right' .set_visible False ax2.spines 'left' .set_visible False..

Intraday candlestick charts using MatPlotLib

http://stackoverflow.com/questions/9673988/intraday-candlestick-charts-using-matplotlib

fig.add_axes 0.1 0.2 0.85 0.7 # customization of the axis ax.spines 'right' .set_color 'none' ax.spines 'top' .set_color 'none'.. of the axis ax.spines 'right' .set_color 'none' ax.spines 'top' .set_color 'none' ax.xaxis.set_ticks_position 'bottom'.. direction 'out' width 2 length 8 labelsize 12 pad 8 ax.spines 'left' .set_linewidth 2 ax.spines 'bottom' .set_linewidth 2..