<jupyter_start><jupyter_text>Plotting the results with python toolsTo plot the results using Python you will need to install additional packages into your virtual environment.  Here's an example which uses `matplotlib` and the `pandas` package.<jupyter_code>%matplotlib inline

import os
import matplotlib
import pandas as pd

# set matplotlib  style
matplotlib.style.use('ggplot')

# setup file path
archive_dir = './phenocamdata'
sitename = 'bartlettir'
roiname = 'DB_0001'
infile = "{}_{}_timeseries.csv".format(sitename, roiname)
inpath = os.path.join(archive_dir, sitename, 'ROI', infile)
print inpath

# read in file
with open(inpath,'r') as fd:
    df = pd.read_csv(fd, comment='#', parse_dates=[[0,1]])

# check the data
df.head()
# plot the data frame gcc values
df.index = df.date_local_std_time
ax = df.gcc.plot(style='k.', markersize=.5, figsize=[16,4])
ax.set_ylabel('gcc')
ax.set_xlabel('date')
infile2 = "{}_{}_3day.csv".format(sitename, roiname)
inpath2 = os.path.join(archive_dir, sitename, 'ROI', infile2)

# read in file
print inpath
print inpath2
with open(inpath2,'r') as fd:
    df2 = pd.read_csv(fd, comment='#', parse_dates=[0])

# check the data
df2.head()
# plot the data frame gcc values
df.index = df.date_local_std_time
ax = df.gcc.plot(style='k.', markersize=.5, figsize=[16,4])
df2.plot('date','gcc_90', grid=True, style=['g'], ax=ax)
ax.set_ylabel('gcc')
ax.set_xlabel('date')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1474269819193324, 'fraction_numerical': 0.01808066759388039, 'mean_word_length': 5.819905213270142, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '274167', 'license': 'CC0-1.0', 'n_tokens_mistral': 554, 'n_tokens_neox': 530, 'n_words': 138, 'path': 'python-vegindex_CLI/Plotting_Output.ipynb', 'repo_name': 'tmilliman/phenocam_notebooks', 'size': '1438'}