Skip to content

Commit

Permalink
change comment fig output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
toravest committed May 24, 2025
1 parent b6b24bc commit a8ccaea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion notebooks/notebook_compare_one_week_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
"# Add label for x-axis\n",
"ax3.set_xlabel('Datetime')\n",
"\n",
"# Save the plot to the data/output_fig folder\n",
"# Save the plot to the 'data/figures/output_fig_compare_one_week' folder\n",
"plot_path = os.path.join(output_folder, f\"weather_compare_plot_{city_1}_{city_2}.png\")\n",
"# Save the plot as a PNG file\n",
"plt.savefig(plot_path)\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/notebook_compare_statistic_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
"# Import the kelvin to celsius function\n",
"from my_package.util import kelvin_to_celsius\n",
"\n",
"output_folder = \"../data/output_fig\"\n",
"output_folder = \"../data/figures/output_fig_compare_statistic\"\n",
"os.makedirs(output_folder, exist_ok=True) # Create the folder if it doesn't exist\n",
"\n",
"both_cities_df['temp.mean_celsius'] = kelvin_to_celsius(both_cities_df['temp.mean'])\n",
Expand Down Expand Up @@ -354,7 +354,7 @@
"plt.title(f\"Statistic weather data for ({city_1} and {city_2})\")\n",
"plt.tight_layout()\n",
"\n",
"# Save the plot to the data/output_fig folder\n",
"# Save the plot to the 'data/figures/output_fig_compare_statistic' folder\n",
"plot_path = os.path.join(output_folder, f\"mean_temp_plot_{city_1}_{city_2}.png\")\n",
"plt.savefig(plot_path) # Save the plot as a PNG file\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/notebook_one_week_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
"# Adjust layout\n",
"plt.tight_layout()\n",
"\n",
"# Save the plot to the data/output_fig folder\n",
"# Save the plot to the 'data/figures/output_fig_one_week' folder\n",
"plot_path = os.path.join(output_folder, f\"weather_data_plot{city_name}.png\")\n",
"plt.savefig(plot_path) # Save the plot as a PNG file\n",
"\n",
Expand Down

0 comments on commit a8ccaea

Please sign in to comment.