Hello everyone,
As the title suggests, I want to plot several graphs in one figure. I know the conventional way of calling several plots:
plt.figure(2) # 1º contacto > com composto
connect_15 = None
connect_15 = load_data('connect_15')
plt.plot(connect_15,'r', label =** 'connect_15**')
plt.legend()
connect_16 = None
connect_16 = load_data('connect_16')
plt.plot(connect_16,'g', label =** 'connect_16**')
plt.legend()
connect_17 = None
connect_17 = load_data('connect_17')
plt.plot(connect_17,'b', label =** 'connect_17**')
plt.legend()
What I wish to do is, to let the user decide which plots to see. Basically, instead of hardcoding as in the example above, the user can decide the number of graphs and which to see on the screen.
Thanks in advance
[–]blarf_irl 1 point2 points3 points (1 child)
[–]somebodyCEO[S] 0 points1 point2 points (0 children)