I have coordinates of a rectangle (say p1,p2,p3,p4) and needs to draw the rectangle in terminal using asciiplotlib python library
import asciiplotlib as apl
import numpy
x = numpy.linspace(0, 2 * numpy.pi, 10)
y = (some rectangle generator function using coordinates p1,p2,p3,p4)
fig = apl.figure()
fig.plot(x, y, label="data", width=50, height=15)
fig.show()
I have coordinates of a rectangle and needs to draw the rectangle in the terminal using the asciiplotlib python library.
The final result I am expecting is that it should draw a rectangle inside the x-y coordinate plane