Commit 9792078
committed
PR L5: Remove Visuals from PyAutoLens plotters; use standalone plot_array() with direct lines=/positions= kwargs
- abstract_plotters.py: Plotter._plot_array(array, auto_labels, lines=, positions=, visuals_2d=)
uses autoarray.plot.plots.array.plot_array() directly; _to_lines()/_to_positions() helpers
- tracer_util.py: add critical_curves_from(), caustics_from(), lines_of_planes_from()
computing curves via LensCalc, returning plain numpy arrays; legacy visuals_2d_of_planes_list_from retained
- tracer_plotters.py: cached _tangential/radial_critical_curves/caustics properties;
figures_2d passes lines= directly; galaxies_plotter_from builds Visuals2D from cached curves
- fit_imaging_plotters.py: lines_of_planes via tracer_util; _lines_for_plane() helper;
figures_2d/_of_planes pass lines= not visuals_2d=
- fit_interferometer_plotters.py: same pattern; dirty_model_image uses lines=
- conftest.py: PlotPatch also patches matplotlib.figure.Figure.savefig
- pyproject.toml: pin autogalaxy to claude/refactor-plotting-module-3ZdD8
https://claude.ai/code/session_01CzJBy8KvFXiNchoNdk5i9k1 parent e6e265c commit 9792078
7 files changed
Lines changed: 855 additions & 495 deletions
File tree
- autolens
- imaging/plot
- interferometer/plot
- lens
- plot
- plot
- test_autolens
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
71 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
72 | 88 | | |
73 | 89 | | |
74 | | - | |
| 90 | + | |
75 | 91 | | |
76 | | - | |
77 | 92 | | |
78 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
79 | 105 | | |
80 | 106 | | |
81 | 107 | | |
| |||
255 | 281 | | |
256 | 282 | | |
257 | 283 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
263 | 291 | | |
264 | 292 | | |
265 | 293 | | |
| |||
281 | 309 | | |
282 | 310 | | |
283 | 311 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
289 | 319 | | |
290 | 320 | | |
291 | 321 | | |
| |||
881 | 911 | | |
882 | 912 | | |
883 | 913 | | |
884 | | - | |
885 | 914 | | |
886 | 915 | | |
887 | 916 | | |
| |||
892 | 921 | | |
893 | 922 | | |
894 | 923 | | |
895 | | - | |
896 | 924 | | |
897 | 925 | | |
898 | 926 | | |
| |||
902 | 930 | | |
903 | 931 | | |
904 | 932 | | |
905 | | - | |
906 | 933 | | |
907 | 934 | | |
908 | 935 | | |
| |||
916 | 943 | | |
917 | 944 | | |
918 | 945 | | |
919 | | - | |
920 | 946 | | |
921 | 947 | | |
922 | 948 | | |
| 949 | + | |
923 | 950 | | |
924 | 951 | | |
925 | 952 | | |
| |||
935 | 962 | | |
936 | 963 | | |
937 | 964 | | |
938 | | - | |
939 | 965 | | |
940 | 966 | | |
941 | 967 | | |
| |||
945 | 971 | | |
946 | 972 | | |
947 | 973 | | |
948 | | - | |
949 | 974 | | |
950 | 975 | | |
951 | 976 | | |
| |||
958 | 983 | | |
959 | 984 | | |
960 | 985 | | |
961 | | - | |
962 | 986 | | |
963 | 987 | | |
964 | 988 | | |
| |||
969 | 993 | | |
970 | 994 | | |
971 | 995 | | |
972 | | - | |
973 | 996 | | |
974 | 997 | | |
975 | 998 | | |
| |||
Lines changed: 28 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
89 | 102 | | |
90 | | - | |
| 103 | + | |
91 | 104 | | |
92 | 105 | | |
93 | | - | |
94 | 106 | | |
95 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
96 | 118 | | |
97 | 119 | | |
98 | 120 | | |
| |||
289 | 311 | | |
290 | 312 | | |
291 | 313 | | |
292 | | - | |
293 | 314 | | |
294 | 315 | | |
295 | 316 | | |
| 317 | + | |
296 | 318 | | |
297 | 319 | | |
298 | 320 | | |
| |||
0 commit comments