From 793aad14c363a0eb915257faed2d89ad44f33aee Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 19 Feb 2020 11:14:15 +1100 Subject: [PATCH] Change figure sizes --- las_manipulation.py | 2 +- las_outputs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/las_manipulation.py b/las_manipulation.py index 8b75b74..3269fd2 100644 --- a/las_manipulation.py +++ b/las_manipulation.py @@ -353,7 +353,7 @@ def polygon_wave_runup(xyz_1m, direction, shp_name, set_check_value, distance_ch # Simplify polygon to remove invalid geometry #geom = Polygon(for_shape).simplify(10) geom = Polygon(for_shape) - + # Export polygon as shapefile df = gpd.GeoDataFrame(geometry=[geom]) df.crs = {'init': 'epsg:283{}'.format(zone), 'no_defs': True} diff --git a/las_outputs.py b/las_outputs.py index fb62c7a..3487ad7 100644 --- a/las_outputs.py +++ b/las_outputs.py @@ -87,14 +87,14 @@ def plot_profiles(profile_name, csv_output_dir, graph_loc, ch_limits, delta_vol, fig_h = profiles.dropna().values.max() / m_per_inch * vertical_exag fig_w = (profiles.index.max() - ch_min) / m_per_inch except ValueError: - fig_h = 5 + fig_h = 2.3 fig_w = 10 if scale_figures: fig, ax = plt.subplots(figsize=(fig_w, fig_h)) ax.set_aspect(vertical_exag) else: - fig, ax = plt.subplots(figsize=(10, 5)) + fig, ax = plt.subplots(figsize=(10, 2.3)) for col in profiles.columns: