Skip to content

Commit 74f5f4f

Browse files
Jammy2211Jammy2211
authored andcommitted
removeed figue 1d stuff
1 parent 03c4ce7 commit 74f5f4f

15 files changed

Lines changed: 1 addition & 1318 deletions

File tree

autogalaxy/analysis/plotter_interface.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,6 @@ def should_plot(name):
168168
mat_plot_1d=mat_plot_1d,
169169
)
170170

171-
try:
172-
if should_plot("subplot_galaxies_1d"):
173-
galaxies_plotter.subplot_galaxies_1d()
174-
except OverflowError:
175-
pass
176-
177-
try:
178-
if should_plot("subplot_galaxies_1d_decomposed"):
179-
galaxies_plotter.subplot_galaxies_1d_decomposed()
180-
except OverflowError:
181-
pass
182-
183171
if should_plot("fits_galaxy_images"):
184172

185173
image_list = [

autogalaxy/config/visualize/plots.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ fit_imaging: {} # Settings for plots of fits to imagi
3030
galaxies: # Settings for plots of galaxies (e.g. GalaxiesPlotter).
3131
subplot_galaxies: true # Plot subplot of all quantities in each galaxies group (e.g. images, convergence)?
3232
subplot_galaxy_images: false # Plot subplot of the image of each galaxy in the model?
33-
subplot_galaxies_1d: false # Plot subplot of all quantities in 1D of each galaxies group (e.g. images, convergence)?
34-
subplot_galaxies_1d_decomposed: false # Plot subplot of all quantities in 1D decomposed of each galaxies group (e.g. images, convergence)?
3533
fits_galaxy_images: false # Output a .fits file containing images of every galaxy?
3634

3735
inversion: # Settings for plots of inversions (e.g. InversionPlotter).

autogalaxy/ellipse/plot/fit_ellipse_plotters.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,8 @@ def __init__(
143143
super().__init__(
144144
mat_plot_1d=mat_plot_1d,
145145
visuals_1d=visuals_1d,
146-
include_1d=include_1d,
147146
mat_plot_2d=mat_plot_2d,
148147
visuals_2d=visuals_2d,
149-
include_2d=include_2d,
150148
)
151149

152150
self.fit_pdf_list = fit_pdf_list

autogalaxy/galaxy/plot/galaxies_plotters.py

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -319,54 +319,3 @@ def subplot_galaxy_images(self):
319319
auto_filename=f"subplot_galaxy_images"
320320
)
321321
self.close_subplot_figure()
322-
323-
def subplot_galaxies_1d(self):
324-
"""
325-
Output a subplot of attributes of every individual 1D attribute of the `Galaxy` object.
326-
327-
For example, a 1D plot showing how the image, convergence of each component varies radially outwards.
328-
329-
If the plotter has a 1D grid object this is used to evaluate each quantity. If it has a 2D grid, a 1D grid is
330-
computed from the light profile. This is performed by aligning a 1D grid with the major-axis of the light
331-
profile in projection, uniformly computing 1D values based on the 2D grid's size and pixel-scale.
332-
"""
333-
number_subplots = len(self.galaxies) * 3
334-
335-
self.open_subplot_figure(number_subplots=number_subplots)
336-
337-
for galaxy_index in range(0, len(self.galaxies)):
338-
galaxy_plotter = self.galaxy_plotter_from(galaxy_index=galaxy_index)
339-
340-
galaxy_plotter.figures_1d(image=True)
341-
galaxy_plotter.figures_1d(convergence=True)
342-
galaxy_plotter.figures_1d(potential=True)
343-
344-
self.mat_plot_1d.output.subplot_to_figure(auto_filename="subplot_galaxies_1d")
345-
self.close_subplot_figure()
346-
347-
def subplot_galaxies_1d_decomposed(self):
348-
"""
349-
Output a subplot of attributes of every individual 1D attribute of the `Galaxy` object decompoed into
350-
their different light and mass profiles.
351-
352-
For example, a 1D plot showing how the image, convergence of each component varies radially outwards.
353-
354-
If the plotter has a 1D grid object this is used to evaluate each quantity. If it has a 2D grid, a 1D grid is
355-
computed from the light profile. This is performed by aligning a 1D grid with the major-axis of the light
356-
profile in projection, uniformly computing 1D values based on the 2D grid's size and pixel-scale.
357-
"""
358-
number_subplots = len(self.galaxies) * 3
359-
360-
self.open_subplot_figure(number_subplots=number_subplots)
361-
362-
for galaxy_index in range(0, len(self.galaxies)):
363-
galaxy_plotter = self.galaxy_plotter_from(galaxy_index=galaxy_index)
364-
365-
galaxy_plotter.figures_1d_decomposed(image=True)
366-
galaxy_plotter.figures_1d_decomposed(convergence=True)
367-
galaxy_plotter.figures_1d_decomposed(potential=True)
368-
369-
self.mat_plot_1d.output.subplot_to_figure(
370-
auto_filename="subplot_galaxies_1d_decomposed"
371-
)
372-
self.close_subplot_figure()

0 commit comments

Comments
 (0)