change indentation from 2 spaces to 4, fix #5
This commit is contained in:
10
plotter.py
10
plotter.py
@@ -10,15 +10,15 @@ z_plot_size = 3
|
||||
padding = 1
|
||||
|
||||
def base_coords(x, z):
|
||||
pid = plot_id(x, z)
|
||||
return [pid[0] * (x_plot_size + padding), pid[1] * (z_plot_size + padding)]
|
||||
pid = plot_id(x, z)
|
||||
return [pid[0] * (x_plot_size + padding), pid[1] * (z_plot_size + padding)]
|
||||
|
||||
def bounds(x, z):
|
||||
base = base_coords(x, z)
|
||||
return [base, [base[0] + x_plot_size, base[1] + z_plot_size]]
|
||||
base = base_coords(x, z)
|
||||
return [base, [base[0] + x_plot_size, base[1] + z_plot_size]]
|
||||
|
||||
def plot_id(x, z):
|
||||
return [x // (x_plot_size + padding), z // (z_plot_size + padding)]
|
||||
return [x // (x_plot_size + padding), z // (z_plot_size + padding)]
|
||||
|
||||
|
||||
x = int(sys.argv[1])
|
||||
|
||||
Reference in New Issue
Block a user