¡@

Home 

python Programming Glossary: plt.gca

Heatmap in matplotlib with pcolor?

http://stackoverflow.com/questions/14391959/heatmap-in-matplotlib-with-pcolor

rotation 90 ax.grid False # Turn off all the ticks ax plt.gca for t in ax.xaxis.get_major_ticks t.tick1On False t.tick2On..

How to prevent numbers being changed to exponential form in Python matplotlib figure

http://stackoverflow.com/questions/14711655/how-to-prevent-numbers-being-changed-to-exponential-form-in-python-matplotlib-fi

it off plt.plot arange 0 100 10 1000 arange 0 100 10 ax plt.gca ax.get_xaxis .get_major_formatter .set_useOffset False plt.draw..

Is there a way to convert pyplot.imshow() object to numpy array?

http://stackoverflow.com/questions/14869321/is-there-a-way-to-convert-pyplot-imshow-object-to-numpy-array

as plt import PIL from cStringIO import StringIO frame1 plt.gca frame1.axes.get_xaxis .set_visible False frame1.axes.get_yaxis..

Plotting a curve with equidistant (arc-length) markers

http://stackoverflow.com/questions/17406758/plotting-a-curve-with-equidistant-arc-length-markers

import scipy.integrate if data_ratio is None data_ratio plt.gca .get_data_ratio dydx gradient y x 1 dxdx gradient x x 1 data_ratio..

PyPlot reverse Y-Axis

http://stackoverflow.com/questions/2051744/pyplot-reverse-y-axis

There is a new API that makes this even simpler. plt.gca .invert_xaxis and or plt.gca .invert_yaxis share improve this..

Hiding axis text in matplotlib plots

http://stackoverflow.com/questions/2176424/hiding-axis-text-in-matplotlib-plots

for i in arange 100 plt.plot rx ry 'ko' frame1 plt.gca for xlabel_i in frame1.axes.get_xticklabels xlabel_i.set_visible..

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

angleB 90 angleA 0 rad 5' return arrow if ax is None ax plt.gca ymin ax.get_ylim 0 ypad 0.01 np.ptp ax.get_ylim xcenter np.mean.. 20 Makes a second bottom spine if ax is None ax plt.gca second_bottom mpl.spines.Spine ax 'bottom' ax.spines 'bottom'..

How can I improve my paw detection?

http://stackoverflow.com/questions/4087919/how-can-i-improve-my-paw-detection

plot_paw_impacts time data_slices ax None if ax is None ax plt.gca # Group impacts by paw... for i dat_slice in enumerate data_slices.. time data data_slices ax None if ax is None ax plt.gca # Display all paw impacts sum over time ax.imshow data.sum axis..

plotting unix timestamps in matplotlib

http://stackoverflow.com/questions/4090383/plotting-unix-timestamps-in-matplotlib

In that case you can set up your own date formatter ax plt.gca xfmt md.DateFormatter ' Y m d H M S' ax.xaxis.set_major_formatter.. plt.subplots_adjust bottom 0.2 plt.xticks rotation 25 ax plt.gca xfmt md.DateFormatter ' Y m d H M S' ax.xaxis.set_major_formatter.. plt.subplots_adjust bottom 0.2 plt.xticks rotation 25 ax plt.gca xfmt md.DateFormatter ' Y m d H M S' ax.xaxis.set_major_formatter..

Is there a matplotlib equivalent of MATLAB's datacursormode?

http://stackoverflow.com/questions/4652439/is-there-a-matplotlib-equivalent-of-matlabs-datacursormode

10 'ro ' fig.canvas.mpl_connect 'pick_event' DataCursor plt.gca line.set_picker 5 # Tolerance in points As it seems like at..

How to get different lines for different plots in a single figure?

http://stackoverflow.com/questions/4805048/how-to-get-different-lines-for-different-plots-in-a-single-figure

matplotlib.pyplot as plt import numpy as np x np.arange 10 plt.gca .set_color_cycle 'red' 'green' 'blue' 'yellow' plt.plot x x.. show_colormaps.html colormap plt.cm.gist_ncar plt.gca .set_color_cycle colormap i for i in np.linspace 0 0.9 num_plots..

Color values in imshow for matplotlib?

http://stackoverflow.com/questions/5836560/color-values-in-imshow-for-matplotlib

10 10 255 interpolation 'nearest' fig plt.gcf ax plt.gca class EventHandler def __init__ self fig.canvas.mpl_connect..

How can I place a table on a plot in Matplotlib?

http://stackoverflow.com/questions/8524401/how-can-i-place-a-table-on-a-plot-in-matplotlib

construction code Thanks import pylab as plt plt.figure ax plt.gca y 1 2 3 4 5 4 3 2 1 1 1 1 1 1 1 1 plt.plot 10 10 14 14 10 2.. matplotlib as mpl mpl.rc 'text' usetex True plt.figure ax plt.gca y 1 2 3 4 5 4 3 2 1 1 1 1 1 1 1 1 #plt.plot 10 10 14 14 10 2.. be made with import matplotlib.pylab as plt plt.figure ax plt.gca y 1 2 3 4 5 4 3 2 1 1 1 1 1 1 1 1 #plt.plot 10 10 14 14 10 2..