{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Line" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import hvplot.xarray # noqa\n", "import xarray as xr" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`line` is useful when data is continuous and has a continuous axis." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "ds = xr.tutorial.open_dataset('air_temperature').load()\n", "air = ds.air\n", "air1d = air.sel(lon=285.,lat=40.)\n", "air1d" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "air1d.hvplot.line()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Customize the plot by changing the title and line color." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "air1d.hvplot.line(title=\"Air Temperature over time at lat=40,lon285\",line_color='gray')" ] } ], "metadata": { "language_info": { "name": "python", "pygments_lexer": "ipython3" } }, "nbformat": 4, "nbformat_minor": 4 }