This file contains hidden or 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 | |
import matplotlib.lines as mlines | |
import numpy as np | |
x, y = np.meshgrid(np.arange(10),np.arange(10)) | |
z = np.sqrt(x**2 + y**2) | |
fig, ax = plt.subplots() | |
cs = ax.contourf(x,y,z,levels=[2,3,4,6]) |
This file contains hidden or 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 warnings | |
import matplotlib.pyplot as plt | |
import pytest | |
def my_plots(): | |
plt.figure() | |
plt.plot([0, 1]) | |
plt.show() |
This file contains hidden or 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
from __future__ import print_function | |
import numpy as np | |
def coord_diffs(coord1, coord2): | |
""" | |
Print which aspects of two coords do not match. | |
""" | |
for attr in ['standard_name', 'long_name', 'var_name', 'units', |