A fun little python function to draw bar graphs with turtle graphics!
While it provides little practical utility, it is capable of generating and storing bar graphs (SVG). Here's how to call it:
- Import graphs into your code with
import graphs.py
- Call the
draw_bar()
function in the following mannerdraw_graph(dataset,title_graph,scale,max_range)
dataset
: as an array[[value,title],[value,title]...[value,title]]
title_graph
: a string containing the title of the graphscale
: Specifies scale of marked values to be marked in graphmax_range
: The maximum possible value of data