Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
":pyplot"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"require 'charty'\n",
"Charty::Backends::Pyplot.activate_iruby_integration\n",
"Charty.use_backend(:pyplot)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{:x=>[\"a\", \"b\", \"c\", \"d\", \"e\"], :y=>[10, 20, 30, 25, 15]}"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data = {\n",
" x: [\"a\", \"b\", \"c\", \"d\", \"e\"],\n",
" y: [10, 20, 30, 25, 15]\n",
"}"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAAGdCAYAAACyzRGfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAZOUlEQVR4nO3df3RXdf3A8dcAGRjbaOPHthiKYqghnBMp7kieKSjSieMP7JtWR/SgpGdYsPw1E3WaZx4tRQvx9Ev05LLsm5p2wpRiHhMw8HBULAKyAwbMQtlgxiC37x+d9m35c+Oz94dtj8c59xw+997d+6obh2d39/P55LS1tbUFAEAi/bI9AADQt4gPACAp8QEAJCU+AICkxAcAkJT4AACSEh8AQFLiAwBIakC2B/hvra2tsW3btsjLy4ucnJxsjwMAfAhtbW2xe/fuKC0tjX793v/exkEXH9u2bYuysrJsjwEAdMHWrVtj1KhR77vPQRcfeXl5EfGv4fPz87M8DQDwYTQ1NUVZWVn7v+Pv56CLj3//qiU/P198AEAP82EemfDAKQCQlPgAAJISHwBAUuIDAEhKfAAASYkPACAp8QEAJCU+AICkxAcAkJT4AACS6lR8LFmyJCZMmND+0efl5eXxq1/9qn373r17o7KyMoqKimLIkCExa9asaGhoyPjQAEDP1an4GDVqVNx6662xdu3aWLNmTZx66qlx5plnxvr16yMiYsGCBfH444/Hww8/HPX19bFt27Y455xzumVwAKBnymlra2s7kAMUFhbG7bffHueee24MHz486urq4txzz42IiD/+8Y9xzDHHxMqVK+PEE0/8UMdramqKgoKCaGxs9MVyANBDdObf7y4/8/H222/HQw89FM3NzVFeXh5r166N/fv3x7Rp09r3Ofroo2P06NGxcuXK9zxOS0tLNDU1dVgAgN5rQGd/4KWXXory8vLYu3dvDBkyJB555JE49thjY926dTFw4MAYOnRoh/1HjhwZO3bseM/j1dbWRk1NTecnB97T//zksmyP0GP99PNLsj0C9HqdvvMxbty4WLduXaxevTouu+yymD17drzyyitdHqC6ujoaGxvbl61bt3b5WADAwa/Tdz4GDhwYY8eOjYiISZMmxe9///u466674vOf/3zs27cvdu3a1eHuR0NDQxQXF7/n8XJzcyM3N7cLowMAPdEBf85Ha2trtLS0xKRJk+KQQw6J5cuXt2/bsGFDbNmyJcrLyw/0NABAL9GpOx/V1dUxY8aMGD16dOzevTvq6upixYoV8eSTT0ZBQUHMmTMnqqqqorCwMPLz8+Pyyy+P8vLyD/1OFwCg9+tUfLz++utxwQUXxPbt26OgoCAmTJgQTz75ZJx22mkREXHnnXdGv379YtasWdHS0hLTp0+Pe+65p1sGBwB6pgP+nI9M8zkfcOC826XrvNsFuibJ53wAAHSF+AAAkhIfAEBS4gMASEp8AABJiQ8AICnxAQAkJT4AgKTEBwCQlPgAAJISHwBAUuIDAEhKfAAASYkPACAp8QEAJCU+AICkxAcAkJT4AACSEh8AQFLiAwBISnwAAEmJDwAgKfEBACQlPgCApMQHAJCU+AAAkhIfAEBS4gMASEp8AABJiQ8AICnxAQAkJT4AgKTEBwCQlPgAAJISHwBAUuIDAEhKfAAASYkPACAp8QEAJCU+AICkxAcA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UXx3e9+N0pKSmLLli1xzTXXZHusPmvLli1RVVUVX/7yl+OFF16Ib3/7257sz4JBgwbF1VdfHVdddVUMHDgwTjrppPjb3/4W69evjzlz5mR7vD5lyJAhMWfOnLjyyiujqKgoRowYEV//+tejXz//XzS1vLy8uOKKK2LBggXR2toaU6ZMicbGxvjd734X+fn5MXv27GyP2G3ER4b169cvHnroofjKV74S48ePj3HjxsXdd98dFRUV2R6tT7rgggviH//4R5xwwgnRv3//+OpXvxpz587N9lh90sKFC2PAgAFx/fXXx7Zt26KkpCQuvfTSbI/VJ91+++2xZ8+emDlzZuTl5cXXvva1aGxszPZYfdLNN98cw4cPj9ra2vjzn/8cQ4cOjU9+8pNx7bXXZnu0buXdLgBAUu6zAQBJiQ8AICnxAQAkJT4AgKTEBwCQlPgAAJISHwBAUuIDAEhKfAAASYkPACAp8QEAJCU+AICk/g8ZGUXgEltliAAAAABJRU5ErkJggg==",
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"fig = Charty.bar_plot(:x, :y, data: data)\n",
"fig.render"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAAGdCAYAAACyzRGfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAZOUlEQVR4nO3df3RXdf3A8dcAGRjbaOPHthiKYqghnBMp7kieKSjSieMP7JtWR/SgpGdYsPw1E3WaZx4tRQvx9Ev05LLsm5p2wpRiHhMw8HBULAKyAwbMQtlgxiC37x+d9m35c+Oz94dtj8c59xw+997d+6obh2d39/P55LS1tbUFAEAi/bI9AADQt4gPACAp8QEAJCU+AICkxAcAkJT4AACSEh8AQFLiAwBIakC2B/hvra2tsW3btsjLy4ucnJxsjwMAfAhtbW2xe/fuKC0tjX793v/exkEXH9u2bYuysrJsjwEAdMHWrVtj1KhR77vPQRcfeXl5EfGv4fPz87M8DQDwYTQ1NUVZWVn7v+Pv56CLj3//qiU/P198AEAP82EemfDAKQCQlPgAAJISHwBAUuIDAEhKfAAASYkPACAp8QEAJCU+AICkxAcAkJT4AACS6lR8LFmyJCZMmND+0efl5eXxq1/9qn373r17o7KyMoqKimLIkCExa9asaGhoyPjQAEDP1an4GDVqVNx6662xdu3aWLNmTZx66qlx5plnxvr16yMiYsGCBfH444/Hww8/HPX19bFt27Y455xzumVwAKBnymlra2s7kAMUFhbG7bffHueee24MHz486urq4txzz42IiD/+8Y9xzDHHxMqVK+PEE0/8UMdramqKgoKCaGxs9MVyANBDdObf7y4/8/H222/HQw89FM3NzVFeXh5r166N/fv3x7Rp09r3Ofroo2P06NGxcuXK9zxOS0tLNDU1dVgAgN5rQGd/4KWXXory8vLYu3dvDBkyJB555JE49thjY926dTFw4MAYOnRoh/1HjhwZO3bseM/j1dbWRk1NTecnB97T//zksmyP0GP99PNLsj0C9HqdvvMxbty4WLduXaxevTouu+yymD17drzyyitdHqC6ujoaGxvbl61bt3b5WADAwa/Tdz4GDhwYY8eOjYiISZMmxe9///u466674vOf/3zs27cvdu3a1eHuR0NDQxQXF7/n8XJzcyM3N7cLowMAPdEBf85Ha2trtLS0xKRJk+KQQw6J5cuXt2/bsGFDbNmyJcrLyw/0NABAL9GpOx/V1dUxY8aMGD16dOzevTvq6upixYoV8eSTT0ZBQUHMmTMnqqqqorCwMPLz8+Pyyy+P8vLyD/1OFwCg9+tUfLz++utxwQUXxPbt26OgoCAmTJgQTz75ZJx22mkREXHnnXdGv379YtasWdHS0hLTp0+Pe+65p1sGBwB6pgP+nI9M8zkfcOC826XrvNsFuibJ53wAAHSF+AAAkhIfAEBS4gMASEp8AABJiQ8AICnxAQAkJT4AgKTEBwCQlPgAAJISHwBAUuIDAEhKfAA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pGTc+ciwnTt3xoYNG+K6666LqVOnxjHHHBNvvvlmtsfqs1avXt3h9apVq+Koo46K/v37Z2mivumoo46KwYMHx/Lly7M9Sp935JFHxiGHHNLh78abb74Zf/rTn7I4Vd907LHHRm5ubmzZsiXGjh3bYSkrK8v2eN3KnY8M++hHPxpFRUXx3e9+N0pKSmLLli1xzTXXZHusPmvLli1RVVUVX/7yl+OFF16Ib3/7257sz4JBgwbF1VdfHVdddVUMHDgwTjrppPjb3/4W69evjzlz5mR7vD5lyJAhMWfOnLjyyiujqKgoRowYEV//+tejXz//XzS1vLy8uOKKK2LBggXR2toaU6ZMicbGxvjd734X+fn5MXv27GyP2G3ER4b169cvHnroofjKV74S48ePj3HjxsXdd98dFRUV2R6tT7rgggviH//4R5xwwgnRv3//+OpXvxpz587N9lh90sKFC2PAgAFx/fXXx7Zt26KkpCQuvfTSbI/VJ91+++2xZ8+emDlzZuTl5cXXvva1aGxszPZYfdLNN98cw4cPj9ra2vjzn/8cQ4cOjU9+8pNx7bXXZnu0buXdLgBAUu6zAQBJiQ8AICnxAQAkJT4AgKTEBwCQlPgAAJISHwBAUuIDAEhKfAAASYkPACAp8QEAJCU+AICk/g8ZGUXgEltliAAAAABJRU5ErkJggg==",
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"fig = Charty.bar_plot do |pl|\n",
" pl.data = data\n",
" pl.x = :x\n",
" pl.y = :y\n",
"end\n",
"fig.render"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjIAAAGwCAYAAACzXI8XAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAeW0lEQVR4nO3de5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IzJ49O0kyYcKELttvv/32nHPOOUmSb37zm+nRo0cmT56ctra2TJw4MTfffPMOnhQAqEYVDZmOjo533adPnz656aabctNNN+2AiQCAklTNu5YAAN4rIQMAFEvIAADFEjIAQLGEDABQLCEDABRLyAAAxRIyAECxhAwAUCwhAwAUS8gAAMUSMgBAsYQMAFAsIQMAFEvIAADFEjIAQLGEDABQLCEDABRLyAAAxRIyAECxhAwAUCwhAwAUS8gAAMUSMgBAsYQMAFAsIQMAFEvIAADFEjIAQLGEDABQLCEDABRLyAAAxRIyAECxhAwAUCwhAwAU6z2HzNtvv51HHnkk69at2x7zAABstfccMj179syJJ56Y119/fXvMAwCw1br10tKYMWPy29/+dlvPAgDwnnQrZK6++upcdNFFuf/++7N69eq0tLR0WQAAdoRe3XnSySefnCQ59dRTU1NT07m9o6MjNTU1efvtt7fNdAAA76BbIfPwww9v6zkAAN6zboXMn/3Zn23rOQAA3rNuhczvvPHGG1m5cmU2btzYZfvYsWPf11AAAFujWyHzyiuv5Nxzz80DDzyw2cfdIwMA7AjdetfShRdemHXr1mXx4sXp27dv5s2blzvvvDP7779/fvSjH23rGQEANqtbV2R+/vOfZ+7cuTn00EPTo0eP7LXXXjnhhBMyYMCANDU15c///M+39ZwAAH+gW1dkWltbM3To0CTJHnvskVdeeSVJcsghh+TJJ5/cdtMBALyDboXMAQcckGXLliVJxo0bl7/7u7/Liy++mFtuuSXDhw/fpgMCAGxJt15a+sIXvpDVq1cnSa688sqcdNJJufvuu9O7d+/ceeed23RAAIAt6dYVmU996lM555xzkiQf+tCH8l//9V954okn8sILL+TjH//4Vh/nkUceySmnnJIRI0akpqYm9913X5fHzznnnNTU1HRZTjrppO6MDADshLoVMkly2223ZcyYMenTp0/22GOPnHXWWX8QIu+mtbU148aNy0033bTFfU466aSsXr26c/mHf/iH7o4MAOxkuvXS0hVXXJHrr78+06ZNS2NjY5Jk0aJFmT59elauXJmrrrpqq44zadKkTJo06R33qa2tTUNDQ3fGBAB2ct0KmdmzZ+f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++OG54YYb0tramnPPPbfSowEAFdbzq1/96lcrPcQ7GTNmTAYOHJivf/3r+Zu/+Zskyfe+970ccMABFZ5sx+vZs2cmTJiQXr2qvj93es5F9XAuqodzUT12pXNR09Hxbu9rAgCoTlV9jwwAwDsRMgBAsYQMAFAsIQNbacKECbnwwgsrPQZUPb9X2JGEDABQLCEDABRLyFS5efPm5eijj87AgQMzaNCg/MVf/EVWrFhR6bF2WW+99VYuuOCC1NXVZfDgwbn88svf/ZtZ2S7a29tz7bXXZr/99kttbW323HPPfP3rX6/0WLuc1tbWnHXWWenXr1+GDx+eb3zjG5UeaZfW3t6epqamjB49On379s24cePyT//0T5Uea7sSMlWutbU1M2bMyBNPPJH58+enR48e+chHPpL29vZKj7ZLuvPOO9OrV6/88pe/zI033pjrr78+3/3udys91i5p5syZueaaa3L55ZfnmWeeyZw5czJs2LBKj7XLufjii7Nw4cLMnTs3P/3pT7NgwYI8+eSTlR5rl9XU1JS77rort9xyS55++ulMnz49n/rUp7Jw4cJKj7bd+EC8wvz3f/93hgwZkl/96lcZM2ZMpcfZpUyYMCEvv/xynn766c5vUr/00kvzox/9KM8880yFp9u1rF+/PkOGDMm3v/3tfOYzn6n0OLusDRs2ZNCgQbn77rvzsY99LEny2muvZeTIkTn//PNzww03VHjCXUtbW1vq6+vz0EMPdfk+ws985jN54403MmfOnApOt/24IlPlnnvuuZx55pnZZ599MmDAgOy9995JkpUrV1Z2sF3UkUce2RkxSdLY2Jjnnnsub7/9dgWn2vU8++yzaWtry3HHHVfpUXZpK1asyMaNG3PEEUd0bquvr98lv0KmGixfvjxvvPFGTjjhhPTr169zueuuu3bqWxJ2/i9hKNwpp5ySvfbaK7feemtGjBiR9vb2jBkzJhs3bqz0aFAxffv2rfQIUHU2bNiQJPmXf/mXfPCDH+zyWG1tbSVG2iFckalir776apYtW5bLLrssxx13XA466KC8/vrrlR5rl7Z48eIu64899lj233//9OzZs0IT7Zr233//9O3bN/Pnz6/0KLu0fffdN7vttluX3xevv/56/uM//qOCU+26Dj744NTW1mblypXZb7/9uiyjRo2q9HjbjSsyVWyPPfbIoEGD8p3vfCfDhw/PypUrc+mll1Z6rF3aypUrM2PGjPzVX/1Vnnzyyfzt3/6td2lUQJ8+ffKlL30pl1xySXr37p2jjjoqr7zySp5++ulMmTKl0uPtMvr165cpU6bk4osvzqBBgzJ06NB85StfSY8e/h+5Evr375+LLroo06dPT3t7e44++ug0Nzfn0UcfzYABA3L22WdXesTtQshUsR49euSee+7J5z//+YwZMyYHHHBAvvWtb2XChAmVHm2XddZZZ+V//ud/cvjhh6dnz575whe+kPPPP7/SY+2SLr/88vTq1StXXHFFXnrppQwfPjyf/exnKz3WLue6667Lhg0bcsopp6R///754he/mObm5kqPtcv62te+liFDhqSpqSm//e1vM3DgwHzoQx/Kl7/85UqPtt141xIAUCzX/wCAYgkZAKBYQgYAKJaQAQCKJWQAgGIJGQCgWEIGACiWkAEAiiVkgKrU0dGR888/P/X19ampqcnSpUsrPRJQhXyyL1CVHnjggZx22mlZsGBB9tlnnwwePDi9evlWFaArfyoAVWnFihUZPnx4/uRP/qTSowBVzEtLQNU555xzMm3atKxcuTI1NTXZe++909bWls9//vMZOnRo+vTpk6OPPjqPP/54l+ctXLgwhx9+eGprazN8+PBceumleeuttyr0qwB2BCEDVJ0bb7wxV111VUaOHJnVq1fn8ccfzyWXXJIf/vCHufPOO/Pkk09mv/32y8SJE/Paa68lSV588cWcfPLJOeyww/Lv//7vmT17dm677bZcffXVFf7VANuTkAGqTl1dXfr375+ePXumoaEhu+++e2bPnp3rrrsukyZNysEHH5xbb701ffv2zW233ZYkufnmmzNq1Kh8+9vfzoEHHpjTTz89s2bNyje+8Y20t7dX+FcEbC9CBqh6K1asyKZNm3LUUUd1btttt91y+OGH59lnn02SPPvss2lsbExNTU3nPkcddVQ2bNiQF154YYfPDOwYQgYAKJaQAarevvvum969e+fRRx/t3LZp06Y8/vjjOfjgg5MkBx10UBYtWpTf/0SJRx99NP3798/IkSN3+MzAjiFkgKr3gQ98IJ/73Ody8cUXZ968eXnmmWdy3nnn5Y033siUKVOSJH/913+dVatWZdq0afnNb36TuXPn5sorr8yMGTPSo4c/6mBn5XNkgCJcc801aW9vz6c//emsX78+hx56aB588MHsscceSZIPfvCD+clPfpKLL74448aNS319faZMmZLLLruswpMD25NP9gUAiuV6KwBQLCEDABRLyAAAxRIyAECxhAwAUCwhAwAUS8gAAMUSMgBAsYQMAFAsIQMAFEvIAADF+r93GAkWKIVBlAAAAABJRU5ErkJggg==",
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"require 'daru'\n",
"df = Daru::DataFrame.new({\n",
" foo: [\"a\", \"b\", \"c\", \"d\", \"e\"],\n",
" bar: [10, 20, 30, 25, 15]\n",
"})\n",
"fig = Charty.bar_plot(:foo, :bar, data: df)\n",
"fig.render"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Ruby 2.6.2",
"language": "ruby",
"name": "ruby"
},
"language_info": {
"file_extension": ".rb",
"mimetype": "application/x-ruby",
"name": "ruby",
"version": "2.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment