Skip to content

TypeError: tight_layout() takes 0 positional arguments but 3 were given #8

@ghost

Description

I've tried to run the code inside colab. however, it shows the following Error:

Do I need to have any specific things in my colab? Thank you

0%|          | 10/20001 [00:00<08:23, 39.67it/s]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-2-51480497a079>](https://localhost:8080/#) in <module>
    156                                'samples/example_z=%d_%s_%1.1f_%06d.pt' %
    157                                (n_latent, shape, mixup, iteration))
--> 158                     plot(plot_real, plot_fake, mixup, iteration)

[<ipython-input-2-51480497a079>](https://localhost:8080/#) in plot(x, y, mixup, iteration)
     51                 plt.xlim(*lims)
     52                 plt.ylim(*lims)
---> 53                 plt.tight_layout(0, 0, 0)
     54                 plt.show()
     55                 plt.savefig("images/example_z=%d_%s_%1.1f_%06d.png" %

TypeError: tight_layout() takes 0 positional arguments but 3 were given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions