{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Example: Probe Peaks" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Load the files" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from opal import load_dataset, filetype\n", "\n", "dsets = load_dataset('./peak/', ftype=filetype.PEAK)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Set the plotting style" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from opal.visualization.styles import load_style\n", "\n", "load_style('jupyter')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Do some plotting ..." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "plt = dsets[0].plot_peak_difference(dsets[1], grid=True)\n", " \n", "plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from opal import load_dataset, filetype\n", "\n", "dsets = load_dataset('./peak/', ftype=filetype.HIST)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "plt = dsets[0].plot_probe_histogram(grid=True, scale=True)\n", "\n", "dsets[1].plot_probe_histogram( grid=True, scale=True)\n", "\n", "plt.show()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.5.2" } }, "nbformat": 4, "nbformat_minor": 2 }