plot a scatter with nl10636 versus nl10643, size of 12 in by 6 in, and a title of “nl10636 v.s. nl10643” in python

You can use the matplotlib library to plot a scatter graph in Python. Here is the code to plot a scatter graph with nl10636 on the x-axis and nl10643 on the y-axis:

main.py
import matplotlib.pyplot as plt

x = [1,2,3,4,5]
y = [2,4,6,8,10]

plt.figure(figsize=(12,6))   # set figure size to 12x6
plt.scatter(x, y, s=50)      # s defines the size of the markers

plt.title("nl10636 v.s. nl10643")
plt.xlabel("nl10636")
plt.ylabel("nl10643")

plt.show()
278 chars
14 lines

You can replace the data in x and y with your data, and adjust the figure dimensions and marker size (s) as required.

related categories

gistlibby LogSnag