File:Arrow diagram of a function (non-injective and non-surjective).svg
From Department of Mathematics at UTSA
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 300 × 314 pixels. Other resolutions: 229 × 240 pixels | 459 × 480 pixels | 573 × 600 pixels | 734 × 768 pixels | 978 × 1,024 pixels.
Original file (SVG file, nominally 300 × 314 pixels, file size: 20 KB)
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
DescriptionArrow diagram of a function (non-injective and non-surjective).svg |
Português: Diagrama de uma função f de um conjunto A sobre um conjunto B.
English: Arrow diagram of a function f from a set A on a set B. |
Date | |
Source | Own work |
Author | Picknick |
Código fonte
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Este trabalho está licenciado sob a Licença Creative Commons
Atribuição-CompartilhaIgual 4.0 Internacional. Para ver uma cópia desta licença,
visite https://creativecommons.org/licenses/by-sa/4.0/ ou envie uma carta
para Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
'''
import matplotlib.pylab as plt
from matplotlib.patches import Ellipse
from matplotlib.patches import Circle
fig = plt.figure(figsize = (4,4), dpi=100, frameon=False)
ax = plt.subplot(1,1,1)
plt.axis('off')
#x - axis
ax.set_xlim((0,10))
#y- axis
ax.set_ylim((1,9))
#set A
eA = Ellipse((1.75,4.5),3,7,fill=False)
ax.add_artist(eA)
plt.text(1.45,8.25,'$A$',fontsize=14)
c = Circle((1.9,7),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((1.4,6),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((1.8,5),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((1.3,4),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((2,3),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((1.5,2),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((1.2,3.5),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((1.8,4.5),0.1,fill=True,facecolor='black')
ax.add_artist(c)
#set B
eB = Ellipse((8,4.5),3,7,fill=False)
ax.add_artist(eB)
plt.text(7.7,8.25,'$B$',fontsize=14)
c = Circle((8.2,7),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((7.7,6),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((8.1,5),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((7.6,4),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((8.3,3),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((7.9,2),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((8.2,3.5),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((8.4,6.5),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((8.6,5.75),0.1,fill=True,facecolor='black')
ax.add_artist(c)
c = Circle((8.05,4.25),0.1,fill=True,facecolor='black')
ax.add_artist(c)
#relations
plt.arrow(2.1,7,5.9,0,head_width=0.2,length_includes_head=True, facecolor='black')
plt.arrow(1.6,6,6.25,-1.7,head_width=0.2,length_includes_head=True, facecolor='black')
plt.arrow(2,5,5.5,1.05,head_width=0.2,length_includes_head=True, facecolor='black')
plt.arrow(1.6,4,6.5,-0.975,head_width=0.2,length_includes_head=True, facecolor='black')
plt.arrow(2.2,3,5.5,-0.95,head_width=0.2,length_includes_head=True, facecolor='black')
plt.arrow(1.7,2,5.9,3.85,head_width=0.2,length_includes_head=True, facecolor='black')
#function name
plt.text(4.75,7.5,'$f$',fontsize=14)
#an pair (x,f(x))
plt.text(0.8,6,'$x$',fontsize=14)
plt.text(8.25,4.15,'$f(x)$',fontsize=14)
plt.savefig('Venn_diagram_function.svg', bbox_inches='tight', pad_inches=0.0)
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Items portrayed in this file
depicts
1 July 2016
image/svg+xml
100f7620515b5b0b0b8bba2d36a3a9d5229f28af
20,440 byte
314 pixel
300 pixel
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:50, 2 July 2016 | 300 × 314 (20 KB) | Picknick | Representação de elementos extras no conjunto A e de um exemplo de um par ordenado (x,f(x)). |
File usage
There are no pages that use this file.
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 240pt |
---|---|
Height | 251pt |