Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plots/01_heliostat_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def plot_heliostat_positions(self) -> None:
cmap=custom_cmap,
alpha=0.7,
)
fig.colorbar(scatter, label="# Measurements")
fig.colorbar(scatter, label="\# Measurements")
ax.grid(True)

# Draw tower boundaries as rectangles.
Expand Down
2 changes: 1 addition & 1 deletion plots/03_create_dataset_split_plot_by_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def main(
kind="bar", stacked=True, ax=ax, legend=False, color=bar_colors
)
# Change the x-axis label as requested.
ax.set_xlabel("Heliostats sorted by # measurements available")
ax.set_xlabel("Heliostats sorted by \# measurements available")
ax.set_ylabel("Count")
ax.tick_params(axis="x", rotation=45)
ticks = list(range(0, num_heliostats, 200))
Expand Down
7 changes: 5 additions & 2 deletions plots/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@

def set_plot_style() -> None:
"""Set global plot style for all plots."""
mpl.rcParams["font.family"] = "sans-serif"
mpl.rcParams["font.sans-serif"] = ["DejaVu Sans"]
# Set Plot style.
mpl.rcParams["text.usetex"] = True
mpl.rcParams["text.latex.preamble"] = r"\usepackage{cmbright}"
mpl.rcParams["font.size"] = 12
mpl.rcParams["axes.titlesize"] = 14
mpl.rcParams["axes.labelsize"] = 12
mpl.rcParams["axes.labelweight"] = "bold"
mpl.rcParams["xtick.labelsize"] = 10
mpl.rcParams["ytick.labelsize"] = 10
mpl.rcParams["legend.fontsize"] = 10
mpl.rcParams["pdf.fonttype"] = 42
mpl.rcParams["ps.fonttype"] = 42


def decimal_to_dms(value: float, is_latitude: bool = True) -> str:
Expand Down
Loading