Skip to content

Instantly share code, notes, and snippets.

@chriddyp
Created January 16, 2014 17:56
Show Gist options
  • Save chriddyp/8459933 to your computer and use it in GitHub Desktop.
Save chriddyp/8459933 to your computer and use it in GitHub Desktop.
categorical y axis
{
"metadata": {
"name": "categorical y axis"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": "import plotly\np = plotly.plotly('IPython.Demo', '1fw3zw2o13')",
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": "p.iplot([{'x': [1, 2, 3, 4], 'y': ['text1', 'text2', 'text3', 'text2']}], filename='catagorical y axis')",
"language": "python",
"metadata": {},
"outputs": [
{
"html": "<iframe height=\"500\" id=\"igraph\" scrolling=\"no\" seamless=\"seamless\" src=\"https://plot.ly/~IPython.Demo/509/600/450\" width=\"650\"></iframe>",
"metadata": {},
"output_type": "pyout",
"prompt_number": 4,
"text": "<IPython.core.display.HTML at 0x104b644d0>"
}
],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": "",
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment