Content
• Copy, paste and run the code to plot a point.
• Plot multiple points.
• Change the size, position and color of the points.
• Create multiple points at the same place and make them larger/smaller to show them all at once.
• Change the marker of points.
• Move points to make different patterns.
Description
It uses matplotlib.pyplot to plot points. They are given the first two lines of code and then told to copy and paste them and experiment as follows.
Students are encouraged to experiment with the color, size and position of the points. They plot different sized points at the same place to understand the relative size of points, the concept of overlapping and putting things in front or back.
While moving points right-left or up-down, they learn the concept of coordinates and also negative numbers. To plot midpoints, they learn how to get the average of two points.
They move points and change markers to make beautiful patterns.
import matplotlib.pyplot as plt
plt.plot( 0, 0, marker='o', color='pink', markersize = 50)
Let them experiment with different colors. Ask students to put the colors of their shirt or top, bottom, color of walls and other things that are present at that time. Thus, they will be able to develop a sense of color.
plt.plot( 0, 0, marker='o', color='green', markersize = 50)
plt.plot( 0, 0, marker='o', color='grey', markersize = 50)
plt.plot( 0, 0, marker='o', color='brown', markersize = 50)
Let the children experiment. Ask them to try things like negatives, zeros, or even fractions and compare them.
plt.plot( 0, 0, marker='o', color='green', markersize = 150)
plt.plot( 0, 0, marker='o', color='green', markersize = 10)
plt.plot( 0, 0, marker='o', color='green', markersize = 50)
plt.plot( 0, 0, marker='o', color='green', markersize = -50)
plt.plot( 0, 0, marker='o', color='green', markersize = 15/4)
plt.plot( 0, 0, marker='o', color='green', markersize = .50)
plt.plot( 0, 0, marker='s', color='blue', markersize = 50)
plt.plot( 0, 0, marker='s', color='red', markersize = 150)
plt.plot( 0, 0, marker='s', color='black', markersize = 100)
plt.plot( 0, 0, marker='^', color='green', markersize = 50)
plt.plot( 0, 0, marker='*', color='grey', markersize = 50)
plt.plot( 0, 0, marker='d', color='orange', markersize = 50)
plt.plot( 0, 0, marker='p', color='orange', markersize = 50)
plt.plot( 0, 0, marker='h', color='pink', markersize = 50)
plt.plot( 0, 0, marker='8', color='black', markersize = 50)
plt.plot( 0, 0, marker='P', color='yellow', markersize = 50)
plt.plot( 0, 0, marker=r'$\heartsuit$', color='red', markersize = 40)
plt.plot( 0, 0, marker='o', color='red', markersize = 100)
plt.plot( 0, 0, marker='s', color='blue', markersize = 100)
Let us learn how to position of shapes
plt.plot( 0, 0, marker='o', color='red', markersize = 100)
plt.plot( 0, 30, marker='s', color='blue', markersize = 100)
plt.plot( 0, 0, marker='o', color='red', markersize = 100)
plt.plot( 10, 30, marker='s', color='blue', markersize = 100)
We send three lines of code to copy and paste as it is too early to teach them:
plt.figure(figsize=(10,10))
plt.xlim(-50, 50)
plt.ylim(-50, 50)
Now, we can experiment with left and right, up and down. It is good time to show them what negative and positive numbers do.
plt.figure(figsize=(5,5))
plt.plot( 0, 0, marker='o', color='red', markersize = 10)
plt.plot( 20, 0, marker='s', color='blue', markersize = 10)
plt.xlim(-50, 50)
plt.ylim(-50, 50)
plt.figure(figsize=(5,5))
plt.plot( 0, 0, marker='o', color='red', markersize = 10)
plt.plot( -20, 0, marker='s', color='blue', markersize = 10)
plt.xlim(-50, 50)
plt.ylim(-50, 50)
plt.figure(figsize=(5,5))
plt.plot( 0, 0, marker='o', color='red', markersize = 10)
plt.plot( 0, 20, marker='s', color='blue', markersize = 10)
plt.xlim(-50, 50)
plt.ylim(-50, 50)
plt.figure(figsize=(5,5))
plt.plot( 0, 0, marker='o', color='red', markersize = 10)
plt.plot( 0, -20, marker='s', color='blue', markersize = 10)
plt.xlim(-50, 50)
plt.ylim(-50, 50)
plt.figure(figsize=(5,5))
plt.plot( -5, 20, marker='o', color='red', markersize = 10)
plt.plot( 20, -10, marker='s', color='blue', markersize = 10)
plt.xlim(-50, 50)
plt.ylim(-50, 50)
Assist the children in putting multiple shapes. Ask them to decide the postion of a news shape, left, right, up or down to a shape already drawn, before they draw it.
plt.figure(figsize=(20,10))
plt.plot( 10, 0, marker='o', color='red', markersize = 100)
plt.plot( 10, 30, marker='s', color='blue', markersize = 100)
plt.plot( 10, -30, marker='^', color='green', markersize = 100)
plt.plot( -10, 0, marker='*', color='grey', markersize = 100)
plt.plot( -10, 30, marker='d', color='orange', markersize = 100)
plt.plot( -10, -30, marker='p', color='purple', markersize = 100)
plt.plot( -30, 0, marker='h', color='pink', markersize = 100)
plt.plot( -30, 30, marker='8', color='black', markersize = 100)
plt.plot( -30, -30, marker='P', color='yellow', markersize = 100)
plt.plot( 30, 0, marker=r'$\heartsuit$', color='red', markersize = 100)
plt.plot( 30, 30, marker='>', color='lightgreen', markersize = 100)
plt.plot( 30, -30, marker='v', color='lightblue', markersize = 100)
plt.xlim(-50, 50)
plt.ylim(-50, 50)
plt.figure(figsize=(10,6))
plt.plot( 0, 0, marker = 'o' , color = 'violet', markersize = 250)
plt.plot( 0, 0, marker = 'o' , color = 'indigo' , markersize = 240)
plt.plot( 0, 0, marker = 'o' , color = 'blue' , markersize = 230)
plt.plot( 0, 0, marker = 'o' , color = 'green' , markersize = 220)
plt.plot( 0, 0, marker = 'o' , color = 'yellow' , markersize = 210)
plt.plot( 0, 0, marker = 'o' , color = 'orange' , markersize = 200)
plt.plot( 0, 0, marker = 'o' , color = 'red' , markersize = 190)
plt.xlim(-4, 4)
plt.ylim(-4, 4)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( 0, 0, marker = 'o' , color = 'violet', markersize = 250)
plt.plot( 0, 0, marker = 'o' , color = 'indigo' , markersize = 220)
plt.plot( 0, 0, marker = 'o' , color = 'blue' , markersize = 190)
plt.plot( 0, 0, marker = 'o' , color = 'green' , markersize = 160)
plt.plot( 0, 0, marker = 'o' , color = 'yellow' , markersize = 130)
plt.plot( 0, 0, marker = 'o' , color = 'orange' , markersize = 100)
plt.plot( 0, 0, marker = 'o' , color = 'red' , markersize = 70)
plt.xlim(-4, 4)
plt.ylim(-4, 4)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( 0, 0, marker = 'o' , color = 'violet', markersize = 250)
plt.plot( 0, 0, marker = 'o' , color = 'indigo' , markersize = 220)
plt.plot( 0, 0, marker = 'o' , color = 'blue' , markersize = 190)
plt.plot( 0, 0, marker = 'o' , color = 'green' , markersize = 160)
plt.plot( 0, 0, marker = 'o' , color = 'yellow' , markersize = 130)
plt.plot( 0, 0, marker= 'o' , color = 'orange' , markersize = 100)
plt.plot( 5, 0, marker = 'o' , color = 'red' , markersize = 70)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( -1, 0, marker = 'o' , color = 'violet', markersize = 250)
plt.plot( -2, 0, marker = 'o' , color = 'indigo' , markersize = 220)
plt.plot( -3, 0, marker = 'o' , color = 'blue' , markersize = 190)
plt.plot( -4, 0, marker = 'o' , color = 'green' , markersize = 160)
plt.plot( -5, 0, marker = 'o' , color = 'yellow' , markersize = 130)
plt.plot( -6, 0, marker = 'o' , color = 'orange' , markersize = 100)
plt.plot( -7, 0, marker = 'o' , color = 'red' , markersize = 70)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( 1, 0, marker = 'o' , color = 'violet', markersize = 250)
plt.plot( 2, 0, marker = 'o' , color = 'indigo' , markersize = 220)
plt.plot( 3, 0, marker = 'o' , color = 'blue' , markersize = 190)
plt.plot( 4, 0, marker = 'o' , color = 'green' , markersize = 160)
plt.plot( 5, 0, marker = 'o' , color = 'yellow' , markersize = 130)
plt.plot( 6, 0, marker = 'o' , color = 'orange' , markersize = 100)
plt.plot( 7, 0, marker = 'o' , color = 'red' , markersize = 70)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( 0, -1, marker = 'o' , color = 'violet', markersize = 250)
plt.plot( 0, -2, marker = 'o' , color = 'indigo' , markersize = 220)
plt.plot( 0, -3, marker = 'o' , color = 'blue' , markersize = 190)
plt.plot( 0, -4, marker = 'o' , color = 'green' , markersize = 160)
plt.plot( 0, -5, marker = 'o' , color = 'yellow' , markersize = 130)
plt.plot( 0, -6, marker = 'o' , color = 'orange' , markersize = 100)
plt.plot( 0, -7, marker = 'o' , color = 'red' , markersize = 70)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( 0, -1, marker = 's' , color = 'red', markersize = 250)
plt.plot( 0, -2, marker = 's' , color = 'orange' , markersize = 220)
plt.plot( 0, -3, marker = 's' , color = 'yellow' , markersize = 190)
plt.plot( 0, -4, marker = 's' , color = 'green' , markersize = 160)
plt.plot( 0, -5, marker = 's' , color = 'blue' , markersize = 130)
plt.plot( 0, -6, marker = 's' , color = 'indigo' , markersize = 100)
plt.plot( 0, -7, marker = 's' , color = 'violet' , markersize = 70)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,6))
plt.plot( 0, 0, marker = '*' , color = 'darkblue', markersize = 250)
plt.plot( 0, 0, marker = '*' , color = 'greenyellow' , markersize = 220)
plt.plot( 0, 0, marker = '*' , color = 'yellow' , markersize = 190)
plt.plot( 0, 0, marker = '*' , color = 'green' , markersize = 160)
plt.plot( 0, 0, marker = '*' , color = 'blue' , markersize = 130)
plt.plot( 0, 0, marker = '*' , color = 'indigo' , markersize = 100)
plt.plot( 0, 0, marker = '*' , color = 'violet' , markersize = 70)
plt.plot( 0, 0, marker = '*' , color = 'green' , markersize = 40)
plt.plot( 0, 0, marker = '*' , color = 'darkorange' , markersize = 20)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,10))
plt.plot( 0, 0, marker="$\u2665$", color = 'tomato', markersize = 350)
plt.plot( 0, 0, marker="$\u2665$", color = 'deeppink', markersize = 320)
plt.plot( 0, 0, marker="$\u2665$", color = 'crimson', markersize = 290)
plt.plot( 0, 0, marker="$\u2665$", color = 'purple', markersize = 250)
plt.plot( 0, 0, marker="$\u2665$", color = 'orange' , markersize = 220)
plt.plot( 0, 0, marker="$\u2665$", color = 'yellow' , markersize = 190)
plt.plot( 0, 0, marker="$\u2665$", color = 'green' , markersize = 160)
plt.plot( 0, 0, marker="$\u2665$", color = 'blue' , markersize = 130)
plt.plot( 0, 0, marker="$\u2665$", color = 'indigo' , markersize = 100)
plt.plot( 0, 0, marker="$\u2665$", color = 'violet' , markersize = 70)
plt.plot( 0, 0, marker="$\u2665$", color = 'red' , markersize = 40)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
plt.figure(figsize=(10,10))
plt.plot( 0, -1, marker="$\u2665$", color = 'tomato', markersize = 350)
plt.plot( 0, -2, marker="$\u2665$", color = 'deeppink', markersize = 320)
plt.plot( 0, -3, marker="$\u2665$", color = 'crimson', markersize = 290)
plt.plot( 0, -4, marker="$\u2665$", color = 'purple', markersize = 250)
plt.plot( 0, -5, marker="$\u2665$", color = 'orange' , markersize = 220)
plt.plot( 0, -6, marker="$\u2665$", color = 'yellow' , markersize = 190)
plt.plot( 0, -7, marker="$\u2665$", color = 'green' , markersize = 160)
plt.plot( 0, -8, marker="$\u2665$", color = 'blue' , markersize = 130)
plt.plot( 0, -9, marker="$\u2665$", color = 'indigo' , markersize = 100)
plt.xlim(-10, 10)
plt.ylim(-10, 10)
plt.show()
Knowledge Management: No Rote Learning
Brought to you by XcelVations. If you want to learn more about our courses and learning modules, visit http://xcelvations.com/