¡@

Home 

python Programming Glossary: ax2.plot

plotting a smooth curve in matplotlib graphs

http://stackoverflow.com/questions/14705062/plotting-a-smooth-curve-in-matplotlib-graphs

ax1 ax2 ax3 plt.subplots 1 3 sharey True ax1.plot u y 'r' ax2.plot v y 'g' ax3.plot w y 'b' #texts ax1.set_title 'u component'..

matplotlib: combine different figures and put them in a single subplot sharing a common legend

http://stackoverflow.com/questions/16748577/matplotlib-combine-different-figures-and-put-them-in-a-single-subplot-sharing-a

from other case fig2 plt.figure ax2 fig2.add_subplot 111 ax2.plot x y2 label 'mode 01' EDIT the method suggested by @nordev works... other case fig2 plt.figure ax2 fig2.add_subplot 111 line2 ax2.plot x y2 label 'mode 01' # Create new figure and two subplots sharing..

How can I show figures separately in matplotlib?

http://stackoverflow.com/questions/2397791/how-can-i-show-figures-separately-in-matplotlib

111 ax1.plot range 0 10 ax2 f2.add_subplot 111 ax2.plot range 10 20 plt.show Alternatively use add_axes . ax1 f1.add_axes..

matplotlib share x axis but don't show x axis tick labels for both, just one

http://stackoverflow.com/questions/4209467/matplotlib-share-x-axis-but-dont-show-x-axis-tick-labels-for-both-just-one

range 10 'b ' ax2 fig.add_subplot 2 1 2 sharex ax1 ax2.plot range 10 'r ' plt.setp ax1.get_xticklabels visible False plt.show..

Save a subplot in matplotlib

http://stackoverflow.com/questions/4325733/save-a-subplot-in-matplotlib

2 1 1 ax1.plot range 10 'b ' ax2 fig.add_subplot 2 1 2 ax2.plot range 20 'r^' # Save the full figure... fig.savefig 'full_figure.png'..

Secondary axis with twinx(): how to add to legend?

http://stackoverflow.com/questions/5484922/secondary-axis-with-twinx-how-to-add-to-legend

label 'Swdown' ax.plot time Rn ' ' label 'Rn' ax2 ax.twinx ax2.plot time temp ' r' label 'temp' ax.legend loc 0 ax.grid ax.set_xlabel.. lns2 ax.plot time Rn ' ' label 'Rn' ax2 ax.twinx lns3 ax2.plot time temp ' r' label 'temp' # added these three lines lns lns1..

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

True # plot the same data on both axes ax.plot x y 'bo' ax2.plot x y 'bo' # zoom in limit the view to different portions of the.. True # plot the same data on both axes ax.plot x y 'bo' ax2.plot x y 'bo' # zoom in limit the view to different portions of the.. transform ax2.transAxes # switch to the bottom axes ax2.plot d d d d kwargs # top right diagonal ax2.plot d d 1 d 1 d kwargs..

why is plotting with Matplotlib so slow?

http://stackoverflow.com/questions/8955869/why-is-plotting-with-matplotlib-so-slow

x arange 0 2 pi 0.01 y sin x line1 ax1.plot x y 'r ' line2 ax2.plot x y 'g ' line3 ax3.plot x y 'y ' line4 ax4.plot x y 'm ' line5..