{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# DEMO Notebook - making plots without a viewer connected\n", "You can also use the imexam plotting libraray without loading a viewer.\n", "\n", "This and other demo notebooks can be found on the SpaceTelescope github site: https://github.com/spacetelescope/imexam/" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from imexam.imexamine import Imexamine\n", "import matplotlib.pyplot as plt\n", "import numpy as np" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "plots=Imexamine() #initalize the object to get access to the plotting functions" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#make a random piece of data\n", "data=np.random.rand(100,100)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "plt.imshow(data)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "