@@ -212,10 +212,7 @@ def plot_array(
212212 kpc_per_arcsec = kpc_per_arcsec ,
213213 )
214214 plot_mask (
215- mask = mask ,
216- units = units ,
217- kpc_per_arcsec = kpc_per_arcsec ,
218- pointsize = mask_pointsize ,
215+ mask = mask , units = units , kpc_per_arcsec = kpc_per_arcsec , pointsize = mask_pointsize
219216 )
220217 plotter_util .plot_lines (line_lists = lines )
221218 plot_border (
@@ -240,10 +237,7 @@ def plot_array(
240237 pointsize = grid_pointsize ,
241238 )
242239 plot_centres (
243- array = array ,
244- centres = centres ,
245- units = units ,
246- kpc_per_arcsec = kpc_per_arcsec ,
240+ array = array , centres = centres , units = units , kpc_per_arcsec = kpc_per_arcsec
247241 )
248242 plot_ellipses (
249243 fig = fig ,
@@ -373,12 +367,7 @@ def get_extent(array, extent, units, kpc_per_arcsec, xticks_manual, yticks_manua
373367 elif units in "arcsec" or kpc_per_arcsec is None :
374368 return extent
375369 elif units in "kpc" :
376- return list (
377- map (
378- lambda tick : tick * kpc_per_arcsec ,
379- extent ,
380- )
381- )
370+ return list (map (lambda tick : tick * kpc_per_arcsec , extent ))
382371 else :
383372 raise exc .PlottingException (
384373 "The units supplied to the plotted are not a valid string (must be pixels | "
@@ -584,9 +573,7 @@ def plot_centres(array, centres, units, kpc_per_arcsec):
584573 )
585574
586575
587- def plot_ellipses (
588- fig , array , centres , axis_ratios , phis , units , kpc_per_arcsec ,
589- ):
576+ def plot_ellipses (fig , array , centres , axis_ratios , phis , units , kpc_per_arcsec ):
590577 """Plot the (y,x) centres (e.g. of a mass profile) on the array as an 'x'.
591578
592579 Parameters
@@ -671,9 +658,7 @@ def plot_mask(mask, units, kpc_per_arcsec, pointsize):
671658 )
672659
673660
674- def plot_border (
675- mask , include_border , units , kpc_per_arcsec , pointsize ,
676- ):
661+ def plot_border (mask , include_border , units , kpc_per_arcsec , pointsize ):
677662 """Plot the borders of the mask or the array on the figure.
678663
679664 Parameters
@@ -701,12 +686,15 @@ def plot_border(
701686 kpc_per_arcsec = kpc_per_arcsec ,
702687 )
703688
704- plt .scatter (y = np .asarray (border_units [:, 0 ]), x = np .asarray (border_units [:, 1 ]), s = pointsize , c = "y" )
689+ plt .scatter (
690+ y = np .asarray (border_units [:, 0 ]),
691+ x = np .asarray (border_units [:, 1 ]),
692+ s = pointsize ,
693+ c = "y" ,
694+ )
705695
706696
707- def plot_points (
708- points_arcsec , array , units , kpc_per_arcsec , pointsize ,
709- ):
697+ def plot_points (points_arcsec , array , units , kpc_per_arcsec , pointsize ):
710698 """Plot a set of points over the array of data_type on the figure.
711699
712700 Parameters
0 commit comments