Skip to content

xlim none #14365

@HuangQinJian

Description

@HuangQinJian
fig = plt.figure()
plt.xlabel('Epoch')
plt.ylabel("Accuaracy")
plt.plot([0.1111, 0.21111], label='train', color='r', linestyle='-', alpha=0.5)
plt.plot([0.1111, 0.21111], label='valid', color='b', linestyle='-', alpha=0.5)
plt.legend(loc="upper right")
plt.xlim(1, 2)
plt.ylim(0, 1)
fig.savefig('Accuaracy_fine-tune_resnet.jpg')

But the output is empty:

image

if I delete, it is ok :

plt.xlim(1, 2)
plt.ylim(0, 1)

version 3.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions