vendredi 16 juillet 2021

Creating Matplotlib .png's to send to a Discord server, but the calls only work in ascending order?

This might be hard to explain, but I'm pulling a bunch of CSV data from a website to create graphs that can be saved to send to a discord server.

I search for the numbers in the discord command i.e. in ".command50" I pull 50 to create a time frame for the graph. Then, I create the graph and save it to number_randomstring.png.

This is then sent to the Discord server.

Here's where a weird problem comes up.

I execute

.command50

and it creates a graph for 50 days perfectly fine.

Then, I execute

.command100

and this works fine.

However, when I run

.command50

again, it only returns the graph for 100 days.

Even weirder, when I run

.command200

The graph for 200 days shows up perfectly fine. It seems as if when it hits a new high it will create no new graphs unless a new number is entered higher than the last high.

A very weird glitch, not sure what's up here.




Aucun commentaire:

Enregistrer un commentaire