AttributeError: &#39;AxesSubplot&#39; object has no attribute &#39;violinplot&#39;chicho&#64;destiny:~/test$ python boxplot_vs_violin.py Traceback (most recent call last):File"boxplot_vs_violin.py", line 36, in <module>axes[0].violinplot(all_data, AttributeError:&#39;AxesSubplot&#39; object has no attribute &#39;violinplot&#39;
chicho&#64;destiny:~$ ipython Python 2.7.12 (default, Jul 182016, 15:02:52) Type"copyright", "credits"or"license"for more information.IPython 1.2.1-- An enhanced Interactive Python. ? -> Introduction and overview of IPython&#39;s features. %quickref -> Quick reference. help -> Python&#39;s own help system. object? -> Details about &#39;object&#39;, use&#39;object??&#39; for extra details.In [1]: import matplotlibIn [2]: print matplotlib.__version__ 2.2.2