Я пробовал (с помощью jupyterlab):
Код: Выделить всё
import numpy as np
import gnuplotlib as gp
xtics_positions = [0, 2, 4, 6, 8]
xtics_labels = ["zero", "two", "four", "six", "eight"]
xtics = [(label, pos) for label, pos in zip(xtics_labels, xtics_positions)]
datapoints = np.array([ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 5, 5, 2, 21, 1, 21, 0, 8, 62, 56, 0, 0, 0, 6, 3, 32, 7, 17, 1, 6, 10, 12, 0, 21, 11, 6, 14, 1, 15, 25, 30, 17, 11, 6, 4, 0])
gp.plot(datapoints, xtics = xtics)
Если я вызываю gp.plot(datapoints), создается график:

Подробнее здесь: https://stackoverflow.com/questions/786 ... otlib-plot