Skip to content

Commit

Permalink
add logo to 3d plots when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
elenafuengar committed Jan 22, 2025
1 parent b31f73f commit 9a6e5cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wakis/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def plot3D(self, field='E', component='z', clim=None, hide_solids=None,
pl.camera_position = 'zx'
pl.camera.azimuth += 30
pl.camera.elevation += 30
#pl.background_color = "grey"
pl.set_background('mistyrose', top='white')
try: pl.add_logo_widget('../docs/img/wakis-logo-pink.png')
except: pass
pl.camera.zoom(zoom)
pl.add_axes()
pl.enable_3_lights()
Expand Down Expand Up @@ -386,7 +388,9 @@ def plot3DonSTL(self, field='E', component='z', clim=None, cmap='jet', log_scale
pl.camera_position = 'zx'
pl.camera.azimuth += 20
pl.camera.elevation += 30
#pl.background_color = "grey"
pl.set_background('mistyrose', top='white')
try: pl.add_logo_widget('../docs/img/wakis-logo-pink.png')
except: pass
pl.camera.zoom(zoom)
pl.add_axes()
pl.enable_anti_aliasing()
Expand Down

0 comments on commit 9a6e5cf

Please sign in to comment.