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 numpy as np | |
| from matplotlib import pyplot as plt | |
| fig = plt.figure(figsize=(5, 4)) | |
| # Generate some data | |
| mu, sigma = 1e7, 1e6 | |
| s = np.random.normal(mu, sigma, 10000) | |
| # Plot it | |
| plt.hist(s, 30, histtype='step') | |
| # Format it |
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
| # New matplotlib colormaps by Nathaniel J. Smith, Stefan van der Walt, | |
| # and (in the case of viridis) Eric Firing. | |
| # | |
| # This file and the colormaps in it are released under the CC0 license / | |
| # public domain dedication. We would appreciate credit if you use or | |
| # redistribute these colormaps, but do not impose any legal restrictions. | |
| # | |
| # To the extent possible under law, the persons who associated CC0 with | |
| # mpl-colormaps have waived all copyright and related or neighboring rights | |
| # to mpl-colormaps. |