8000 MEP12 of images, contourf' examples · matplotlib/matplotlib@9692c31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9692c31

Browse files
committed
MEP12 of images, contourf' examples
1 parent 5293fcb commit 9692c31

9 files changed

+31
-66
lines changed

examples/images_contours_and_fields/contourf_log.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
'''
2+
============================
3+
Contourf and log color scale
4+
============================
5+
26
Demonstrate use of a log color scale in contourf
37
'''
48

59
import matplotlib.pyplot as plt
610
import numpy as np
711
from numpy import ma
8-
from matplotlib import colors, ticker, cm
12+
from matplotlib import ticker, cm
913
from matplotlib.mlab import bivariate_normal
1014

1115
N = 100

examples/images_contours_and_fields/image_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
===================
3+
Displaying an image
4+
===================
5+
26
Simple demo of the imshow function.
37
"""
48
import matplotlib.pyplot as plt

examples/images_contours_and_fields/image_demo_clip_path.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
============================
3+
Clipping images with patches
4+
============================
5+
26
Demo of image that's been clipped by a circular patch.
37
"""
48
import matplotlib.pyplot as plt

examples/images_contours_and_fields/interpolation_methods.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
'''
2-
Show all different interpolation methods for imshow
2+
=================================
3+
Interpolations for imshow/matshow
4+
=================================
5+
36
'''
47

58
import matplotlib.pyplot as plt

examples/images_contours_and_fields/interpolation_none_vs_nearest.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

examples/images_contours_and_fields/pcolormesh_levels.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==========
3+
pcolormesh
4+
==========
5+
26
Shows how to combine Normalization and Colormap instances to draw
37
"levels" in pcolor, pcolormesh and imshow type plots in a similar
48
way to the levels keyword argument to contour/contourf.

examples/images_contours_and_fields/streamplot_demo_features.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==========
3+
Streamplot
4+
==========
5+
26
Demo of the `streamplot` function.
37
48
A streamplot, or streamline plot, is used to display 2D vector fields. This

examples/images_contours_and_fields/streamplot_demo_masking.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
2-
Demo of the streamplot function with masking.
2+
================================
3+
Streamplot function with masking
4+
================================
35
46
This example shows how streamlines created by the streamplot function skips
57
masked regions and NaN values.

examples/images_contours_and_fields/streamplot_demo_start_points.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
2-
Demo of the streamplot function with starting points.
2+
========================================
3+
Streamplot function with starting points
4+
========================================
35
46
This example shows how to fix the streamlines that are plotted, by passing
57
an array of seed points to the `start_points` keyword argument.

0 commit comments

Comments
 (0)
0