ScienceFrontend aims to improve the front-end user experience for command-line-interface (CLI) scientific scripts. Scientific CLI scripts often require a number of dependencies and can be difficult for users unfamiliar with CLI. The goal of ScienceFrontend is to provide a simple, uniform front-end experience while also eliminating end-user software dependencies (besides having a web browser). Naturally, ScienceFrontend is open-source.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from numpy import * | |
def draw_contour (data, xlabel, ylabel): | |
plt.xlabel(xlabel) | |
plt.ylabel(ylabel) | |
plt.contourf(data) #use plt.contour() for non-filled contours; plt.contourf() for filled | |
plt.show() | |
def run_test(): #plots a 'checkerboard' in 2D |
NewerOlder