Skip to content

Instantly share code, notes, and snippets.

@carlosplanchon
Last active August 12, 2017 16:06
Show Gist options
  • Save carlosplanchon/77ef63090578588d78b4b939003377a0 to your computer and use it in GitHub Desktop.
Save carlosplanchon/77ef63090578588d78b4b939003377a0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import outfancy
m = outfancy.render.Chart()
m1 = 0.04
m2 = 0.01
m3 = 0.05
def print_job_income(income, points, experience, numjobs):
# income-progression-equation: baseincome+(baseincome*(joblevel-1)*0.04)-((baseincome+(joblevel-1)*0.01) * ((numjobs-1)*0.05))
ds = [[joblevel, income + (income * (joblevel-1) * m1)-((income + (joblevel - 1) * m2) * ((numjobs - 1) * m3))] for joblevel in range(200)]
m.plot(ds)
print(m.render(color=True))
m.clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment