Skip to content

Commit

Permalink
update labels
Browse files Browse the repository at this point in the history
  • Loading branch information
theoheimel committed May 3, 2023
1 parent 592a624 commit 01411e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def plot_bgen_weights(self, file: str):
)
#cb = plt.colorbar(img)
#cb.set_label('norm.')
ax.set_xlabel(r"$\sigma(p_\text{gen}) / \mu(p_\text{gen})$")
ax.set_ylabel(r"$w_\text{disc}$")
ax.set_xlabel(r"$\sigma(p_\text{model}) / \mu(p_\text{model})$")
ax.set_ylabel(r"$w$")

plt.savefig(pdf, format="pdf")
plt.close()
Expand Down Expand Up @@ -430,9 +430,9 @@ def plot_bgen_weights(self, file: str):
)
#cb = plt.colorbar(img)
#cb.set_label('norm.')
axs[0].set_ylabel(r"$\sigma(p_\text{gen}) / \mu(p_\text{gen})$")
axs[0].set_ylabel(r"$\sigma(p_\text{model}) / \mu(p_\text{model})$")
axs[1].set_ylabel(r"median $\sigma / \mu$")
axs[1].set_xlabel(r"$w_\text{disc}$")
axs[1].set_xlabel(r"$w$")
fig.align_ylabels()
self.corner_text(axs[1], self.title, "right", "top", h_offset=0.15)
plt.savefig(pdf, format="pdf")
Expand Down Expand Up @@ -461,7 +461,7 @@ def plot_bgen_weights(self, file: str):
label="Fit",
color=self.colors[1]
)
ax.set_xlabel(r"$\mu(p_\text{gen}) (w_\text{disc} - 1) / \sigma(p_\text{gen})$")
ax.set_xlabel(r"$\mu(p_\text{model}) (w - 1) / \sigma(p_\text{model})$")
ax.set_ylabel("normalized")
#ax.set_yscale("log")
ax.set_xlim(bins[0], bins[-1])
Expand Down Expand Up @@ -499,7 +499,7 @@ def plot_bgen_weights(self, file: str):
label="Fit",
color=self.colors[1]
)
ax.set_xlabel(r"$\log w_\text{disc} / \sigma(\log p_\text{gen})$")
ax.set_xlabel(r"$\log w / \sigma(\log p_\text{model})$")
ax.set_ylabel("normalized")
#ax.set_yscale("log")
ax.set_xlim(bins[0], bins[-1])
Expand All @@ -524,8 +524,8 @@ def plot_bgen_weights(self, file: str):
label = "",
color = self.colors[1]
)
ax.set_xlabel(r"$w_\text{disc}$")
ax.set_ylabel(r"median $\sigma(p_\text{gen}) / \mu(p_\text{gen})$")
ax.set_xlabel(r"$w$")
ax.set_ylabel(r"median $\sigma(p_\text{model}) / \mu(p_\text{model})$")
self.corner_text(ax, self.title, "right", "top")
plt.savefig(pdf, format="pdf")
plt.close()
Expand Down

0 comments on commit 01411e0

Please sign in to comment.