![]() |
Lack of understanding "graphX, = ax.plot" - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Lack of understanding "graphX, = ax.plot" (/thread-14881.html) |
Lack of understanding "graphX, = ax.plot" - easayed - Dec-21-2018 Dear every member I want to under stand the following line graphX, = ax.plot([], [], 'b', label = 'X')this line is written in the following code which is a part of program from matplotlib import pyplot as plt fig = plt.figure(figsize=(12, 6)) ax = plt.axes(xlim=(0,leng-1), ylim=(0, 1000)) ax.grid(True) graphX, = ax.plot([], [], 'b', label = 'X') graphY, = ax.plot([], [], 'r', label = 'Y')many thanks for all RE: Lack of understanding "graphX, = ax.plot" - micseydel - Dec-21-2018 This example might help: >>> t = (1,) >>> t (1,) >>> u, = (1,) >>> u 1 |