tremoved redundant parantheses (habit from C) - polygen - generative drawing of… | |
git clone git://src.adamsgaard.dk/polygen | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 70cefaf0bd158f8736b267ce085d8057294b726e | |
parent 22a5d91a7ae7845038d6b110beb2d2d096cc48c5 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 13 Mar 2014 21:51:20 +0100 | |
removed redundant parantheses (habit from C) | |
Diffstat: | |
M polygen.py | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/polygen.py b/polygen.py | |
t@@ -32,13 +32,13 @@ class polyplot: | |
if plot_points == True: | |
plt.plot(self.points[:,0], self.points[:,1], points_style) | |
plt.axis('equal') | |
- if (show_axes == False): | |
+ if show_axes == False: | |
plt.axis('off') | |
def save_plot(self, image_name='all_to_all', image_format='png', | |
background_color='white', | |
transparent_background=False): | |
- if (transparent_background == True): | |
+ if transparent_background == True: | |
self.fig.savefig(image_name + '.' + image_format, | |
transparent=True) | |
else: | |
t@@ -50,7 +50,7 @@ class polyplot: | |
class regular_star_polygon: | |
def __init__(self, n=5): | |
- if (n < 3): | |
+ if n < 3: | |
raise Exception('regular_star_polygon: Error, this function ' + | |
'doesn\'t work with n < 3.') | |