Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9692c31

Browse filesBrowse files
committed
MEP12 of images, contourf' examples
1 parent 5293fcb commit 9692c31
Copy full SHA for 9692c31
Expand file treeCollapse file tree

9 files changed

+31
-66
lines changed

‎examples/images_contours_and_fields/contourf_log.py

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/contourf_log.py
+5-1Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/image_demo.py
+4Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/image_demo_clip_path.py
+4Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/interpolation_methods.py
+4-1Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/interpolation_none_vs_nearest.py
-62Lines changed: 0 additions & 62 deletions
This file was deleted.

‎examples/images_contours_and_fields/pcolormesh_levels.py

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/pcolormesh_levels.py
+4Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/streamplot_demo_features.py
+4Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/streamplot_demo_masking.py
+3-1Lines 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

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/streamplot_demo_start_points.py
+3-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.