@@ -224,9 +224,12 @@ def update(self):
224224 )
225225
226226 # Planckian Locus
227- positions = np .concatenate (
228- [lines_pl ["position" ][:- 1 ], lines_pl ["position" ][1 :]], axis = 1
229- ).reshape ([- 1 , 2 ])
227+ positions = np .reshape (
228+ np .concatenate (
229+ [lines_pl ["position" ][:- 1 ], lines_pl ["position" ][1 :]], axis = 1
230+ ),
231+ (- 1 , 2 ),
232+ )
230233
231234 positions = np .hstack (
232235 [
@@ -236,9 +239,12 @@ def update(self):
236239 )
237240
238241 if self ._colour is None :
239- colour_sl = np .concatenate (
240- [lines_pl ["colour" ][:- 1 ], lines_pl ["colour" ][1 :]], axis = 1
241- ).reshape ([- 1 , 3 ])
242+ colour_sl = np .reshape (
243+ np .concatenate (
244+ [lines_pl ["colour" ][:- 1 ], lines_pl ["colour" ][1 :]], axis = 1
245+ ),
246+ (- 1 , 3 ),
247+ )
242248 else :
243249 colour_sl = np .tile (self ._colour , (positions .shape [0 ], 1 ))
244250
@@ -255,14 +261,14 @@ def update(self):
255261 return
256262
257263 # Labels
258- lines_itl = lines_l ["position" ]. reshape ([ len (self ._labels ), 20 , 2 ] )
259- colours_itl = lines_l ["colour" ]. reshape ([ len (self ._labels ), 20 , 3 ] )
264+ lines_itl = np . reshape ( lines_l ["position" ], ( len (self ._labels ), 20 , 2 ) )
265+ colours_itl = np . reshape ( lines_l ["colour" ], ( len (self ._labels ), 20 , 3 ) )
260266 self ._iso_temperature_lines = []
261267 self ._texts = []
262268 for i , label in enumerate (self ._labels ):
263- positions = np .concatenate (
264- [lines_itl [i ][:- 1 ], lines_itl [i ][1 :]], axis = 1
265- ). reshape ([ - 1 , 2 ])
269+ positions = np .reshape (
270+ np . concatenate ( [lines_itl [i ][:- 1 ], lines_itl [i ][1 :]], axis = 1 ), ( - 1 , 2 )
271+ )
266272 positions = np .hstack (
267273 [
268274 positions ,
@@ -271,9 +277,10 @@ def update(self):
271277 )
272278
273279 if self ._colour is None :
274- colour_w = np .concatenate (
275- [colours_itl [i ][:- 1 ], colours_itl [i ][1 :]], axis = 1
276- ).reshape ([- 1 , 3 ])
280+ colour_w = np .reshape (
281+ np .concatenate ([colours_itl [i ][:- 1 ], colours_itl [i ][1 :]], axis = 1 ),
282+ (- 1 , 3 ),
283+ )
277284 else :
278285 colour_w = np .tile (self ._colour , (positions .shape [0 ], 1 ))
279286
0 commit comments