fine, i'll do it myself:
import matplotlib.pyplot as plt
from matplotlib.ticker import (MultipleLocator, AutoMinorLocator)
import csv
import math
y_star = [0]
y_ancient = [0]
x = [0]
with open('./output/1-plant-125-casks-448-days-1-sim.csv', mode='r') as file:
reader = csv.reader(file, delimiter=',')
for day, ancient, star in reader:
x.append(int(day))
y_ancient.append(int(ancient))
y_star.append(int(star))
_, ax = plt.subplots()
ax.plot(x, y_ancient)
ax.plot(x, y_star)
ax.set(xlabel='days since initial planting', ylabel='profit (g)',
title='Ancient Fruit vs Star Fruit profits')
ax.grid()
ax.xaxis.set_major_locator(MultipleLocator(112))
ax.xaxis.set_minor_locator(MultipleLocator(28))
ax.yaxis.set_major_locator(MultipleLocator(math.floor(max(y_ancient) / 10)))
plt.show()
@lapis ok
@soft so glad i logged on today
would any python + matplotlib knowers like to write a program for me that could parse a csv file and make a plot similar to that shown in: https://glitch.cat.family/@wallhackio/116383881105784671
@vaporeon_ congrats on doing your Mysterious Act!
@cam you make a good point.
@amy @vaporeon_ pretty sure thats a cube
@cam but the pen is mightier than the switch
@cam still cheaper than a switch 2. go buy that shit
@cam what did i just encourage you to do is this an ungodly expensive pen
@coriander it was Fine, which was disappointing because the first episode is incredible
and it also makes all the women characters centered on the mc which was annoying
@coriander that's valid
@coriander that's a strange way to spell rebecca from cyberpunk edgerunners
@aescling @vaporeon_ it was a pain in the ass to write and read but this is what industry standard c++ looks like
the clodvestigator
i answer to Caleb, Clodsire, Clodboy, Clod, and Bumby. very leftist.
videogame enjoyer. mathematics hobbyist and recovering physicist. recovering software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
30+
he/him
sgraMrt