<jupyter_start><jupyter_text>This notebook plots the number of origins of viviparity and reversions to oviparity, broken down by tree. The result is a grouped histogram.<jupyter_code>import pandas as pd
from pandas import *
import matplotlib.pyplot as plt
%matplotlib inline
from ggplot import *
from numpy import random 
plt.style.use('ggplot')<jupyter_output><empty_output><jupyter_text>Read data using pandas.<jupyter_code>data = pd.read_csv("../Data/Histogram/pared_down.csv")
data
data.columns<jupyter_output><empty_output><jupyter_text>Pivot the table to group the data by tree.<jupyter_code>table = pivot_table(data, index=['Tree'], columns=['Parameter'])
table<jupyter_output><empty_output><jupyter_text>Plot using native pandas plotting.<jupyter_code>table.plot(kind='bar', width=.7, sort_columns=True).set_ylim(0,75)

plt.tight_layout()
plt.savefig('exTotal.svg', bbox_inches='tight', dpi=300)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1157556270096463, 'fraction_numerical': 0.007502679528403001, 'mean_word_length': 8.434343434343434, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '586152', 'license': 'MIT', 'n_tokens_mistral': 338, 'n_tokens_neox': 319, 'n_words': 71, 'path': 'ExploratoryNotebooks/CountedPlots.ipynb', 'repo_name': 'wrightaprilm/squamates', 'size': '933'}