Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fae2047

Browse filesBrowse files
committed
pep:8ball:
1 parent 8aea12e commit fae2047
Copy full SHA for fae2047

File tree

Expand file treeCollapse file tree

2 files changed

+15
-15
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+15
-15
lines changed

‎plotly/tests/test_optional/test_opt_tracefactory.py

Copy file name to clipboardExpand all lines: plotly/tests/test_optional/test_opt_tracefactory.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,8 @@ def test_simple_streamline(self):
249249
class TestDendrogram(TestCase):
250250

251251
def test_default_dendrogram(self):
252-
dendro = tls.FigureFactory.create_dendrogram(X=np.array([[1, 2, 3, 4],
253-
[1, 1, 3, 4],
254-
[1, 2, 1, 4],
255-
[1, 2, 3, 1]]))
252+
X = np.array([[1, 2, 3, 4], [1, 1, 3, 4], [1, 2, 1, 4], [1, 2, 3, 1]])
253+
dendro = tls.FigureFactory.create_dendrogram(X=X)
256254
expected_data = [{'marker': {'color': 'rgb(255,133,27)'},
257255
'mode': 'lines', 'xaxis': 'xs',
258256
'yaxis': 'y',
@@ -348,7 +346,9 @@ def test_dendrogram_orientation(self):
348346
dendro_bottom = tls.FigureFactory.create_dendrogram(
349347
X, orientation='bottom')
350348
self.assertEqual(len(dendro_bottom['layout']['xaxis']['ticktext']), 5)
351-
tickvals_bottom = np.array(dendro_bottom['layout']['xaxis']['tickvals'])
349+
tickvals_bottom = np.array(
350+
dendro_bottom['layout']['xaxis']['tickvals']
351+
)
352352
self.assertTrue((tickvals_bottom >= 0).all())
353353

354354
dendro_top = tls.FigureFactory.create_dendrogram(X, orientation='top')
@@ -361,8 +361,8 @@ def test_dendrogram_orientation(self):
361361
[1, 2, 1, 4],
362362
[1, 2, 3, 1]])
363363
greyscale = [
364-
'rgb(0,0,0)', # black
365-
'rgb(05,105,105)', # dim grey
364+
'rgb(0,0,0)', # black
365+
'rgb(05,105,105)', # dim grey
366366
'rgb(128,128,128)', # grey
367367
'rgb(169,169,169)', # dark grey
368368
'rgb(192,192,192)', # silver

‎plotly/tools.py

Copy file name to clipboardExpand all lines: plotly/tools.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3272,14 +3272,14 @@ def get_color_dict(self, colorscale):
32723272

32733273
if colorscale is None:
32743274
colorscale = [
3275-
'rgb(0,116,217)', # blue
3275+
'rgb(0,116,217)', # blue
32763276
'rgb(35,205,205)', # cyan
32773277
'rgb(61,153,112)', # green
3278-
'rgb(40,35,35)', # black
3279-
'rgb(133,20,75)', # magenta
3280-
'rgb(255,65,54)', # red
3281-
'rgb(255,255,255)', # white
3282-
'rgb(255,220,0)'] # yellow
3278+
'rgb(40,35,35)', # black
3279+
'rgb(133,20,75)', # magenta
3280+
'rgb(255,65,54)', # red
3281+
'rgb(255,255,255)', # white
3282+
'rgb(255,220,0)'] # yellow
32833283

32843284
for i in range(len(default_colors.keys())):
32853285
k = default_colors.keys()[i]
@@ -3313,8 +3313,8 @@ def set_axis_layout(self, axis_key):
33133313
axis_key_labels = self.yaxis
33143314
if axis_key_labels not in self.layout:
33153315
self.layout[axis_key_labels] = {}
3316-
self.layout[axis_key_labels]['tickvals'] = [zv*self.sign[axis_key]
3317-
for zv in self.zero_vals]
3316+
self.layout[axis_key_labels]['tickvals'] = \
3317+
[zv*self.sign[axis_key] for zv in self.zero_vals]
33183318
self.layout[axis_key_labels]['ticktext'] = self.labels
33193319
self.layout[axis_key_labels]['tickmode'] = 'array'
33203320

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.