Skip to content

Commit

Permalink
Merge pull request #820 from cgre-aachen/fixfontsize3
Browse files Browse the repository at this point in the history
[WIP] FixFontSize
  • Loading branch information
Japhiolite authored Aug 15, 2023
2 parents bb6b30e + d755ca1 commit bae4401
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gempy/plot/plot_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ def plot_3d(model, plotter_type='basic',
kwargs_plot_topography=None,
kwargs_plot_data=None,
image=False,
off_screen=False, **kwargs) -> GemPyToVista:
off_screen=False,
font_size: int = pv.global_theme.font.size,
**kwargs) -> GemPyToVista:
"""foobar
Args:
Expand All @@ -297,6 +299,8 @@ def plot_3d(model, plotter_type='basic',
ve (float): Vertical Exaggeration
kwargs_plot_structured_grid:
kwargs_plot_topography:
font_size : int
Font size for the labels of the grid
**kwargs:
Returns:
Expand Down Expand Up @@ -338,6 +342,9 @@ def plot_3d(model, plotter_type='basic',
if ve is not None:
gpv.p.set_scale(zscale=ve)

if font_size is not None:
gpv.p.show_bounds(font_size=font_size)

if fig_path is not None:
gpv.p.show(screenshot=fig_path)

Expand Down

0 comments on commit bae4401

Please sign in to comment.