Skip to content

Commit

Permalink
MEP12 of images, contourf' examples
Browse files Browse the repository at this point in the history
  • Loading branch information
NelleV committed Jan 26, 2017
1 parent 5293fcb commit 9692c31
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 66 deletions.
6 changes: 5 additions & 1 deletion examples/images_contours_and_fields/contourf_log.py
@@ -1,11 +1,15 @@
'''
============================
Contourf and log color scale
============================
Demonstrate use of a log color scale in contourf
'''

import matplotlib.pyplot as plt
import numpy as np
from numpy import ma
from matplotlib import colors, ticker, cm
from matplotlib import ticker, cm
from matplotlib.mlab import bivariate_normal

N = 100
Expand Down
4 changes: 4 additions & 0 deletions examples/images_contours_and_fields/image_demo.py
@@ -1,4 +1,8 @@
"""
===================
Displaying an image
===================
Simple demo of the imshow function.
"""
import matplotlib.pyplot as plt
Expand Down
4 changes: 4 additions & 0 deletions examples/images_contours_and_fields/image_demo_clip_path.py
@@ -1,4 +1,8 @@
"""
============================
Clipping images with patches
============================
Demo of image that's been clipped by a circular patch.
"""
import matplotlib.pyplot as plt
Expand Down
5 changes: 4 additions & 1 deletion examples/images_contours_and_fields/interpolation_methods.py
@@ -1,5 +1,8 @@
'''
Show all different interpolation methods for imshow
=================================
Interpolations for imshow/matshow
=================================
'''

import matplotlib.pyplot as plt
Expand Down

This file was deleted.

4 changes: 4 additions & 0 deletions examples/images_contours_and_fields/pcolormesh_levels.py
@@ -1,4 +1,8 @@
"""
==========
pcolormesh
==========
Shows how to combine Normalization and Colormap instances to draw
"levels" in pcolor, pcolormesh and imshow type plots in a similar
way to the levels keyword argument to contour/contourf.
Expand Down
@@ -1,4 +1,8 @@
"""
==========
Streamplot
==========
Demo of the `streamplot` function.
A streamplot, or streamline plot, is used to display 2D vector fields. This
Expand Down
@@ -1,5 +1,7 @@
"""
Demo of the streamplot function with masking.
================================
Streamplot function with masking
================================
This example shows how streamlines created by the streamplot function skips
masked regions and NaN values.
Expand Down
@@ -1,5 +1,7 @@
"""
Demo of the streamplot function with starting points.
========================================
Streamplot function with starting points
========================================
This example shows how to fix the streamlines that are plotted, by passing
an array of seed points to the `start_points` keyword argument.
Expand Down

0 comments on commit 9692c31

Please sign in to comment.