Hi EagerStork23 ,
Thanks for catching this bug.
We also caught this issue, so a fix is scheduled to be released in one of the coming versions.
I'll update here once it will be released 🙂
Thanks Alon. Roughly when do we expect this new version to be released?
The next version (0.14.0) should be released in a few weeks 🙂 .
EagerStork23 However, the issue is only in the presentation of the graph (occurs when all subplots have the same label), so you can use the following workaround for solving it:
` import matplotlib.pyplot as plt
def plot_subplots():
fig = plt.figure()
ax1 = fig.add_subplot(2, 2, 1)
ax2 = fig.add_subplot(2, 2, 2)
ax3 = fig.add_subplot(2, 2, 3)
ax4 = fig.add_subplot(2, 2, 4)
x = range(10)
y = range(10)
ax1.plot(x, y)[0].set_label("label1")
ax2.plot(x, y)[0].set_label("label2")
ax3.plot(x, y)[0].set_label("label3")
ax4.plot(x, y)[0].set_label("label4")
fig.show() `
TimelyPenguin76 I also found another plot display bug in trains. If I run multiple functions to produce multiple separate plots, only the first plot is displayed in trains. Could you also please check that as well?
Hi EagerStork23 , sure, i'll check it, but I will need some more information.
I run this example: https://github.com/allegroai/trains/blob/master/examples/matplotlib_example.py which produced 3 different plots and I can see those in the task's plot section, can you share what you run (general code without data)? Link to the task?