Skip to content

plot_posterior_predictive: keyword normed is deprecated in matplotlib #38

Description

@ilykos
~/.local/lib/python3.8/site-packages/hddm/models/base.py in plot_posterior_predictive(self, *args, **kwargs)
    766         if 'value_range' not in kwargs:
    767             kwargs['value_range'] = np.linspace(-5, 5, 100)
--> 768         kabuki.analyze.plot_posterior_predictive(self, *args, **kwargs)
    769 
    770     def plot_posterior_quantiles(self, *args, **kwargs):
~/.local/lib/python3.8/site-packages/kabuki/analyze.py in plot_posterior_predictive(model, plot_func, required_method, columns, save, path, figsize, format, num_subjs, **kwargs)
    558                 ax.set_title(str(bottom_node['subj_idx']))
    559 
--> 560             plot_func(bottom_node['node'], ax, **kwargs)
    561 
    562             if num_subjs is not None and i >= num_subjs:
~/.local/lib/python3.8/site-packages/kabuki/analyze.py in _plot_posterior_pdf_node(bottom_node, axis, value_range, samples, bins, normed)
    476     # Plot data
    477     if len(bottom_node.value) != 0:
--> 478         axis.hist(bottom_node.value.values, normed=True, color='r',
    479                   range=(value_range[0], value_range[-1]), label='data',
    480                   bins=bins, histtype='step', lw=2.)

Keyword normed is deprecated in matplotlib and replaced by density.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions