tremoved redundant parantheses (habit from C) - polygen - generative drawing of polygonal patterns
(HTM) git clone git://src.adamsgaard.dk/polygen
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 70cefaf0bd158f8736b267ce085d8057294b726e
(DIR) parent 22a5d91a7ae7845038d6b110beb2d2d096cc48c5
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
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(-)
---
(DIR) 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.')