From 0a5314a5128f2a84a56b894677aea1a9122c4f7a Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Sat, 11 Jul 2015 10:48:07 -0500 Subject: [PATCH 1/2] In coutourf_log.py, changed `P.` to `plt.` Originally had: `from matplotlib import pyplot as P`. Changed to: `import matplotlib.pyplot as plt`. In later lines, changed all `P.function()`s to `plt.function()`s. --- examples/pylab_examples/contourf_log.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/pylab_examples/contourf_log.py b/examples/pylab_examples/contourf_log.py index ceea635c3e95..c64b0b708eb3 100644 --- a/examples/pylab_examples/contourf_log.py +++ b/examples/pylab_examples/contourf_log.py @@ -2,7 +2,7 @@ Demonstrate use of a log color scale in contourf ''' -from matplotlib import pyplot as P +import matplotlib.pyplot as plt import numpy as np from numpy import ma from matplotlib import colors, ticker, cm @@ -30,7 +30,7 @@ # Automatic selection of levels works; setting the # log locator tells contourf to use a log scale: -cs = P.contourf(X, Y, z, locator=ticker.LogLocator(), cmap=cm.PuBu_r) +cs = plt.contourf(X, Y, z, locator=ticker.LogLocator(), cmap=cm.PuBu_r) # Alternatively, you can manually set the levels # and the norm: @@ -41,6 +41,6 @@ # The 'extend' kwarg does not work yet with a log scale. -cbar = P.colorbar() +cbar = plt.colorbar() -P.show() +plt.show() From 0b64e1362ca64201dfc2c1aaa488b7deedf30ba3 Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Sat, 11 Jul 2015 11:02:09 -0500 Subject: [PATCH 2/2] Moved countourf_log.py from pylab_examples to images_countours_and_fiedls --- .../contourf_log.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/{pylab_examples => images_contours_and_fields}/contourf_log.py (100%) diff --git a/examples/pylab_examples/contourf_log.py b/examples/images_contours_and_fields/contourf_log.py similarity index 100% rename from examples/pylab_examples/contourf_log.py rename to examples/images_contours_and_fields/contourf_log.py