AFAIK you can get the axis object with `gca()`. 

On Mar 24, 2014, at 10:17 PM, samfway <notifications@github.com> wrote:

> In scripts/make_plots.py:
> 
> > +    args.add_argument('-s', '--samples-file', help='Sample ids to be labeled')
> > +    args.add_argument('-c', '--metadata-category', help='Metadata category', default='SIMPLE_MATTER')
> > +    args.add_argument('-v', '--metadata-value', help='Specific metadata value', default=None)
> > +    args.add_argument('-l', '--ylabel', help='Y-axis label', default='Phylum')
> > +    args = args.parse_args()
> > +    return args
> > +
> > +def make_stacked_plot(output_file, filtered_sample_ids, taxa_labels, \
> > +    collapsed_taxa_table, ylabel, colors, sample_ticks=None):
> > +    """ Create a stacked plot. """ 
> > +    N = len(taxa_labels)
> > +    M = collapsed_taxa_table.shape[1]
> > +    x = arange(M)
> > +    cumulative = cumsum(collapsed_taxa_table, axis=0)
> > +    fig = plt.figure()
> > +    ax1 = fig.add_subplot(111)
> I was under the impression that you have to call subplots() or add_subplot() to get an Axis handle. ax1.set_xticks(xticks)
> 
> —
> Reply to this email directly or view it on GitHub.
>