<commit_before>---
published: true
layout: post
title: Myria, IPython and finally a plot
---

## Playing with IPython, making figures, happy days!

It's always a great day when you make a nice figure from your data! With Dan's help I fixed the data type error I was running into on Tuesday, so I could start exploring the links between the seaflow data and the environmental conditions. I'm also taking this opportunity to force myself to use python, and particularly IPython notebooks to track my data analysis and code for making figures. 

You can take a look at my first ipython notebook [right here](http://nbviewer.ipython.org/github/uwescience/seaflow-myria/blob/master/ipython_notebooks/myria_TS_plots.ipynb). I use pandas to import the result of my Myria query directly into python, and then matplotlib to produce a figure that shows the mean forward scatter values for beads in T/S space. We use beads in seaflow to act as an internal standard. The position of the beads changes when the sensitivity of the instrument is changed to "see" larger or smaller populations. 

tags: seaflow, incubator, python<commit_msg>added figure<commit_after>---
published: true
layout: post
title: Myria, IPython and finally a plot
---

## Playing with IPython, making figures, happy days!

It's always a great day when you make a nice figure from your data! With Dan's help I fixed the data type error I was running into on Tuesday, so I could start exploring the links between the seaflow data and the environmental conditions. I'm also taking this opportunity to force myself to use python, and particularly IPython notebooks to track my data analysis and code for making figures. 

You can take a look at my first ipython notebook [right here](http://nbviewer.ipython.org/github/uwescience/seaflow-myria/blob/master/ipython_notebooks/myria_TS_plots.ipynb). I use pandas to import the result of my Myria query directly into python, and then matplotlib to produce a figure that shows the mean forward scatter values for beads in T/S space. We use beads in seaflow to act as an internal standard. The position of the beads changes when the sensitivity of the instrument is changed to "see" larger or smaller populations. You can see in this figure how the instrument has been configured differently for different cruises.

![bead_TS_plot](https://raw.githubusercontent.com/sophieclayton/sophieclayton.github.io/master/images/bead_mean_fsc_TS.png)

tags: seaflow, incubator, python
{'fraction_non_alphanumeric': 0.052142279708973324, 'fraction_numerical': 0.0, 'mean_word_length': 4.702764976958525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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}}
{'dir': 'git-commits-cleaned', 'id': '1317578', 'n_tokens_mistral': 663, 'n_tokens_neox': 645, 'n_words': 353}