Skip to content

Commit

Permalink
Merge pull request #17 from Autostronomy/dev
Browse files Browse the repository at this point in the history
Change capitalization in diagnostic plots
  • Loading branch information
ConnorStoneAstro authored Apr 11, 2024
2 parents a79c7ea + f0f57bb commit 291ece7
Show file tree
Hide file tree
Showing 155 changed files with 12 additions and 42,168 deletions.
2 changes: 1 addition & 1 deletion autoprof/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from . import autoprofutils, Pipeline, pipeline_steps

__version__ = "1.1.1"
__version__ = "1.1.2"
__author__ = "Connor Stone"
__email__ = "connorstone628@gmail.com"

Expand Down
21 changes: 11 additions & 10 deletions autoprof/autoprofutils/Diagnostic_Plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def _Plot_Isophotes(dat, R, parameters, results, options):
results["background noise"],
)
AddScale(plt.gca(), (ranges[0][1] - ranges[0][0]) * options["ap_pixscale"])

fitlim = results["fit R"][-1] if "fit R" in results else np.inf
for i in range(len(R)):
N = max(15, int(0.9 * 2 * np.pi * R[i]))
Expand Down Expand Up @@ -383,7 +384,7 @@ def Plot_SB_Profile(dat, R, SB, SB_e, parameters, results, options):
marker=".",
markersize=5,
color=autocolours["red1"],
label="Surface Brightness" + errlabel,
label="Surface brightness" + errlabel,
)
)
plt.errorbar(
Expand All @@ -396,8 +397,8 @@ def Plot_SB_Profile(dat, R, SB, SB_e, parameters, results, options):
markersize=5,
color=autocolours["blue1"],
)
plt.xlabel("Semi-Major-Axis [arcsec]", fontsize=16)
plt.ylabel("Surface Brightness [mag arcsec$^{-2}$]", fontsize=16)
plt.xlabel("Semi-major axis [arcsec]", fontsize=16)
plt.ylabel("Surface brightness [mag arcsec$^{-2}$]", fontsize=16)
if "ap_plot_sbprof_xlim" in options:
plt.xlim(options["ap_plot_sbprof_xlim"])
else:
Expand Down Expand Up @@ -473,7 +474,7 @@ def Plot_I_Profile(dat, R, I, I_e, parameters, results, options):
markersize=5,
color=autocolours["blue1"],
)
plt.xlabel("Semi-Major-Axis [arcsec]", fontsize=16)
plt.xlabel("Semi-major axis [arcsec]", fontsize=16)
plt.ylabel("Intensity [flux arcsec$^{-2}$]", fontsize=16)
plt.yscale("log")
if "ap_plot_sbprof_xlim" in options:
Expand Down Expand Up @@ -539,7 +540,7 @@ def Plot_Phase_Profile(R, parameters, results, options):
color=autocolours["blue1"],
)
plt.legend(fontsize=11)
plt.xlabel("Semi-Major-Axis [arcsec]", fontsize=16)
plt.xlabel("Semi-major axis [arcsec]", fontsize=16)
plt.xscale("log")
plt.tick_params(labelsize=14)
if not parameters[0]["m"] is None:
Expand All @@ -558,7 +559,7 @@ def Plot_Phase_Profile(R, parameters, results, options):
label="$\\phi_%i$ [rad/%i$\\pi$]" % (parameters[0]["m"][m], parameters[0]["m"][m]),
)
plt.legend()
plt.xlabel("Semi-Major-Axis [arcsec]", fontsize=16)
plt.xlabel("Semi-major axis [arcsec]", fontsize=16)
plt.xscale("log")
plt.tick_params(labelsize=14)
plt.tight_layout()
Expand Down Expand Up @@ -597,7 +598,7 @@ def Plot_Meas_Fmodes(R, parameters, results, options):
color=autocolours["blue1"],
)
plt.legend(fontsize=11)
plt.xlabel("Semi-Major-Axis [arcsec]", fontsize=16)
plt.xlabel("Semi-major axis [arcsec]", fontsize=16)
# plt.ylabel('Ellipticity and Position Angle')
plt.tick_params(labelsize=14)
if not parameters[0]["m"] is None:
Expand All @@ -616,7 +617,7 @@ def Plot_Meas_Fmodes(R, parameters, results, options):
label="$\\phi_%i$ [rad/$\\pi$]" % parameters[0]["m"][m],
)
plt.legend()
plt.xlabel("Semi-Major-Axis [arcsec]", fontsize=16)
plt.xlabel("Semi-major axis [arcsec]", fontsize=16)
# plt.ylabel('Fourier Mode Parameters')
plt.tick_params(labelsize=14)
plt.tight_layout()
Expand Down Expand Up @@ -662,7 +663,7 @@ def Plot_Radial_Profiles(dat, R, sb, sbE, pa, nwedges, wedgeangles, wedgewidth,
label="Wedge %.2f" % (wedgeangles[sa_i] * 180 / np.pi),
)
plt.xlabel("Radius [arcsec]", fontsize=16)
plt.ylabel("Surface Brightness [mag arcsec$^{-2}$]", fontsize=16)
plt.ylabel("Surface brightness [mag arcsec$^{-2}$]", fontsize=16)
bkgrdnoise = (
-2.5 * np.log10(results["background noise"])
+ zeropoint
Expand Down Expand Up @@ -791,7 +792,7 @@ def Plot_Axial_Profiles(dat, R, sb, sbE, pa, results, options):
),
fontsize=16,
)
plt.ylabel("Surface Brightness [mag arcsec$^{-2}$]", fontsize=16)
plt.ylabel("Surface brightness [mag arcsec$^{-2}$]", fontsize=16)
cb1 = plt.colorbar(
matplotlib.cm.ScalarMappable(norm=norm, cmap=autocmap.reversed()), ax=plt.gca()
)
Expand Down
4 changes: 0 additions & 4 deletions build/.buildinfo

This file was deleted.

Binary file removed build/.doctrees/Pipeline.doctree
Binary file not shown.
Binary file removed build/.doctrees/autoprof.autoprofutils.doctree
Binary file not shown.
Binary file removed build/.doctrees/autoprof.doctree
Binary file not shown.
Binary file removed build/.doctrees/autoprof.media.doctree
Binary file not shown.
Binary file removed build/.doctrees/autoprof.pipeline_steps.doctree
Binary file not shown.
Binary file removed build/.doctrees/autoprofutils.doctree
Binary file not shown.
Binary file removed build/.doctrees/citation.doctree
Binary file not shown.
Binary file removed build/.doctrees/contributing.doctree
Binary file not shown.
Binary file removed build/.doctrees/decisiontrees.doctree
Binary file not shown.
Binary file removed build/.doctrees/defaultpipeline.doctree
Binary file not shown.
Binary file removed build/.doctrees/environment.pickle
Binary file not shown.
Binary file removed build/.doctrees/extramethods.doctree
Binary file not shown.
Binary file removed build/.doctrees/getting_started.doctree
Binary file not shown.
Binary file removed build/.doctrees/index.doctree
Binary file not shown.
Binary file removed build/.doctrees/install.doctree
Binary file not shown.
Binary file removed build/.doctrees/license.doctree
Binary file not shown.
Binary file removed build/.doctrees/modules.doctree
Binary file not shown.
Binary file removed build/.doctrees/parameters.doctree
Binary file not shown.
Binary file removed build/.doctrees/pipeline_steps.doctree
Binary file not shown.
Binary file removed build/.doctrees/pipelinemanipulation.doctree
Binary file not shown.
Binary file removed build/.doctrees/troubleshooting.doctree
Binary file not shown.
181 changes: 0 additions & 181 deletions build/Pipeline.html

This file was deleted.

Binary file removed build/_images/fit_ellipse_testimage.jpg
Binary file not shown.
Loading

0 comments on commit 291ece7

Please sign in to comment.