{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n" ], "text/plain": [ "HTML{String}(\" \\n\")" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ " 1.468558 seconds (3.18 M allocations: 162.595 MiB, 2.30% gc time)\n" ] } ], "source": [ "@time using SimplePlots" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 1.411413 seconds (3.53 M allocations: 172.899 MiB, 3.28% gc time)\n" ] }, { "data": { "text/html": [ "
\n", " \n" ], "text/plain": [ "HTML{String}(\" \\n \\n\")" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "function foo()\n", " scatter(\n", " rand(10), label=\"Scatter\", color=4,\n", " xlabel=\"x\", markersize=6\n", " )\n", "\n", " ylabel!(\"y\")\n", "\n", " cur_x = 10 .^ (0:0.1:1)\n", " cur_y = rand(0.25:0.05:0.75, length(cur_x))\n", "\n", " plot!(cur_x, cur_y, label=\"Plot\", color=3, title=\"Example\")\n", "\n", " hline!([1,3] ./ 4, color=2)\n", " vline!(5, linewidth=4, alpha=0.4, linestyle=:dash)\n", "\n", " plot!(xlim=(1,15))\n", "\n", " ylims!(0,1)\n", " xscale!(:log10)\n", "end\n", "\n", "@time foo()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "