Skip to content

Commit

Permalink
Updated mayavi/movie settings but still needs improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Candy committed Oct 10, 2024
1 parent 4b07719 commit d5df629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions f2py/pygacode/cgyro/avconv_wrapper
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Comment Information
TITLE="CGYRO Turbulence"
TITLE="CGYRO TEAM"
TIMESTAMP=`date -Iseconds`

START=$1
Expand All @@ -10,7 +10,7 @@ QUALITY=$3
PRE=$4

# Main movie definitions
BASENAME=$PRE%d.png
BASENAME=$PRE%d.jpg
OUT=${PRE}movie.mp4

if hash avconv 2>/dev/null ; then
Expand Down
5 changes: 3 additions & 2 deletions f2py/pygacode/cgyro/vis_torcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def frame():
ax.set_ylabel("Z/a")
ax.set_xlabel("R/a")
else:
mlab.figure(size=(900,900),bgcolor=(1,1,1))
mlab.figure(size=(350,500),bgcolor=(1,1,1))

if isfield:
c = a[0,:,:,:]+1j*a[1,:,:,:]
Expand Down Expand Up @@ -213,6 +213,7 @@ def frame():
# View from positive z-axis
mlab.view(azimuth=0, elevation=0)


print('INFO: (vis_torcut) min={:.3E} | max={:.3E}'.format(f0,f1))

if ftype == 'screen':
Expand All @@ -226,7 +227,7 @@ def frame():
plt.close("all")
else:
# Filename uses frame number
mlab.savefig(pre+str(i)+'.'+ftype)
mlab.savefig(pre+str(i)+'.'+ftype,magnification=2)
# Close each time to prevent memory accumulation
mlab.close()

Expand Down

0 comments on commit d5df629

Please sign in to comment.