diff --git a/SimpleTester.ipynb b/SimpleTester.ipynb
deleted file mode 100644
index d281e89..0000000
--- a/SimpleTester.ipynb
+++ /dev/null
@@ -1,426 +0,0 @@
-{
- "metadata": {
- "kernelspec": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 2
- },
- "display_name": "IPython (Python 2)",
- "language": "python",
- "name": "python2"
- },
- "name": "",
- "signature": "sha256:1a4e3ec53b6c3e946d0a591ceec6a6bb5268fcad9914d0a6ea463d62968d86b8"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "# Import pydygraphs and numpy\n",
- "\n",
- "import pydygraphs\n",
- "import numpy as np"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [],
- "prompt_number": 1
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "# Single Figure Example\n",
- "fig = pydygraphs.figure(width = 600, height = 400)\n",
- "\n",
- "# Form data for plot\n",
- "x = np.array(range(1000))\n",
- "y = [np.sin(np.random.rand(1000)),-np.sin(np.random.rand(1000))]\n",
- "\n",
- "# Plot figure\n",
- "fig.plot(x,y, color=['navy','magenta'])\n",
- "fig.title(\"Figure 1\")\n",
- "fig.xlabel('Series')\n",
- "fig.ylabel('Value')\n",
- "\n",
- "# Show figure:\n",
- "fig.show()"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- "\n",
- " \n",
- "
\n",
- " |
\n",
- " |
\n",
- "
\n",
- " "
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- },
- {
- "html": [
- "\n",
- "\t \n",
- "\t "
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 3
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "# Subplot example\n",
- "[fig1],[fig2] = pydygraphs.subplot(2,1, title=\"PyDyGraphs Example Subplot\")\n",
- "\n",
- "# Form data for plot 1\n",
- "x = np.array(range(100))\n",
- "y1 = [np.sin(np.array(range(100)) * np.pi / 180.), np.sin(np.array(range(100)) * np.pi / 360)]\n",
- "\n",
- "# Plot figure 1\n",
- "fig1.plot(x,y1)\n",
- "fig1.title(\"Figure 1\")\n",
- "fig1.xlabel('Series')\n",
- "fig1.ylabel('Value')\n",
- "\n",
- "# Form data for plot 2\n",
- "y2 = [np.sin(np.random.rand(100))]\n",
- "\n",
- "# Plot figure 2\n",
- "fig2.plot(x, y2, ylabels=[\"Random Variable\"], color=['orange'], rangeselector=True, showroller=False)\n",
- "fig2.title(\"Figure 2\")\n",
- "fig2.xlabel('Series')\n",
- "fig2.ylabel('Value')\n",
- "\n",
- "# Show plots:\n",
- "fig1.show()\n",
- "fig2.show()"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- "\n",
- " \n",
- " \n",
- " \n",
- " PyDyGraphs Example Subplot\n",
- " | \n",
- "
|
\n",
- " \n",
- " \n",
- " | \n",
- " | \n",
- " \n",
- " |
\n",
- " \n",
- " \n",
- " | \n",
- " | \n",
- " \n",
- " |
"
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- },
- {
- "html": [
- "\n",
- "\t \n",
- "\t "
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- },
- {
- "html": [
- "\n",
- "\t \n",
- "\t "
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 4
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "## Dataframe example\n",
- "import pandas as pd\n",
- "import numpy as np\n",
- "\n",
- "# Form a dataframe\n",
- "df = pd.DataFrame(columns=['a','b','c'])\n",
- "df.a=np.arange(1000)\n",
- "df.b=np.sin(df.a*0.02*np.pi/10) + (np.random.ranf(size=len(df.a))-0.5)*0.25\n",
- "df.c=np.cos(df.a*np.pi/5)\n",
- "\n",
- "# Create a plot directly from a Pandas dataframe\n",
- "fig3 = pydygraphs.figure()\n",
- "xaxis = 'a'\n",
- "fig3.plotDataFrame(df,xaxis)\n",
- "fig3.xlabel('a');fig3.ylabel('Units of Awesome');fig3.title('Dataframe Example')\n",
- "fig3.show()"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- "\n",
- " \n",
- " \n",
- " |
\n",
- " |
\n",
- "
\n",
- " "
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- },
- {
- "html": [
- "\n",
- "\t \n",
- "\t "
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 10
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [],
- "language": "python",
- "metadata": {},
- "outputs": []
- }
- ],
- "metadata": {}
- }
- ]
-}
\ No newline at end of file
diff --git a/examples/PyDyGraphTester.ipynb b/examples/PyDyGraphTester.ipynb
index bde6f25..7efb904 100644
--- a/examples/PyDyGraphTester.ipynb
+++ b/examples/PyDyGraphTester.ipynb
@@ -1,7 +1,16 @@
{
"metadata": {
+ "kernelspec": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "display_name": "IPython (Python 2)",
+ "language": "python",
+ "name": "python2"
+ },
"name": "",
- "signature": "sha256:37caa5f06b7f4da31df438b4f2c0f071c5f964d5b7af5d10b0ebc807bc3f3f88"
+ "signature": "sha256:1b51651295c302303f5424b95ea14e53f5a08ac2f302350cba87adc0cfc67799"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -85,16 +94,36 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "print pydygraphs.__PYDYGRAPH__DYGRAPHS_LIB_STRING__"
+ "## Dataframe example\n",
+ "import pandas as pd\n",
+ "import numpy as np\n",
+ "\n",
+ "# Form a dataframe\n",
+ "df = pd.DataFrame(columns=['a','b','c'])\n",
+ "df.a=np.arange(1000)\n",
+ "df.b=np.sin(df.a*0.02*np.pi/10) + (np.random.ranf(size=len(df.a))-0.5)*0.25\n",
+ "df.c=np.cos(df.a*np.pi/5)\n",
+ "\n",
+ "# Create a plot directly from a Pandas dataframe\n",
+ "fig3 = pydygraphs.figure()\n",
+ "xaxis = 'a'\n",
+ "fig3.plotDataFrame(df,xaxis)\n",
+ "fig3.xlabel('a');fig3.ylabel('Units of Awesome');fig3.title('Dataframe Example')\n",
+ "fig3.show()"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
- "cell_type": "raw",
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "print pydygraphs.__PYDYGRAPH__DYGRAPHS_LIB_STRING__"
+ ],
+ "language": "python",
"metadata": {},
- "source": []
+ "outputs": []
}
],
"metadata": {}