Skip to content
This repository

Ada Lovelace and Grace Murray Hopper images in place of Lena #1599

Merged
merged 3 commits into from over 1 year ago

4 participants

Paul Ivanov Till Stensitzki njsmith Eric Firing
Paul Ivanov
Collaborator

This is an alternative to #1581. I've replaced the Lena image with public domain images of Ada Lovelace and Grace Murray Hopper.

added some commits December 14, 2012
Paul Ivanov adding Ada Lovelace's public domain portrait
Original watercolor portrait by Alfred Edward Chalon, woodcut-style
graphic by Colin Adams for the Ada Initiative, SVG conversion by Fred
the Oyster, and colorization by Kaldari, under CC0 1.0 Universal Public
Domain Dedication, from Wikimedia Commons

http://commons.wikimedia.org/wiki/File:Ada_Lovelace_color.svg
2226d0c
Paul Ivanov adding Grace Murray Hopper's photo
20 January 1984
Source  U.S. Naval Historical Center Online Library Photograph NH
96919-KN (jpg)
Photographer: James S. Davis

License: All information on this site is in the public domain and may be
distributed or copied unless otherwise specified. Use of appropriate
byline/photo/image credits is requested.

This file is a work of a sailor or employee of the U.S. Navy, taken or
made during the course of the person's official duties. As a work of the
U.S. federal government, the image is in the public domain.

http://en.wikipedia.org/wiki/File:Grace_Hopper.jpg
5da2608
Paul Ivanov use Ada Lovelace's and Grace Hopper's images 06010eb
Till Stensitzki

If you want to replace lena you need something with more color and details.

njsmith

@Tillsten: What, seriously? Both images are lovely and colorful, and in any case, how exactly are these demos dependant on "color" and "details"?
http://matplotlib.org/examples/pylab_examples/demo_annotation_box.html
http://matplotlib.org/examples/pylab_examples/image_demo3.html
http://matplotlib.org/examples/pylab_examples/demo_text_path.html

I think this PR is great :+1:

Eric Firing efiring merged commit 615a30a into from January 10, 2013
Eric Firing efiring closed this January 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 3 unique commits by 1 author.

Dec 14, 2012
Paul Ivanov adding Ada Lovelace's public domain portrait
Original watercolor portrait by Alfred Edward Chalon, woodcut-style
graphic by Colin Adams for the Ada Initiative, SVG conversion by Fred
the Oyster, and colorization by Kaldari, under CC0 1.0 Universal Public
Domain Dedication, from Wikimedia Commons

http://commons.wikimedia.org/wiki/File:Ada_Lovelace_color.svg
2226d0c
Paul Ivanov adding Grace Murray Hopper's photo
20 January 1984
Source  U.S. Naval Historical Center Online Library Photograph NH
96919-KN (jpg)
Photographer: James S. Davis

License: All information on this site is in the public domain and may be
distributed or copied unless otherwise specified. Use of appropriate
byline/photo/image credits is requested.

This file is a work of a sailor or employee of the U.S. Navy, taken or
made during the course of the person's official duties. As a work of the
U.S. federal government, the image is in the public domain.

http://en.wikipedia.org/wiki/File:Grace_Hopper.jpg
5da2608
Paul Ivanov use Ada Lovelace's and Grace Hopper's images 06010eb
This page is out of date. Refresh to see the latest.
6  examples/animation/old_animation/draggable_legend.py
@@ -20,10 +20,10 @@
20 20
 
21 21
 from matplotlib.offsetbox import OffsetImage, AnnotationBbox
22 22
 
23  
-fn = get_sample_data("lena.png", asfileobj=False)
24  
-arr_lena = read_png(fn)
  23
+fn = get_sample_data("ada.png", asfileobj=False)
  24
+arr_ada = read_png(fn)
25 25
 
26  
-imagebox = OffsetImage(arr_lena, zoom=0.2)
  26
+imagebox = OffsetImage(arr_ada, zoom=0.2)
27 27
 
28 28
 ab = AnnotationBbox(imagebox, xy,
29 29
                     xybox=(120., -80.),
2  examples/misc/sample_data_demo.py
@@ -5,7 +5,7 @@
5 5
 from __future__ import print_function
6 6
 import matplotlib.cbook as cbook
7 7
 import matplotlib.pyplot as plt
8  
-fname = cbook.get_sample_data('lena.png', asfileobj=False)
  8
+fname = cbook.get_sample_data('ada.png', asfileobj=False)
9 9
 
10 10
 print('fname', fname)
11 11
 im = plt.imread(fname)
2  examples/pylab_examples/demo_annotation_box.py
@@ -69,7 +69,7 @@
69 69
 
70 70
 
71 71
     from matplotlib._png import read_png
72  
-    fn = get_sample_data("lena.png", asfileobj=False)
  72
+    fn = get_sample_data("grace_hopper.png", asfileobj=False)
73 73
     arr_lena = read_png(fn)
74 74
 
75 75
     imagebox = OffsetImage(arr_lena, zoom=0.2)
2  examples/pylab_examples/demo_text_path.py
@@ -63,7 +63,7 @@ def draw(self, renderer=None):
63 63
     ax = plt.subplot(211)
64 64
 
65 65
     from matplotlib._png import read_png
66  
-    fn = get_sample_data("lena.png", asfileobj=False)
  66
+    fn = get_sample_data("grace_hopper.png", asfileobj=False)
67 67
     arr = read_png(fn)
68 68
 
69 69
     text_path = TextPath((0, 0), "!?", size=150)
2  examples/pylab_examples/image_demo3.py
@@ -7,7 +7,7 @@
7 7
 
8 8
 import matplotlib.cbook as cbook
9 9
 
10  
-datafile = cbook.get_sample_data('lena.jpg')
  10
+datafile = cbook.get_sample_data('grace_hopper.jpg')
11 11
 lena = Image.open(datafile)
12 12
 dpi = rcParams['figure.dpi']
13 13
 figsize = lena.size[0]/dpi, lena.size[1]/dpi
BIN  lib/matplotlib/mpl-data/sample_data/ada.png
BIN  lib/matplotlib/mpl-data/sample_data/grace_hopper.jpg
BIN  lib/matplotlib/mpl-data/sample_data/grace_hopper.png
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.