Generate code with academic styling conventions:
Python (matplotlib/seaborn):
fig, ax = plt.subplots(figsize=(6, 4))
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
ax.set_xlabel("X Label", fontsize=12)
ax.set_ylabel("Y Label", fontsize=12)
ax.tick_params(labelsize=10)
fig.savefig("../images/<label>.png", dpi=300, bbox_inches="tight")
R (ggplot2):
p <- ggplot(data, aes(x, y)) +
geom_point() +
theme_minimal(base_size = 12) +
theme(
panel.grid.minor = element_blank(),
plot.title = element_text(size = 14, face = "bold")
) +
labs(x = "X Label", y = "Y Label")
ggsave("../images/<label>.png", plot = p, width = 6, height = 4, dpi = 300)
Stata:
twoway (scatter y x), ///
scheme(s2color) ///
xtitle("X Label") ytitle("Y Label")
quietly graph export "../images/<label>.png", replace width(1800)