{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# VCS Text Objects \n", "\n", "Text objects allow you to insert text anywhere on a plot.\n", "\n", "To [download this Jupyter Notebook](VCS_Text_Objects.ipynb), right click on the link and choose \"Download Linked File As...\" or \"Save Link as...\". Remember where you saved the downloaded file, which should have an .ipynb extension. (You'll need to launch the Jupyter notebook or JupyterLab instance from the location where you store the notebook file.)\n", "\n", "For this particular notebook, you will also need to download the sample font file, **\"FFF_Tusj.ttf\"**, from the GitHub repository for this notebook: https://github.com/CDAT/Jupyter-notebooks/tree/master/vcs/VCS_Text_Objects. Save the font file in the same location as this notebook.\n", "\n", "One additional file, **\"clt.nc\"** is needed for the notebook. Follow the instructions in the [VCS Basics](https://cdat.llnl.gov/Jupyter-notebooks/vcs/VCS_Basics/VCS_Basics.html) or [VCS Principles](https://cdat.llnl.gov/Jupyter-notebooks/vcs/VCS_Principles/VCS_Principles.html) notebooks to download the \"clt.nc\" sample data file. Alternatively, copy the following lines of code into a new cell early on in this notebook and run the cell which will download the files to a \"sample data\" directory within the conda environment you are using to run this notebook.\n", "\n", "```\n", "import vcs\n", "import cdms2\n", "import os\n", "vcs.download_sample_data_files()\n", "```" ] }, { "cell_type": "markdown", "metadata": { "toc": true }, "source": [ "